[gtk+] widget: Remove damage-event



commit c261d890adccb81384294810d0bcfa6b0868af3f
Author: Timm Bäder <mail baedert org>
Date:   Sun Oct 30 19:29:41 2016 +0100

    widget: Remove damage-event

 gtk/gtkwidget.c |   30 ------------------------------
 gtk/gtkwidget.h |    4 ----
 2 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 2c7f6a1..0293784 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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;
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 1929aaa..0683233 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]