[gthumb] realize the window to get the screen size at start-up
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] realize the window to get the screen size at start-up
- Date: Thu, 19 Dec 2019 10:56:32 +0000 (UTC)
commit 5d158784250212122d069282ea2f831c80fa9bb3
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Dec 19 11:19:41 2019 +0100
realize the window to get the screen size at start-up
gthumb/gth-browser.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 886eaa63..ac00fcac 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -4314,6 +4314,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]