Commit 6f2b5736 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

realize the window to get the screen size at start-up

parent 8d29c804
......@@ -4350,6 +4350,7 @@ gth_browser_init (GthBrowser *browser)
int default_columns_of_thumbnails;
int n_cols;
gtk_widget_realize (GTK_WIDGET (browser));
_gtk_widget_get_screen_size (GTK_WIDGET (browser), &max_width, &max_height);
max_width = max_width * 5 / 6;
max_height = max_height * 3 / 4;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment