summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendereraccel.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-04-08 20:21:17 +0200
committerCarlos Garnacho <carlosg@gnome.org>2014-05-23 19:54:24 +0200
commitdb14e22f060cd23d88de72bc73b6670f5ea92d58 (patch)
tree038067cd47ccca11f21f499db44170de4455009f /gtk/gtkcellrendereraccel.c
parentf766109b5bb48421c7d53f6927c41cc6d416e4f5 (diff)
downloadgtk+-db14e22f060cd23d88de72bc73b6670f5ea92d58.tar.gz
cellrendereraccel: remove superfluous GTK+ grabs
Diffstat (limited to 'gtk/gtkcellrendereraccel.c')
-rw-r--r--gtk/gtkcellrendereraccel.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk/gtkcellrendereraccel.c b/gtk/gtkcellrendereraccel.c
index 3cc7aad532..28c5637c90 100644
--- a/gtk/gtkcellrendereraccel.c
+++ b/gtk/gtkcellrendereraccel.c
@@ -511,7 +511,6 @@ grab_key_callback (GtkWidget *widget,
edited = TRUE;
out:
- gtk_device_grab_remove (priv->grab_widget, priv->grab_pointer);
gdk_device_ungrab (priv->grab_keyboard, event->time);
gdk_device_ungrab (priv->grab_pointer, event->time);
@@ -541,7 +540,6 @@ ungrab_stuff (GtkWidget *widget,
{
GtkCellRendererAccelPrivate *priv = accel->priv;
- gtk_device_grab_remove (priv->grab_widget, priv->grab_pointer);
gdk_device_ungrab (priv->grab_keyboard, GDK_CURRENT_TIME);
gdk_device_ungrab (priv->grab_pointer, GDK_CURRENT_TIME);
@@ -749,8 +747,6 @@ gtk_cell_renderer_accel_start_editing (GtkCellRenderer *cell,
gtk_widget_show_all (priv->edit_widget);
- gtk_device_grab_add (priv->grab_widget, pointer, TRUE);
-
g_signal_connect (priv->edit_widget, "unrealize",
G_CALLBACK (ungrab_stuff), accel);