diff options
author | Tim Janik <timj@gimp.org> | 1998-03-09 15:16:28 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-03-09 15:16:28 +0000 |
commit | d187183161156de7373e6b46e05be0135c8caef4 (patch) | |
tree | d59b714b11fe7809346c8bfce1e0bbf344522557 /gtk/gtkeditable.c | |
parent | 2a8d32a760f90646be84c50172841388e3c4f5fe (diff) | |
download | gdk-pixbuf-d187183161156de7373e6b46e05be0135c8caef4.tar.gz |
made the <widget>_signals[] arrays of type guint rather than gint. made
Mon Mar 9 15:48:10 1998 Tim Janik <timj@gimp.org>
* Signal signedness and naming corrections, plus GtkType fixes:
* gtk/gtkadjustment.c:
* gtk/gtkbutton.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkclist.c:
* gtk/gtkcolorsel.c:
* gtk/gtkcontainer.c:
* gtk/gtkcurve.c:
* gtk/gtkdata.c:
* gtk/gtkeditable.c:
* gtk/gtkentry.c:
* gtk/gtkhandlebox.c:
* gtk/gtkinputdialog.c:
* gtk/gtkitem.c:
* gtk/gtklist.c:
* gtk/gtkmenuitem.c:
* gtk/gtkmenushell.c:
* gtk/gtknotebook.c:
* gtk/gtkstatusbar.c:
* gtk/gtktoolbar.c:
* gtk/gtktree.c:
* gtk/gtktreeitem.c:
* gtk/gtkwidget.c:
* gtk/gtktogglebutton.c:
* gtk/gtkwindow.c:
made the <widget>_signals[] arrays of type guint rather than gint.
* gtk/gtkwidget.c (gtk_widget_get_ancestor): made widget_type a GtkType.
* gtk/gtkcombo.h:
handler ids need to be of type guint (entry_change_id, list_change_id).
* gtk/gtkaccelerator.c:
changed signal_num to signal_id and typed it guint.
* gtk/gtkmain.c: made gtk_ndebug_keys a guint.
* gtk/gtkmenu.h:
* gtk/gtkmenu.c:
(gtk_menu_popup): made button a guint.
(gtk_menu_set_active): made index a guint.
* gtk/gtkmenuitem.h:
* gtk/gtkmenuitem.c:
made accelerator_signal a guint.
* gtk/gtkoptionmenu.h:
* gtk/gtkoptionmenu.c:
(gtk_option_menu_set_history): made index a guint.
* gtk/gtksignal.h:
* gtk/gtksignal.c:
* gtk/gtkobject.h:
* gtk/gtkobject.c: changed a bunch of prototypes to take guints rather
than gints. also made some conversions from guint to GtkType, left over
from when the fundamental-types system was introduced.
* gtk/gtkobject.h:
* gtk/gtkobject.c: made object_data_id_index and obj_count guints.
made *signals and nsignals guints in GtkObjectClass.
Diffstat (limited to 'gtk/gtkeditable.c')
-rw-r--r-- | gtk/gtkeditable.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/gtkeditable.c b/gtk/gtkeditable.c index 1ae065993..974b542d3 100644 --- a/gtk/gtkeditable.c +++ b/gtk/gtkeditable.c @@ -87,7 +87,7 @@ static void gtk_editable_set_selection (GtkEditable *editable, gint end); static GtkWidgetClass *parent_class = NULL; -static gint editable_signals[LAST_SIGNAL] = { 0 }; +static guint editable_signals[LAST_SIGNAL] = { 0 }; static GdkAtom ctext_atom = GDK_NONE; static GdkAtom text_atom = GDK_NONE; static GdkAtom clipboard_atom = GDK_NONE; @@ -391,20 +391,20 @@ gtk_editable_set_selection (GtkEditable *editable, static gint gtk_editable_selection_clear (GtkWidget *widget, - GdkEventSelection *event) + GdkEventSelection *event) { GtkEditable *editable; - + g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (GTK_IS_EDITABLE (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); - + /* Let the selection handling code know that the selection * has been changed, since we've overriden the default handler */ gtk_selection_clear (widget, event); - + editable = GTK_EDITABLE (widget); - + if (event->selection == GDK_SELECTION_PRIMARY) { if (editable->has_selection) @@ -419,7 +419,7 @@ gtk_editable_selection_clear (GtkWidget *widget, g_free (editable->clipboard_text); editable->clipboard_text = NULL; } - + return FALSE; } |