mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Gtk code cleanups: use gdk_window_get_width/height functions
This commit is contained in:
@@ -222,7 +222,8 @@ gnc_window_adjust_for_screen(GtkWindow * window)
|
||||
|
||||
screen_width = gdk_screen_width();
|
||||
screen_height = gdk_screen_height();
|
||||
gdk_drawable_get_size(GTK_WIDGET(window)->window, &width, &height);
|
||||
width = gdk_window_get_width (gtk_widget_get_window (GTK_WIDGET(window)));
|
||||
height = gdk_window_get_height (gtk_widget_get_window (GTK_WIDGET(window)));
|
||||
|
||||
if ((width <= screen_width) && (height <= screen_height))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user