events return gboolean not gint. Change misnamed

2008-09-04  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkhandlebox.c: events return gboolean not gint.
	Change misnamed gtk_handle_box_button_changed() to
	gtk_handle_box_button_press(). Reindent static prototypes.


svn path=/trunk/; revision=21286
This commit is contained in:
Michael Natterer 2008-09-04 11:16:53 +00:00 committed by Michael Natterer
parent 5e25a5c7ca
commit eb81ee53a7
2 changed files with 51 additions and 46 deletions

View File

@ -1,3 +1,9 @@
2008-09-04 Michael Natterer <mitch@imendio.com>
* gtk/gtkhandlebox.c: events return gboolean not gint.
Change misnamed gtk_handle_box_button_changed() to
gtk_handle_box_button_press(). Reindent static prototypes.
2008-09-04 Michael Natterer <mitch@imendio.com> 2008-09-04 Michael Natterer <mitch@imendio.com>
* gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): when extending * gtk/gtkwidget.c (gtk_widget_get_draw_rectangle): when extending

View File

@ -105,45 +105,45 @@ enum {
* <--------bin_window--------------------> * <--------bin_window-------------------->
*/ */
static void gtk_handle_box_set_property (GObject *object, static void gtk_handle_box_set_property (GObject *object,
guint param_id, guint param_id,
const GValue *value, const GValue *value,
GParamSpec *pspec); GParamSpec *pspec);
static void gtk_handle_box_get_property (GObject *object, static void gtk_handle_box_get_property (GObject *object,
guint param_id, guint param_id,
GValue *value, GValue *value,
GParamSpec *pspec); GParamSpec *pspec);
static void gtk_handle_box_map (GtkWidget *widget); static void gtk_handle_box_map (GtkWidget *widget);
static void gtk_handle_box_unmap (GtkWidget *widget); static void gtk_handle_box_unmap (GtkWidget *widget);
static void gtk_handle_box_realize (GtkWidget *widget); static void gtk_handle_box_realize (GtkWidget *widget);
static void gtk_handle_box_unrealize (GtkWidget *widget); static void gtk_handle_box_unrealize (GtkWidget *widget);
static void gtk_handle_box_style_set (GtkWidget *widget, static void gtk_handle_box_style_set (GtkWidget *widget,
GtkStyle *previous_style); GtkStyle *previous_style);
static void gtk_handle_box_size_request (GtkWidget *widget, static void gtk_handle_box_size_request (GtkWidget *widget,
GtkRequisition *requisition); GtkRequisition *requisition);
static void gtk_handle_box_size_allocate (GtkWidget *widget, static void gtk_handle_box_size_allocate (GtkWidget *widget,
GtkAllocation *real_allocation); GtkAllocation *real_allocation);
static void gtk_handle_box_add (GtkContainer *container, static void gtk_handle_box_add (GtkContainer *container,
GtkWidget *widget); GtkWidget *widget);
static void gtk_handle_box_remove (GtkContainer *container, static void gtk_handle_box_remove (GtkContainer *container,
GtkWidget *widget); GtkWidget *widget);
static void gtk_handle_box_draw_ghost (GtkHandleBox *hb); static void gtk_handle_box_draw_ghost (GtkHandleBox *hb);
static void gtk_handle_box_paint (GtkWidget *widget, static void gtk_handle_box_paint (GtkWidget *widget,
GdkEventExpose *event, GdkEventExpose *event,
GdkRectangle *area); GdkRectangle *area);
static gint gtk_handle_box_expose (GtkWidget *widget, static gboolean gtk_handle_box_expose (GtkWidget *widget,
GdkEventExpose *event); GdkEventExpose *event);
static gint gtk_handle_box_button_changed (GtkWidget *widget, static gboolean gtk_handle_box_button_press (GtkWidget *widget,
GdkEventButton *event); GdkEventButton *event);
static gint gtk_handle_box_motion (GtkWidget *widget, static gboolean gtk_handle_box_motion (GtkWidget *widget,
GdkEventMotion *event); GdkEventMotion *event);
static gint gtk_handle_box_delete_event (GtkWidget *widget, static gboolean gtk_handle_box_delete_event (GtkWidget *widget,
GdkEventAny *event); GdkEventAny *event);
static void gtk_handle_box_reattach (GtkHandleBox *hb); static void gtk_handle_box_reattach (GtkHandleBox *hb);
static void gtk_handle_box_end_drag (GtkHandleBox *hb, static void gtk_handle_box_end_drag (GtkHandleBox *hb,
guint32 time); guint32 time);
static guint handle_box_signals[SIGNAL_LAST] = { 0 }; static guint handle_box_signals[SIGNAL_LAST] = { 0 };
G_DEFINE_TYPE (GtkHandleBox, gtk_handle_box, GTK_TYPE_BIN) G_DEFINE_TYPE (GtkHandleBox, gtk_handle_box, GTK_TYPE_BIN)
@ -219,7 +219,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
widget_class->size_request = gtk_handle_box_size_request; widget_class->size_request = gtk_handle_box_size_request;
widget_class->size_allocate = gtk_handle_box_size_allocate; widget_class->size_allocate = gtk_handle_box_size_allocate;
widget_class->expose_event = gtk_handle_box_expose; widget_class->expose_event = gtk_handle_box_expose;
widget_class->button_press_event = gtk_handle_box_button_changed; widget_class->button_press_event = gtk_handle_box_button_press;
widget_class->delete_event = gtk_handle_box_delete_event; widget_class->delete_event = gtk_handle_box_delete_event;
container_class->add = gtk_handle_box_add; container_class->add = gtk_handle_box_add;
@ -869,8 +869,7 @@ gtk_handle_box_get_child_detached (GtkHandleBox *handle_box)
static void static void
gtk_handle_box_paint (GtkWidget *widget, gtk_handle_box_paint (GtkWidget *widget,
GdkEventExpose *event,
GdkEventExpose *event,
GdkRectangle *area) GdkRectangle *area)
{ {
GtkBin *bin; GtkBin *bin;
@ -956,7 +955,7 @@ gtk_handle_box_paint (GtkWidget *widget,
GTK_WIDGET_CLASS (gtk_handle_box_parent_class)->expose_event (widget, event); GTK_WIDGET_CLASS (gtk_handle_box_parent_class)->expose_event (widget, event);
} }
static gint static gboolean
gtk_handle_box_expose (GtkWidget *widget, gtk_handle_box_expose (GtkWidget *widget,
GdkEventExpose *event) GdkEventExpose *event)
{ {
@ -1018,9 +1017,9 @@ gtk_handle_box_grab_event (GtkWidget *widget,
return FALSE; return FALSE;
} }
static gint static gboolean
gtk_handle_box_button_changed (GtkWidget *widget, gtk_handle_box_button_press (GtkWidget *widget,
GdkEventButton *event) GdkEventButton *event)
{ {
GtkHandleBox *hb; GtkHandleBox *hb;
gboolean event_handled; gboolean event_handled;
@ -1146,7 +1145,7 @@ gtk_handle_box_button_changed (GtkWidget *widget,
return event_handled; return event_handled;
} }
static gint static gboolean
gtk_handle_box_motion (GtkWidget *widget, gtk_handle_box_motion (GtkWidget *widget,
GdkEventMotion *event) GdkEventMotion *event)
{ {