[gthumb] dialog size: realize the dialog before getting its screen size
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] dialog size: realize the dialog before getting its screen size
- Date: Sun, 21 Apr 2019 10:43:23 +0000 (UTC)
commit f2eab2daf570125147b261dcb508ee5607d16e72
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Apr 21 11:57:56 2019 +0200
dialog size: realize the dialog before getting its screen size
gthumb/gtk-utils.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gthumb/gtk-utils.c b/gthumb/gtk-utils.c
index 7470080f..861b04f3 100644
--- a/gthumb/gtk-utils.c
+++ b/gthumb/gtk-utils.c
@@ -680,6 +680,7 @@ _gtk_window_resize_to_fit_screen_height (GtkWidget *window,
{
int screen_height;
+ gtk_widget_realize (window);
_gtk_widget_get_screen_size (window, NULL, &screen_height);
if (screen_height < 768)
/* maximize on netbooks */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]