[gnome-text-editor: 1/3] infobar: wrap save button label as well




commit 31ace06bcc63992361b8ded92f1c7e1c0ce22857
Author: Arnaud Ferraris <arnaud ferraris collabora com>
Date:   Tue Jun 21 15:52:15 2022 +0200

    infobar: wrap save button label as well
    
    With the addition of new translations, it appears this button can also
    cause the window size to overflow mobile phones screens. Making sure it
    has a label on creation allows us to ensure this label can wrap like we
    do for other infobar buttons, making this app more suitable to small
    displays.

 src/editor-info-bar.c  | 1 +
 src/editor-info-bar.ui | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/editor-info-bar.c b/src/editor-info-bar.c
index bc3491b..5ab2a1c 100644
--- a/src/editor-info-bar.c
+++ b/src/editor-info-bar.c
@@ -290,6 +290,7 @@ editor_info_bar_init (EditorInfoBar *self)
    */
   editor_info_bar_wrap_button_label (self->access_try_admin);
   editor_info_bar_wrap_button_label (self->discard);
+  editor_info_bar_wrap_button_label (self->save);
 
   g_signal_connect_object (self->discard_infobar,
                            "response",
diff --git a/src/editor-info-bar.ui b/src/editor-info-bar.ui
index 4283f4e..235b022 100644
--- a/src/editor-info-bar.ui
+++ b/src/editor-info-bar.ui
@@ -84,7 +84,7 @@
             </child>
             <child type="action">
               <object class="GtkButton" id="save">
-                <property name="margin-start">6</property>
+                <property name="label" translatable="yes">_Saveā€¦</property>
                 <property name="use-underline">True</property>
               </object>
             </child>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]