forked from AuroraMiddleware/gtk
cellrendereraccel: remove superfluous GTK+ grabs
This commit is contained in:
parent
f766109b5b
commit
db14e22f06
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user