[gimp/gtk3-port: 126/226] app: remove calls to gtk_widget_get, set_extension_events()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 126/226] app: remove calls to gtk_widget_get, set_extension_events()
- Date: Sun, 28 Apr 2013 19:27:03 +0000 (UTC)
commit 8ff65c3af7c6d3af7d911a0e51efd35f82953e18
Author: Michael Natterer <mitch gimp org>
Date: Sun Dec 19 22:43:14 2010 +0100
app: remove calls to gtk_widget_get,set_extension_events()
app/display/gimpcanvas.c | 1 -
app/widgets/gimpdevices.c | 13 -------------
2 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/app/display/gimpcanvas.c b/app/display/gimpcanvas.c
index be14f30..84a8e1b 100644
--- a/app/display/gimpcanvas.c
+++ b/app/display/gimpcanvas.c
@@ -100,7 +100,6 @@ gimp_canvas_init (GimpCanvas *canvas)
gtk_widget_set_can_focus (widget, TRUE);
gtk_widget_add_events (widget, GIMP_CANVAS_EVENT_MASK);
- gtk_widget_set_extension_events (widget, GDK_EXTENSION_EVENTS_ALL);
}
static void
diff --git a/app/widgets/gimpdevices.c b/app/widgets/gimpdevices.c
index dc01fb1..25401cf 100644
--- a/app/widgets/gimpdevices.c
+++ b/app/widgets/gimpdevices.c
@@ -241,8 +241,6 @@ gimp_devices_add_widget (Gimp *gimp,
g_return_if_fail (GIMP_IS_GIMP (gimp));
g_return_if_fail (GTK_IS_WIDGET (widget));
- gtk_widget_set_extension_events (widget, GDK_EXTENSION_EVENTS_ALL);
-
g_signal_connect (widget, "motion-notify-event",
G_CALLBACK (gimp_devices_check_callback),
gimp);
@@ -269,7 +267,6 @@ gimp_devices_check_change (Gimp *gimp,
GimpDeviceManager *manager;
GdkDevice *device;
GimpDeviceInfo *device_info;
- GtkWidget *source;
g_return_val_if_fail (GIMP_IS_GIMP (gimp), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
@@ -278,16 +275,6 @@ gimp_devices_check_change (Gimp *gimp,
g_return_val_if_fail (GIMP_IS_DEVICE_MANAGER (manager), FALSE);
- /* It is possible that the event was propagated from a widget that does not
- want extension events and therefore always sends core pointer events.
- This can cause a false switch to the core pointer device. */
-
- source = gtk_get_event_widget (event);
-
- if (source &&
- gtk_widget_get_extension_events (source) == GDK_EXTENSION_EVENTS_NONE)
- return FALSE;
-
switch (event->type)
{
case GDK_MOTION_NOTIFY:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]