widget: Remove damage-event

This commit is contained in:
Timm Bäder 2016-10-30 19:29:41 +01:00
parent c25a5606d1
commit c261d890ad
2 changed files with 0 additions and 34 deletions

View File

@ -536,7 +536,6 @@ enum {
PROXIMITY_IN_EVENT,
PROXIMITY_OUT_EVENT,
WINDOW_STATE_EVENT,
DAMAGE_EVENT,
GRAB_BROKEN_EVENT,
DRAG_BEGIN,
DRAG_END,
@ -2985,32 +2984,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
g_signal_set_va_marshaller (widget_signals[WINDOW_STATE_EVENT], G_TYPE_FROM_CLASS (klass),
_gtk_marshal_BOOLEAN__BOXEDv);
/**
* GtkWidget::damage-event:
* @widget: the object which received the signal
* @event: (type Gdk.EventExpose): the #GdkEventExpose event
*
* Emitted when a redirected window belonging to @widget gets drawn into.
* The region/area members of the event shows what area of the redirected
* drawable was drawn into.
*
* Returns: %TRUE to stop other handlers from being invoked for the event.
* %FALSE to propagate the event further.
*
* Since: 2.14
*/
widget_signals[DAMAGE_EVENT] =
g_signal_new (I_("damage-event"),
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkWidgetClass, damage_event),
_gtk_boolean_handled_accumulator, NULL,
_gtk_marshal_BOOLEAN__BOXED,
G_TYPE_BOOLEAN, 1,
GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE);
g_signal_set_va_marshaller (widget_signals[DAMAGE_EVENT], G_TYPE_FROM_CLASS (klass),
_gtk_marshal_BOOLEAN__BOXEDv);
/**
* GtkWidget::grab-broken-event:
* @widget: the object which received the signal
@ -7092,9 +7065,6 @@ gtk_widget_event_internal (GtkWidget *widget,
case GDK_GRAB_BROKEN:
signal_num = GRAB_BROKEN_EVENT;
break;
case GDK_DAMAGE:
signal_num = DAMAGE_EVENT;
break;
default:
g_warning ("gtk_widget_event(): unhandled event type: %d", event->type);
signal_num = -1;

View File

@ -241,8 +241,6 @@ struct _GtkWidget
* obscured or unobscured.
* @window_state_event: Signal emitted when the state of the toplevel
* window associated to the widget changes.
* @damage_event: Signal emitted when a redirected window belonging to
* widget gets drawn into.
* @grab_broken_event: Signal emitted when a pointer or keyboard grab
* on a window belonging to widget gets broken.
* @selection_get:
@ -435,8 +433,6 @@ struct _GtkWidgetClass
GdkEventVisibility *event);
gboolean (* window_state_event) (GtkWidget *widget,
GdkEventWindowState *event);
gboolean (* damage_event) (GtkWidget *widget,
GdkEventExpose *event);
gboolean (* grab_broken_event) (GtkWidget *widget,
GdkEventGrabBroken *event);