Remove use of gdk_drawable_get_{screen, display}
The gdk_drawable_get_screen and gdk_drawable_get_display methods don't exist in GDK3. Fortunately, even on GTK2 they are not required - we can call the equivalent gtk_widget_get_screen/gtk_widget_get_display methods which have existed since GTK 2.2 Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1361805646-6425-3-git-send-email-berrange@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
cba68834c6
commit
66962f1437
5
ui/gtk.c
5
ui/gtk.c
@ -501,9 +501,8 @@ static gboolean gd_motion_event(GtkWidget *widget, GdkEventMotion *motion,
|
||||
}
|
||||
|
||||
if (!kbd_mouse_is_absolute() && gd_is_grab_active(s)) {
|
||||
GdkDrawable *drawable = GDK_DRAWABLE(gtk_widget_get_window(s->drawing_area));
|
||||
GdkDisplay *display = gdk_drawable_get_display(drawable);
|
||||
GdkScreen *screen = gdk_drawable_get_screen(drawable);
|
||||
GdkDisplay *display = gtk_widget_get_display(s->drawing_area);
|
||||
GdkScreen *screen = gtk_widget_get_screen(s->drawing_area);
|
||||
int x = (int)motion->x_root;
|
||||
int y = (int)motion->y_root;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user