[gthumb/gthumb-3-8] 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/gthumb-3-8] realize the window to get the screen size at start-up
- Date: Thu, 19 Dec 2019 11:02:02 +0000 (UTC)
commit 6f2b5736061b4d2119c557953f1c1f0a4e87d114
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 00ba013b..d5924b66 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]