[gtk+/xi2] GtkComboBox: Use GTK+ device grabs.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/xi2] GtkComboBox: Use GTK+ device grabs.
- Date: Tue, 9 Mar 2010 17:53:58 +0000 (UTC)
commit 9982a089059e3203a102de9f6d74099661b6695f
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Mar 9 18:26:27 2010 +0100
GtkComboBox: Use GTK+ device grabs.
gtk/gtkcombobox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 141632e..fec0d63 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2010,7 +2010,7 @@ gtk_combo_box_popup_for_device (GtkComboBox *combo_box,
return;
}
- gtk_grab_add (priv->popup_window);
+ gtk_device_grab_add (priv->popup_window, pointer, TRUE);
priv->grab_pointer = pointer;
priv->grab_keyboard = keyboard;
}
@@ -2079,7 +2079,7 @@ gtk_combo_box_popdown (GtkComboBox *combo_box)
if (!GTK_WIDGET_REALIZED (GTK_WIDGET (combo_box)))
return;
- gtk_grab_remove (priv->popup_window);
+ gtk_device_grab_remove (priv->popup_window, priv->grab_pointer);
gtk_widget_hide_all (priv->popup_window);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->button),
FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]