[recipes] Rename Preferences menu item



commit a463a289e11c74ac03dfdd0b8fde6d3730d87572
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 30 09:10:52 2017 +0100

    Rename Preferences menu item
    
    "Preferences" was not a very obvious label for this, so call
    it "My Chef Information" instead. At the same time, get rid
    of the redundant title inside the dialog, and just use the
    headerbar.

 src/gr-app.c          |    9 +++++----
 src/gr-chef-dialog.ui |   13 ++-----------
 src/menus.ui          |    4 ++--
 3 files changed, 9 insertions(+), 17 deletions(-)
---
diff --git a/src/gr-app.c b/src/gr-app.c
index 473f4ec..922ce48 100644
--- a/src/gr-app.c
+++ b/src/gr-app.c
@@ -68,15 +68,16 @@ gr_app_activate (GApplication *app)
 }
 
 static void
-preferences_activated (GSimpleAction *action,
-                       GVariant      *parameter,
-                       gpointer       app)
+chef_information_activated (GSimpleAction *action,
+                            GVariant      *parameter,
+                            gpointer       app)
 {
         GrChefDialog *dialog;
         GtkWindow *win;
 
         win = gtk_application_get_active_window (GTK_APPLICATION (app));
         dialog = gr_chef_dialog_new (win);
+        gtk_window_set_title (GTK_WINDOW (dialog), _("My Chef Information"));
         gtk_window_present (GTK_WINDOW (dialog));
 }
 
@@ -774,7 +775,7 @@ search_activated (GSimpleAction *action,
 
 static GActionEntry app_entries[] =
 {
-        { "preferences", preferences_activated, NULL, NULL, NULL },
+        { "chef-information", chef_information_activated, NULL, NULL, NULL },
         { "about", about_activated, NULL, NULL, NULL },
         { "import", import_activated, NULL, NULL, NULL },
         { "details", details_activated, "(ss)", NULL, NULL },
diff --git a/src/gr-chef-dialog.ui b/src/gr-chef-dialog.ui
index f06ee67..70cb465 100644
--- a/src/gr-chef-dialog.ui
+++ b/src/gr-chef-dialog.ui
@@ -2,7 +2,7 @@
 <interface domain="recipes">
   <!-- interface-requires gtk+ 3.8 -->
   <template class="GrChefDialog" parent="GtkDialog">
-    <property name="title" translatable="yes">Preferences</property>
+    <property name="title" translatable="yes">Chef Information</property>
     <property name="resizable">False</property>
     <property name="modal">True</property>
     <child internal-child="vbox">
@@ -66,17 +66,8 @@
                 <child>
                   <object class="GtkLabel">
                     <property name="visible">1</property>
-                    <property name="label" translatable="yes">Recipe Author Information</property>
-                    <property name="xalign">0</property>
-                    <style>
-                      <class name="heading"/>
-                    </style>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkLabel">
-                    <property name="visible">1</property>
                     <property name="wrap">1</property>
+                    <property name="margin-top">20</property>
                     <property name="width-chars">30</property>
                     <property name="max-width-chars">30</property>
                     <property name="label" translatable="yes">This data may be shared with other users if 
you share your recipes.</property>
diff --git a/src/menus.ui b/src/menus.ui
index b86ff8b..1773869 100644
--- a/src/menus.ui
+++ b/src/menus.ui
@@ -9,8 +9,8 @@
         <attribute name="hidden-when">action-disabled</attribute>
       </item>
       <item>
-        <attribute name="label" translatable="yes">_Preferences</attribute>
-        <attribute name="action">app.preferences</attribute>
+        <attribute name="label" translatable="yes">_My Chef Information</attribute>
+        <attribute name="action">app.chef-information</attribute>
       </item>
     </section>
     <section>


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