[gtk+/wip/otte/gtk4: 96/121] widget: Remove visibility-notify-event
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/gtk4: 96/121] widget: Remove visibility-notify-event
- Date: Fri, 7 Oct 2016 04:10:11 +0000 (UTC)
commit 2e1195bbbea36fb2c8da0d8f1d57070d3ff681e1
Author: Timm Bäder <mail baedert org>
Date: Tue Oct 4 19:09:58 2016 +0200
widget: Remove visibility-notify-event
gtk/gtkwidget.c | 35 +----------------------------------
1 files changed, 1 insertions(+), 34 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index e2a8405..69757a0 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -536,7 +536,6 @@ enum {
SELECTION_RECEIVED,
PROXIMITY_IN_EVENT,
PROXIMITY_OUT_EVENT,
- VISIBILITY_NOTIFY_EVENT,
WINDOW_STATE_EVENT,
DAMAGE_EVENT,
GRAB_BROKEN_EVENT,
@@ -3030,36 +3029,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
G_TYPE_UINT);
/**
- * GtkWidget::visibility-notify-event:
- * @widget: the object which received the signal
- * @event: (type Gdk.EventVisibility): the #GdkEventVisibility which
- * triggered this signal.
- *
- * The ::visibility-notify-event will be emitted when the @widget's
- * window is obscured or unobscured.
- *
- * To receive this signal the #GdkWindow associated to the widget needs
- * to enable the #GDK_VISIBILITY_NOTIFY_MASK mask.
- *
- * Returns: %TRUE to stop other handlers from being invoked for the event.
- * %FALSE to propagate the event further.
- *
- * Deprecated: 3.12: Modern composited windowing systems with pervasive
- * transparency make it impossible to track the visibility of a window
- * reliably, so this signal can not be guaranteed to provide useful
- * information.
- */
- widget_signals[VISIBILITY_NOTIFY_EVENT] =
- g_signal_new (I_("visibility-notify-event"),
- G_TYPE_FROM_CLASS (klass),
- G_SIGNAL_RUN_LAST | G_SIGNAL_DEPRECATED,
- G_STRUCT_OFFSET (GtkWidgetClass, visibility_notify_event),
- _gtk_boolean_handled_accumulator, NULL,
- _gtk_marshal_BOOLEAN__BOXED,
- G_TYPE_BOOLEAN, 1,
- GDK_TYPE_EVENT | G_SIGNAL_TYPE_STATIC_SCOPE);
-
- /**
* GtkWidget::window-state-event:
* @widget: the object which received the signal
* @event: (type Gdk.EventWindowState): the #GdkEventWindowState which
@@ -7181,6 +7150,7 @@ gtk_widget_event_internal (GtkWidget *widget,
case GDK_PAD_RING:
case GDK_PAD_STRIP:
case GDK_PAD_GROUP_MODE:
+ case GDK_VISIBILITY_NOTIFY:
case GDK_EXPOSE:
case GDK_NOTHING:
signal_num = -1;
@@ -7261,9 +7231,6 @@ gtk_widget_event_internal (GtkWidget *widget,
case GDK_PROXIMITY_OUT:
signal_num = PROXIMITY_OUT_EVENT;
break;
- case GDK_VISIBILITY_NOTIFY:
- signal_num = VISIBILITY_NOTIFY_EVENT;
- break;
case GDK_GRAB_BROKEN:
signal_num = GRAB_BROKEN_EVENT;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]