[gtk+] widget: No need to update events
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: No need to update events
- Date: Mon, 13 Nov 2017 22:42:20 +0000 (UTC)
commit 457bf3b60483c716427c17302ac8002a6a363d19
Author: Benjamin Otte <otte redhat com>
Date: Mon Nov 13 18:34:01 2017 +0100
widget: No need to update events
GtkWindow queues for all events anyway, so the needed ones are already
there.
gtk/gtkwidget.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 8c51fa7..df727dd 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12536,15 +12536,6 @@ gtk_widget_real_set_has_tooltip (GtkWidget *widget,
{
priv->has_tooltip = has_tooltip;
- if (priv->has_tooltip)
- {
- if (_gtk_widget_get_realized (widget) && !_gtk_widget_get_has_window (widget))
- gdk_window_set_events (priv->window,
- gdk_window_get_events (priv->window) |
- GDK_LEAVE_NOTIFY_MASK |
- GDK_POINTER_MOTION_MASK);
- }
-
g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_HAS_TOOLTIP]);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]