diff options
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 273 |
1 files changed, 136 insertions, 137 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 945f178434..84d8db2229 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -494,7 +494,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) g_param_spec_flags ("events", _("Events"), _("The event mask that decides what kind of GdkEvents this widget gets."), - GTK_TYPE_GDK_EVENT_MASK, + GDK_TYPE_EVENT_MASK, GDK_STRUCTURE_MASK, G_PARAM_READWRITE)); @@ -503,7 +503,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) g_param_spec_enum ("extension_events", _("Extension events"), _("The mask that decides what kind of extension events this widget gets."), - GTK_TYPE_GDK_EXTENSION_MODE, + GDK_TYPE_EXTENSION_MODE, GDK_EXTENSION_EVENTS_NONE, G_PARAM_READWRITE)); @@ -629,194 +629,194 @@ gtk_widget_class_init (GtkWidgetClass *klass) gtk_marshal_VOID__VOID, GTK_TYPE_NONE, 0); widget_signals[EVENT] = - g_signal_newc("event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[BUTTON_PRESS_EVENT] = - g_signal_newc("button_press_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, button_press_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("button_press_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, button_press_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[BUTTON_RELEASE_EVENT] = - g_signal_newc("button_release_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, button_release_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("button_release_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, button_release_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[SCROLL_EVENT] = - g_signal_newc("scroll_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, scroll_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("scroll_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, scroll_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[MOTION_NOTIFY_EVENT] = - g_signal_newc("motion_notify_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, motion_notify_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("motion_notify_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, motion_notify_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[DELETE_EVENT] = - g_signal_newc("delete_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, delete_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("delete_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, delete_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[DESTROY_EVENT] = - g_signal_newc("destroy_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, destroy_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("destroy_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, destroy_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[EXPOSE_EVENT] = - g_signal_newc("expose_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, expose_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("expose_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, expose_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[KEY_PRESS_EVENT] = - g_signal_newc("key_press_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, key_press_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("key_press_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, key_press_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[KEY_RELEASE_EVENT] = - g_signal_newc("key_release_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, key_release_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("key_release_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, key_release_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[ENTER_NOTIFY_EVENT] = - g_signal_newc("enter_notify_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, enter_notify_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("enter_notify_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, enter_notify_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[LEAVE_NOTIFY_EVENT] = - g_signal_newc("leave_notify_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, leave_notify_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("leave_notify_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, leave_notify_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[CONFIGURE_EVENT] = - g_signal_newc("configure_event", - G_TYPE_FROM_CLASS(object_class), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET(GtkWidgetClass, configure_event), - _gtk_boolean_handled_accumulator, NULL, - gtk_marshal_BOOLEAN__BOXED, - G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + g_signal_newc ("configure_event", + G_TYPE_FROM_CLASS(object_class), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET(GtkWidgetClass, configure_event), + _gtk_boolean_handled_accumulator, NULL, + gtk_marshal_BOOLEAN__BOXED, + G_TYPE_BOOLEAN, 1, + GDK_TYPE_EVENT); widget_signals[FOCUS_IN_EVENT] = - g_signal_newc("focus_in_event", + g_signal_newc ("focus_in_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, focus_in_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[FOCUS_OUT_EVENT] = - g_signal_newc("focus_out_event", + g_signal_newc ("focus_out_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, focus_out_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[MAP_EVENT] = - g_signal_newc("map_event", + g_signal_newc ("map_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, map_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[UNMAP_EVENT] = - g_signal_newc("unmap_event", + g_signal_newc ("unmap_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, unmap_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[PROPERTY_NOTIFY_EVENT] = - g_signal_newc("property_notify_event", + g_signal_newc ("property_notify_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, property_notify_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[SELECTION_CLEAR_EVENT] = - g_signal_newc("selection_clear_event", + g_signal_newc ("selection_clear_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, selection_clear_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[SELECTION_REQUEST_EVENT] = - g_signal_newc("selection_request_event", + g_signal_newc ("selection_request_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, selection_request_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[SELECTION_NOTIFY_EVENT] = - g_signal_newc("selection_notify_event", + g_signal_newc ("selection_notify_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, selection_notify_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[SELECTION_RECEIVED] = gtk_signal_new ("selection_received", GTK_RUN_LAST, @@ -837,23 +837,23 @@ gtk_widget_class_init (GtkWidgetClass *klass) GTK_TYPE_UINT, GTK_TYPE_UINT); widget_signals[PROXIMITY_IN_EVENT] = - g_signal_newc("proximity_in_event", + g_signal_newc ("proximity_in_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, proximity_in_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[PROXIMITY_OUT_EVENT] = - g_signal_newc("proximity_out_event", + g_signal_newc ("proximity_out_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, proximity_out_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[DRAG_LEAVE] = gtk_signal_new ("drag_leave", GTK_RUN_LAST, @@ -888,7 +888,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) GTK_TYPE_NONE, 1, GDK_TYPE_DRAG_CONTEXT); widget_signals[DRAG_MOTION] = - g_signal_newc("drag_motion", + g_signal_newc ("drag_motion", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, drag_motion), @@ -900,7 +900,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) G_TYPE_INT, G_TYPE_UINT); widget_signals[DRAG_DROP] = - g_signal_newc("drag_drop", + g_signal_newc ("drag_drop", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, drag_drop), @@ -936,42 +936,41 @@ gtk_widget_class_init (GtkWidgetClass *klass) GTK_TYPE_UINT, GTK_TYPE_UINT); widget_signals[VISIBILITY_NOTIFY_EVENT] = - g_signal_newc("visibility_notify_event", + g_signal_newc ("visibility_notify_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, visibility_notify_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[CLIENT_EVENT] = - g_signal_newc("client_event", + g_signal_newc ("client_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, client_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[NO_EXPOSE_EVENT] = - g_signal_newc("no_expose_event", + g_signal_newc ("no_expose_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, no_expose_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); + GDK_TYPE_EVENT); widget_signals[WINDOW_STATE_EVENT] = - g_signal_newc("window_state_event", + g_signal_newc ("window_state_event", G_TYPE_FROM_CLASS(object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET(GtkWidgetClass, window_state_event), _gtk_boolean_handled_accumulator, NULL, gtk_marshal_BOOLEAN__BOXED, G_TYPE_BOOLEAN, 1, - GTK_TYPE_GDK_EVENT); - + GDK_TYPE_EVENT); widget_signals[POPUP_MENU] = gtk_signal_new ("popup_menu", GTK_RUN_LAST | GTK_RUN_ACTION, |