Use gtk_widget_get_window() instead of widget->window

This commit is contained in:
Michael Natterer 2009-10-09 11:09:41 +02:00
parent 00ce057226
commit 639194aac5
1 changed files with 1 additions and 1 deletions

View File

@ -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);