[gedit] Respect button-image setting for add scheme button



commit 8746edf887e9a10d40768ef6b045df08dde029cc
Author: Paolo Borelli <porelli gnome org>
Date:   Sun Aug 2 12:49:54 2009 +0200

    Respect button-image setting for add scheme button

 gedit/dialogs/gedit-preferences-dialog.c  |    3 +-
 gedit/dialogs/gedit-preferences-dialog.ui |   67 +++--------------------------
 2 files changed, 9 insertions(+), 61 deletions(-)
---
diff --git a/gedit/dialogs/gedit-preferences-dialog.c b/gedit/dialogs/gedit-preferences-dialog.c
index 6afead0..9f52ac1 100644
--- a/gedit/dialogs/gedit-preferences-dialog.c
+++ b/gedit/dialogs/gedit-preferences-dialog.c
@@ -1069,9 +1069,10 @@ gedit_preferences_dialog_init (GeditPreferencesDialog *dlg)
 		"adjustment1",
 		"adjustment2",
 		"adjustment3",
+		"install_scheme_image",
 		NULL
 	};
-	
+
 	gedit_debug (DEBUG_PREFS);
 
 	dlg->priv = GEDIT_PREFERENCES_DIALOG_GET_PRIVATE (dlg);
diff --git a/gedit/dialogs/gedit-preferences-dialog.ui b/gedit/dialogs/gedit-preferences-dialog.ui
index f1a0a7d..4253b87 100644
--- a/gedit/dialogs/gedit-preferences-dialog.ui
+++ b/gedit/dialogs/gedit-preferences-dialog.ui
@@ -25,6 +25,10 @@
     <property name="page_size">0</property>
     <property name="value">8</property>
   </object>
+  <object class="GtkImage" id="install_scheme_image">
+     <property name="stock">gtk-add</property>
+     <property name="icon_size">4</property>
+  </object>
   <object class="GtkDialog" id="preferences_dialog">
     <property name="title" translatable="yes">Preferences</property>
     <property name="type">GTK_WINDOW_TOPLEVEL</property>
@@ -1421,66 +1425,9 @@
                                     <property name="can_focus">True</property>
                                     <property name="relief">GTK_RELIEF_NORMAL</property>
                                     <property name="focus_on_click">True</property>
-                                    <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="hbox164">
-                                            <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-add</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="label883">
-                                                <property name="visible">True</property>
-                                                <property name="label" translatable="yes">_Add...</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>
+                                    <property name="image">install_scheme_image</property>
+                                    <property name="label" translatable="yes">_Add...</property>
+                                    <property name="use_underline">True</property>
                                   </object>
                                 </child>
                                 <child>



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