mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix missing screen for GLib < 3.22.
This commit is contained in:
parent
5dcb44d991
commit
519880545b
@ -156,7 +156,6 @@ gnc_reconcile_view_tooltip_cb (GNCQueryView *qview, gint x, gint y,
|
|||||||
GdkDeviceManager *device_manager;
|
GdkDeviceManager *device_manager;
|
||||||
#endif
|
#endif
|
||||||
GdkDevice *pointer;
|
GdkDevice *pointer;
|
||||||
GdkScreen *screen;
|
|
||||||
GtkWindow *tip_win = NULL;
|
GtkWindow *tip_win = NULL;
|
||||||
GdkWindow *parent_window;
|
GdkWindow *parent_window;
|
||||||
GList *win_list, *node;
|
GList *win_list, *node;
|
||||||
@ -193,6 +192,7 @@ gnc_reconcile_view_tooltip_cb (GNCQueryView *qview, gint x, gint y,
|
|||||||
#if GTK_CHECK_VERSION(3,22,0)
|
#if GTK_CHECK_VERSION(3,22,0)
|
||||||
GdkMonitor *mon;
|
GdkMonitor *mon;
|
||||||
#else
|
#else
|
||||||
|
GdkScreen *screen;
|
||||||
gint monitor_num;
|
gint monitor_num;
|
||||||
#endif
|
#endif
|
||||||
GdkRectangle monitor;
|
GdkRectangle monitor;
|
||||||
@ -208,6 +208,7 @@ gnc_reconcile_view_tooltip_cb (GNCQueryView *qview, gint x, gint y,
|
|||||||
mon = gdk_display_get_monitor_at_point (gdk_display_get_default(), x, y);
|
mon = gdk_display_get_monitor_at_point (gdk_display_get_default(), x, y);
|
||||||
gdk_monitor_get_geometry (mon, &monitor);
|
gdk_monitor_get_geometry (mon, &monitor);
|
||||||
#else
|
#else
|
||||||
|
screen = gtk_widget_get_screen (GTK_WIDGET (qview));
|
||||||
monitor_num = gdk_screen_get_monitor_at_point (screen, x, y);
|
monitor_num = gdk_screen_get_monitor_at_point (screen, x, y);
|
||||||
gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
|
gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user