diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-03-28 04:01:21 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-03-28 04:01:21 +0000 |
commit | a7f29c4efc91ef0cc2c585af1d6fbf529bbb0074 (patch) | |
tree | b311b522b77ae8ea3578a101e97a6c179ccd9b04 /gtk/gtkvscrollbar.c | |
parent | 6e7b8a6722a743c14d3300a29bf8ba438ed8bd55 (diff) | |
download | gtk+-a7f29c4efc91ef0cc2c585af1d6fbf529bbb0074.tar.gz |
Apply patch from Nils Barth fixing event return values. (#51041)
Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
Nils Barth fixing event return values. (#51041)
* gtk/gtkwidget.c: Fix some return values for default
functions.
* gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
return values for trough_keys functions.
* gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
value for add_accelerator (shoudl have been a void
return.)
* gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
Fix return type of EVENT.
* gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
signal return a boolean.
Diffstat (limited to 'gtk/gtkvscrollbar.c')
-rw-r--r-- | gtk/gtkvscrollbar.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/gtk/gtkvscrollbar.c b/gtk/gtkvscrollbar.c index 41d0d8630a..9e5e240efd 100644 --- a/gtk/gtkvscrollbar.c +++ b/gtk/gtkvscrollbar.c @@ -38,25 +38,25 @@ enum { ARG_ADJUSTMENT }; -static void gtk_vscrollbar_class_init (GtkVScrollbarClass *klass); -static void gtk_vscrollbar_init (GtkVScrollbar *vscrollbar); -static void gtk_vscrollbar_set_arg (GtkObject *object, - GtkArg *arg, - guint arg_id); -static void gtk_vscrollbar_get_arg (GtkObject *object, - GtkArg *arg, - guint arg_id); -static void gtk_vscrollbar_realize (GtkWidget *widget); -static void gtk_vscrollbar_size_allocate (GtkWidget *widget, - GtkAllocation *allocation); -static void gtk_vscrollbar_draw_step_forw (GtkRange *range); -static void gtk_vscrollbar_draw_step_back (GtkRange *range); -static void gtk_vscrollbar_slider_update (GtkRange *range); -static void gtk_vscrollbar_calc_slider_size (GtkVScrollbar *vscrollbar); -static gint gtk_vscrollbar_trough_keys (GtkRange *range, - GdkEventKey *key, - GtkScrollType *scroll, - GtkTroughType *pos); +static void gtk_vscrollbar_class_init (GtkVScrollbarClass *klass); +static void gtk_vscrollbar_init (GtkVScrollbar *vscrollbar); +static void gtk_vscrollbar_set_arg (GtkObject *object, + GtkArg *arg, + guint arg_id); +static void gtk_vscrollbar_get_arg (GtkObject *object, + GtkArg *arg, + guint arg_id); +static void gtk_vscrollbar_realize (GtkWidget *widget); +static void gtk_vscrollbar_size_allocate (GtkWidget *widget, + GtkAllocation *allocation); +static void gtk_vscrollbar_draw_step_forw (GtkRange *range); +static void gtk_vscrollbar_draw_step_back (GtkRange *range); +static void gtk_vscrollbar_slider_update (GtkRange *range); +static void gtk_vscrollbar_calc_slider_size (GtkVScrollbar *vscrollbar); +static gboolean gtk_vscrollbar_trough_keys (GtkRange *range, + GdkEventKey *key, + GtkScrollType *scroll, + GtkTroughType *pos); GtkType @@ -425,11 +425,11 @@ gtk_vscrollbar_calc_slider_size (GtkVScrollbar *vscrollbar) } } -static gint -gtk_vscrollbar_trough_keys(GtkRange *range, - GdkEventKey *key, - GtkScrollType *scroll, - GtkTroughType *pos) +static gboolean +gtk_vscrollbar_trough_keys (GtkRange *range, + GdkEventKey *key, + GtkScrollType *scroll, + GtkTroughType *pos) { gint return_val = FALSE; switch (key->keyval) |