phosh-arch/gtk3-mobile/dialog-Maximize-resizable-dialogs-on-phones.patch
2024-08-13 08:17:11 -07:00

23 lines
661 B
Diff

From: Adrien Plazas <kekun.plazas@laposte.net>
Date: Thu, 11 Jul 2019 10:26:16 +0200
Subject: dialog: Maximize resizable dialogs on phones
This will make them look better on phone screens.
---
gtk/gtkdialog.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 0e58ac4..84e1413 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -779,6 +779,9 @@ gtk_dialog_map (GtkWidget *widget)
GTK_WIDGET_CLASS (gtk_dialog_parent_class)->map (widget);
+ if (gtk_window_get_resizable (window) && _gtk_get_is_phone ())
+ gtk_window_maximize (window);
+
focus = gtk_window_get_focus (window);
if (!focus)
{