[geary: 3/6] composer: Make format menu more generic



commit 66bbb576a6a7e442dc1427a5ea9a8ee919c1f79d
Author: James Westman <flyingpimonster gmail com>
Date:   Wed Jan 29 16:30:19 2020 -0600

    composer: Make format menu more generic
    
    It still only contains text formatting options, but it uses the
    view-more-symbolic icon.

 src/client/composer/composer-widget.vala |  4 ++--
 ui/composer-widget.ui                    | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index ad73faf3..ac248221 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -392,7 +392,7 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
     [GtkChild] private Gtk.Stack font_button_stack;
     [GtkChild] private Gtk.MenuButton font_size_button;
     [GtkChild] private Gtk.Image font_color_icon;
-    [GtkChild] private Gtk.MenuButton text_format_button;
+    [GtkChild] private Gtk.MenuButton more_options_button;
 
     [GtkChild]
     private Gtk.Button insert_link_button;
@@ -2147,7 +2147,7 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
         this.editor.set_rich_text(compose_as_html);
 
         this.application.config.compose_as_html = compose_as_html;
-        this.text_format_button.popover.popdown();
+        this.more_options_button.popover.popdown();
     }
 
     private void reparent_widget(Gtk.Widget child, Gtk.Container new_parent) {
diff --git a/ui/composer-widget.ui b/ui/composer-widget.ui
index 515891be..60cbda99 100644
--- a/ui/composer-widget.ui
+++ b/ui/composer-widget.ui
@@ -1153,18 +1153,18 @@
                   </object>
                 </child>
                 <child>
-                  <object class="GtkMenuButton" id="text_format_button">
+                  <object class="GtkMenuButton" id="more_options_button">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <property name="focus_on_click">False</property>
                     <property name="receives_default">False</property>
-                    <property name="menu_model">rich_text_menu</property>
-                    <property name="tooltip_text" translatable="yes">Enable or disable rich text 
mode</property>
+                    <property name="menu_model">more_options_menu</property>
+                    <property name="tooltip_text" translatable="yes">More options</property>
                     <property name="direction">up</property>
                     <child>
                       <object class="GtkImage">
                         <property name="visible">True</property>
-                        <property name="icon_name">format-text-bold-symbolic</property>
+                        <property name="icon_name">view-more-symbolic</property>
                       </object>
                     </child>
                   </object>
@@ -1297,7 +1297,7 @@
     </section>
   </menu>
 
-  <menu id="rich_text_menu">
+  <menu id="more_options_menu">
     <section>
       <item>
         <attribute name="label" translatable="yes">_Rich Text</attribute>


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