mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
widget: Remove damage-event
This commit is contained in:
parent
c25a5606d1
commit
c261d890ad
@ -536,7 +536,6 @@ enum {
|
|||||||
PROXIMITY_IN_EVENT,
|
PROXIMITY_IN_EVENT,
|
||||||
PROXIMITY_OUT_EVENT,
|
PROXIMITY_OUT_EVENT,
|
||||||
WINDOW_STATE_EVENT,
|
WINDOW_STATE_EVENT,
|
||||||
DAMAGE_EVENT,
|
|
||||||
GRAB_BROKEN_EVENT,
|
GRAB_BROKEN_EVENT,
|
||||||
DRAG_BEGIN,
|
DRAG_BEGIN,
|
||||||
DRAG_END,
|
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),
|
g_signal_set_va_marshaller (widget_signals[WINDOW_STATE_EVENT], G_TYPE_FROM_CLASS (klass),
|
||||||
_gtk_marshal_BOOLEAN__BOXEDv);
|
_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:
|
* GtkWidget::grab-broken-event:
|
||||||
* @widget: the object which received the signal
|
* @widget: the object which received the signal
|
||||||
@ -7092,9 +7065,6 @@ gtk_widget_event_internal (GtkWidget *widget,
|
|||||||
case GDK_GRAB_BROKEN:
|
case GDK_GRAB_BROKEN:
|
||||||
signal_num = GRAB_BROKEN_EVENT;
|
signal_num = GRAB_BROKEN_EVENT;
|
||||||
break;
|
break;
|
||||||
case GDK_DAMAGE:
|
|
||||||
signal_num = DAMAGE_EVENT;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
g_warning ("gtk_widget_event(): unhandled event type: %d", event->type);
|
g_warning ("gtk_widget_event(): unhandled event type: %d", event->type);
|
||||||
signal_num = -1;
|
signal_num = -1;
|
||||||
|
@ -241,8 +241,6 @@ struct _GtkWidget
|
|||||||
* obscured or unobscured.
|
* obscured or unobscured.
|
||||||
* @window_state_event: Signal emitted when the state of the toplevel
|
* @window_state_event: Signal emitted when the state of the toplevel
|
||||||
* window associated to the widget changes.
|
* 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
|
* @grab_broken_event: Signal emitted when a pointer or keyboard grab
|
||||||
* on a window belonging to widget gets broken.
|
* on a window belonging to widget gets broken.
|
||||||
* @selection_get:
|
* @selection_get:
|
||||||
@ -435,8 +433,6 @@ struct _GtkWidgetClass
|
|||||||
GdkEventVisibility *event);
|
GdkEventVisibility *event);
|
||||||
gboolean (* window_state_event) (GtkWidget *widget,
|
gboolean (* window_state_event) (GtkWidget *widget,
|
||||||
GdkEventWindowState *event);
|
GdkEventWindowState *event);
|
||||||
gboolean (* damage_event) (GtkWidget *widget,
|
|
||||||
GdkEventExpose *event);
|
|
||||||
gboolean (* grab_broken_event) (GtkWidget *widget,
|
gboolean (* grab_broken_event) (GtkWidget *widget,
|
||||||
GdkEventGrabBroken *event);
|
GdkEventGrabBroken *event);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user