[gnome-panel] [panel] Make the run button icon respect the desktop-wide setting



commit 8dce65e1cbbd20a37834eef022f43d2cec5d730d
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Aug 11 16:49:02 2009 +0200

    [panel] Make the run button icon respect the desktop-wide setting
    
    It was always displayed before; now it will only be displayed when
    the desktop is configured to display icons in buttons.

 gnome-panel/panel-run-dialog.ui |   46 ++++++---------------------------------
 1 files changed, 7 insertions(+), 39 deletions(-)
---
diff --git a/gnome-panel/panel-run-dialog.ui b/gnome-panel/panel-run-dialog.ui
index 7ee0ab8..d2bb2a8 100644
--- a/gnome-panel/panel-run-dialog.ui
+++ b/gnome-panel/panel-run-dialog.ui
@@ -228,55 +228,19 @@
             </child>
             <child>
               <object class="GtkButton" id="run_button">
+                <property name="label" translatable="yes">_Run</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="can_default">True</property>
                 <property name="has_default">True</property>
                 <property name="receives_default">False</property>
+                <property name="image">run_button_image</property>
+                <property name="use_underline">True</property>
                 <child internal-child="accessible">
                   <object class="AtkObject" id="run_button-atkobject">
                     <property name="AtkObject::accessible-description" translatable="yes">Click this button to run the selected application or the command in the command entry field.</property>
                   </object>
                 </child>
-                <child>
-                  <object class="GtkAlignment" id="alignment2">
-                    <property name="visible">True</property>
-                    <property name="xscale">0</property>
-                    <property name="yscale">0</property>
-                    <child>
-                      <object class="GtkHBox" id="hbox1">
-                        <property name="visible">True</property>
-                        <property name="spacing">2</property>
-                        <child>
-                          <object class="GtkImage" id="image1">
-                            <property name="visible">True</property>
-                            <property name="xalign">0</property>
-                            <property name="stock">gtk-execute</property>
-                          </object>
-                          <packing>
-                            <property name="expand">False</property>
-                            <property name="fill">False</property>
-                            <property name="position">0</property>
-                          </packing>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="label1">
-                            <property name="visible">True</property>
-                            <property name="xalign">0</property>
-                            <property name="label" translatable="yes">_Run</property>
-                            <property name="use_markup">True</property>
-                            <property name="use_underline">True</property>
-                          </object>
-                          <packing>
-                            <property name="expand">False</property>
-                            <property name="fill">False</property>
-                            <property name="position">1</property>
-                          </packing>
-                        </child>
-                      </object>
-                    </child>
-                  </object>
-                </child>
               </object>
               <packing>
                 <property name="expand">False</property>
@@ -299,4 +263,8 @@
       <action-widget response="-5">run_button</action-widget>
     </action-widgets>
   </object>
+  <object class="GtkImage" id="run_button_image">
+    <property name="visible">True</property>
+    <property name="stock">gtk-execute</property>
+  </object>
 </interface>



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