[gnome-packagekit] gpk-application: Fix menus



commit 4aa5f9c3df6485367e0d6c2c2d6e7af41505195d
Author: Ville-Pekka Vainio <vpivaini cs helsinki fi>
Date:   Mon Aug 30 00:35:19 2010 +0300

    gpk-application: Fix menus
    
    Most menu items were unnecessary marked as stock GtkImageMenuItems, when
    the label wasn't stock. This made the translatable property disappear if
    the menus were edited in Glade. Mark most of the menu items as normal
    GtkMenuItems and mark the Contents item as a custom GtkImageMenuItem.
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 data/gpk-application.ui |   53 ++++++++++++++++++++++------------------------
 1 files changed, 25 insertions(+), 28 deletions(-)
---
diff --git a/data/gpk-application.ui b/data/gpk-application.ui
index 387b267..cc9b84c 100644
--- a/data/gpk-application.ui
+++ b/data/gpk-application.ui
@@ -31,21 +31,19 @@
                       </object>
                     </child>
                     <child>
-                      <object class="GtkImageMenuItem" id="menuitem_sources">
-                        <property name="label" translatable="yes">Software Sources</property>
+                      <object class="GtkMenuItem" id="menuitem_sources">
                         <property name="visible">True</property>
                         <property name="tooltip_text" translatable="yes">Edit list of software sources</property>
+                        <property name="label" translatable="yes">Software Sources</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkImageMenuItem" id="menuitem_refresh">
-                        <property name="label" translatable="yes">Refresh Package Lists</property>
+                      <object class="GtkMenuItem" id="menuitem_refresh">
                         <property name="visible">True</property>
                         <property name="tooltip_text" translatable="yes">Refresh the list of packages on the system</property>
+                        <property name="label" translatable="yes">Refresh Package Lists</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
                       </object>
                     </child>
                     <child>
@@ -325,61 +323,54 @@
                   <object class="GtkMenu" id="menu9">
                     <property name="visible">True</property>
                     <child>
-                      <object class="GtkImageMenuItem" id="menuitem_install">
-                        <property name="label" translatable="yes">Install</property>
+                      <object class="GtkMenuItem" id="menuitem_install">
                         <property name="visible">True</property>
+                        <property name="label" translatable="yes">Install</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkImageMenuItem" id="menuitem_remove">
-                        <property name="label" translatable="yes">Remove</property>
+                      <object class="GtkMenuItem" id="menuitem_remove">
                         <property name="visible">True</property>
+                        <property name="label" translatable="yes">Remove</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkImageMenuItem" id="menuitem_homepage">
-                        <property name="label" translatable="yes">Project homepage</property>
+                      <object class="GtkMenuItem" id="menuitem_homepage">
                         <property name="visible">True</property>
                         <property name="tooltip_text" translatable="yes">Visit the project homepage</property>
+                        <property name="label" translatable="yes">Project homepage</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkImageMenuItem" id="menuitem_run">
-                        <property name="label" translatable="yes">Run program</property>
+                      <object class="GtkMenuItem" id="menuitem_run">
                         <property name="visible">True</property>
                         <property name="tooltip_text" translatable="yes">Execute graphical applications</property>
+                        <property name="label" translatable="yes">Run program</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkImageMenuItem" id="menuitem_files">
-                        <property name="label" translatable="yes">Get file list</property>
+                      <object class="GtkMenuItem" id="menuitem_files">
                         <property name="visible">True</property>
+                        <property name="label" translatable="yes">Get file list</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkImageMenuItem" id="menuitem_depends">
-                        <property name="label" translatable="yes">Depends on</property>
+                      <object class="GtkMenuItem" id="menuitem_depends">
                         <property name="visible">True</property>
+                        <property name="label" translatable="yes">Depends on</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkImageMenuItem" id="menuitem_requires">
-                        <property name="label" translatable="yes">Required by</property>
+                      <object class="GtkMenuItem" id="menuitem_requires">
                         <property name="visible">True</property>
+                        <property name="label" translatable="yes">Required by</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
                       </object>
                     </child>
                   </object>
@@ -402,7 +393,8 @@
                         <property name="visible">True</property>
                         <property name="tooltip_text" translatable="yes">Help with this software</property>
                         <property name="use_underline">True</property>
-                        <property name="use_stock">True</property>
+                        <property name="image">image1</property>
+                        <property name="use_stock">False</property>
                       </object>
                     </child>
                     <child>
@@ -712,4 +704,9 @@
       </object>
     </child>
   </object>
+  <object class="GtkImage" id="image1">
+    <property name="visible">True</property>
+    <property name="stock">gtk-help</property>
+    <property name="icon-size">1</property>
+  </object>
 </interface>



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