[gnome-panel/gtk3] Fix use of deprecated gdk_display_pointer_ungrab()
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/gtk3] Fix use of deprecated gdk_display_pointer_ungrab()
- Date: Sat, 8 Jan 2011 03:22:09 +0000 (UTC)
commit fd23e0e3f434c26926b2f22e72d48fff19845079
Author: Germán Póo-Caamaño <gpoo gnome org>
Date: Fri Jan 7 18:58:00 2011 -0800
Fix use of deprecated gdk_display_pointer_ungrab()
Replaced gdk_display_pointer_ungrab() by gdk_device_ungrab()
https://bugzilla.gnome.org/show_bug.cgi?id=627455
Wanda: are you going to free me?
Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>
libpanel-applet/panel-applet.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/libpanel-applet/panel-applet.c b/libpanel-applet/panel-applet.c
index 59c139e..178b803 100644
--- a/libpanel-applet/panel-applet.c
+++ b/libpanel-applet/panel-applet.c
@@ -1064,9 +1064,7 @@ panel_applet_button_event (GtkWidget *widget,
* selected.
* We don't want to hog the pointer on our parent.
*/
- gdk_display_pointer_ungrab
- (gtk_widget_get_display (widget),
- GDK_CURRENT_TIME);
+ gdk_device_ungrab (event->device, GDK_CURRENT_TIME);
} else {
xevent.xbutton.type = ButtonRelease;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]