summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2022-04-26 08:18:18 +0100
committerDavid King <amigadave@amigadave.com>2022-04-26 08:48:04 +0100
commit782cd3abc3278ed9afa4393cd22641e56731e09b (patch)
tree8d5c7411b4a3d24ed647b464727a08de40d6167c
parentmsg: Fix maximum width to 60 characters (diff)
downloadzenity-782cd3abc3278ed9afa4393cd22641e56731e09b.tar.gz
zenity-782cd3abc3278ed9afa4393cd22641e56731e09b.tar.bz2
zenity-782cd3abc3278ed9afa4393cd22641e56731e09b.zip
zenity.ui: make message dialogs non-resizable
Use the approach of GtkMessageDialog, to avoid problems with narrow labels when the dialog text is long.
-rw-r--r--src/zenity.ui4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zenity.ui b/src/zenity.ui
index 2311340b..c1a367c3 100644
--- a/src/zenity.ui
+++ b/src/zenity.ui
@@ -466,6 +466,7 @@
<property name="title" translatable="yes">Error</property>
<property name="window_position">center</property>
<property name="type_hint">dialog</property>
+ <property name="resizable">false</property>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox7">
@@ -682,6 +683,7 @@
<property name="title" translatable="yes">Information</property>
<property name="window_position">center</property>
<property name="type_hint">dialog</property>
+ <property name="resizable">false</property>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox9">
@@ -883,6 +885,7 @@
<property name="title" translatable="yes">Question</property>
<property name="window_position">center</property>
<property name="type_hint">dialog</property>
+ <property name="resizable">false</property>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox3">
@@ -1065,6 +1068,7 @@
<property name="title" translatable="yes">Warning</property>
<property name="window_position">center</property>
<property name="type_hint">dialog</property>
+ <property name="resizable">false</property>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
bgstack15