phosh-arch/gtk3-mobile/Reduce-the-font-chooser-minimum-size.patch
2024-08-13 08:17:11 -07:00

38 lines
1.8 KiB
Diff

From: Adrien Plazas <kekun.plazas@laposte.net>
Date: Sun, 25 Aug 2019 10:20:31 +0200
Subject: Reduce the font chooser minimum size
This helps GtkfontChooserDialog fitting in mobile phone screens.
---
gtk/ui/gtkfontchooserdialog.ui | 2 ++
gtk/ui/gtkfontchooserwidget.ui | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gtk/ui/gtkfontchooserdialog.ui b/gtk/ui/gtkfontchooserdialog.ui
index 1067096..f787ee6 100644
--- a/gtk/ui/gtkfontchooserdialog.ui
+++ b/gtk/ui/gtkfontchooserdialog.ui
@@ -5,6 +5,8 @@
<property name="border-width">5</property>
<property name="title" translatable="yes">Select Font</property>
<property name="type-hint">dialog</property>
+ <property name="default-width">400</property>
+ <property name="default-height">500</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="orientation">vertical</property>
diff --git a/gtk/ui/gtkfontchooserwidget.ui b/gtk/ui/gtkfontchooserwidget.ui
index 2d39200..074f233 100644
--- a/gtk/ui/gtkfontchooserwidget.ui
+++ b/gtk/ui/gtkfontchooserwidget.ui
@@ -70,8 +70,8 @@
<child>
<object class="GtkScrolledWindow" id="list_scrolled_window">
<property name="visible">1</property>
- <property name="width-request">400</property>
- <property name="height-request">300</property>
+ <property name="width-request">300</property>
+ <property name="height-request">50</property>
<property name="can-focus">1</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>