mirror of https://github.com/GNOME/gimp.git
Use gtk_widget_get_window() instead of widget->window
This commit is contained in:
parent
00ce057226
commit
639194aac5
|
@ -84,7 +84,7 @@ resolution_calibrate_dialog (GtkWidget *resolution_entry,
|
|||
|
||||
screen = gtk_widget_get_screen (dialog);
|
||||
monitor = gdk_screen_get_monitor_at_window (screen,
|
||||
resolution_entry->window);
|
||||
gtk_widget_get_window (resolution_entry));
|
||||
gdk_screen_get_monitor_geometry (screen, monitor, &rect);
|
||||
|
||||
ruler_width = rect.width - 300 - (rect.width % 100);
|
||||
|
|
Loading…
Reference in New Issue