[totem] Bug 592760 — respect the button-images setting



commit a10688bdc49ff417a9bc32876e77c6c983bf34c2
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Aug 28 14:47:46 2009 +0100

    Bug 592760 â?? respect the button-images setting
    
    Fix the plugin manager's UI file so that the "Configure" button uses images
    properly, instead of embedding them as child widgets. Closes: bgo#592760

 data/plugins.ui |   74 ++++++-------------------------------------------------
 1 files changed, 8 insertions(+), 66 deletions(-)
---
diff --git a/data/plugins.ui b/data/plugins.ui
index 01a7a1c..5724ad0 100644
--- a/data/plugins.ui
+++ b/data/plugins.ui
@@ -388,73 +388,10 @@
     	    <object class="GtkButton" id="configure_button">
     	      <property name="visible">True</property>
     	      <property name="can_focus">True</property>
-    	      <property name="relief">GTK_RELIEF_NORMAL</property>
-    	      <property name="focus_on_click">True</property>
+              <property name="image">configure_button_image</property>
+              <property name="label" translatable="yes">C_onfigure...</property>
+              <property name="use_underline">True</property>
     	      <signal name="clicked" handler="configure_button_cb"/>
-
-    	      <child>
-    		<object class="GtkAlignment" id="alignment1">
-    		  <property name="visible">True</property>
-    		  <property name="xalign">0.5</property>
-    		  <property name="yalign">0.5</property>
-    		  <property name="xscale">0</property>
-    		  <property name="yscale">0</property>
-    		  <property name="top_padding">0</property>
-    		  <property name="bottom_padding">0</property>
-    		  <property name="left_padding">0</property>
-    		  <property name="right_padding">0</property>
-
-    		  <child>
-    		    <object class="GtkHBox" id="hbox2">
-    		      <property name="visible">True</property>
-    		      <property name="homogeneous">False</property>
-    		      <property name="spacing">2</property>
-
-    		      <child>
-    			<object class="GtkImage" id="image1">
-    			  <property name="visible">True</property>
-    			  <property name="stock">gtk-preferences</property>
-    			  <property name="icon_size">4</property>
-    			  <property name="xalign">0.5</property>
-    			  <property name="yalign">0.5</property>
-    			  <property name="xpad">0</property>
-    			  <property name="ypad">0</property>
-    			</object>
-    			<packing>
-    			  <property name="padding">0</property>
-    			  <property name="expand">False</property>
-    			  <property name="fill">False</property>
-    			</packing>
-    		      </child>
-
-    		      <child>
-    			<object class="GtkLabel" id="label2">
-    			  <property name="visible">True</property>
-    			  <property name="label" translatable="yes">C_onfigure...</property>
-    			  <property name="use_underline">True</property>
-    			  <property name="use_markup">False</property>
-    			  <property name="justify">GTK_JUSTIFY_LEFT</property>
-    			  <property name="wrap">False</property>
-    			  <property name="selectable">False</property>
-    			  <property name="xalign">0.5</property>
-    			  <property name="yalign">0.5</property>
-    			  <property name="xpad">0</property>
-    			  <property name="ypad">0</property>
-    			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
-    			  <property name="width_chars">-1</property>
-    			  <property name="single_line_mode">False</property>
-    			  <property name="angle">0</property>
-    			</object>
-    			<packing>
-    			  <property name="padding">0</property>
-    			  <property name="expand">False</property>
-    			  <property name="fill">False</property>
-    			</packing>
-    		      </child>
-    		    </object>
-    		  </child>
-    		</object>
-    	      </child>
     	    </object>
     	    <packing>
     	      <property name="padding">0</property>
@@ -485,4 +422,9 @@
   </child>
 </object>
 
+<object class="GtkImage" id="configure_button_image">
+  <property name="visible">True</property>
+  <property name="stock">gtk-preferences</property>
+</object>
+
 </interface>



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