[nautilus-actions] NactICommandTab: let the example label be expandable



commit 7c198bced0b903eda14ffb5e01cbf77916bf0a9c
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Feb 27 06:55:28 2012 +0100

    NactICommandTab: let the example label be expandable

 ChangeLog                                |   10 ++++++++
 src/nact/nact-icommand-tab.c             |    2 +-
 src/nact/nautilus-actions-config-tool.ui |   35 +++++++++++++++++++++++------
 3 files changed, 38 insertions(+), 9 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ed1b0b0..e3e0a21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-02-27 Pierre Wieser <pwieser trychlos org>
+
+	Let the example label be expandable.
+
+	* src/nact/nact-icommand-tab.c: No more insert the 'Ex:' prefix.
+
+	* src/nact/nautilus-actions-config-tool.ui: Insert a GtkExpander parent.
+
+	* configure.ac: Post release version bump.
+
 2012-02-24 Pierre Wieser <pwieser trychlos org>
 
 	* NEWS: Update before releasing.
diff --git a/src/nact/nact-icommand-tab.c b/src/nact/nact-icommand-tab.c
index 7cbc5ad..9a4b8f5 100644
--- a/src/nact/nact-icommand-tab.c
+++ b/src/nact/nact-icommand-tab.c
@@ -672,7 +672,7 @@ update_example_label( NactICommandTab *instance, NAObjectProfile *profile )
 		 */
 		/* i18n: command-line example: Ex.: /bin/ls file1.txt file2.txt */
 		newlabel = g_markup_printf_escaped(
-				"<i><b><span size=\"small\">%s %s</span></b></i>", _( "Ex.:" ), parameters );
+				"<i><b><span size=\"small\">%s</span></b></i>", parameters );
 
 		g_free( parameters );
 
diff --git a/src/nact/nautilus-actions-config-tool.ui b/src/nact/nautilus-actions-config-tool.ui
index 8fcca13..b0270ab 100644
--- a/src/nact/nautilus-actions-config-tool.ui
+++ b/src/nact/nautilus-actions-config-tool.ui
@@ -1638,18 +1638,37 @@ If this is not an absolute path, then the PATH environment variable at execution
                                           </packing>
                                         </child>
                                         <child>
-                                          <object class="GtkAlignment" id="alignment22">
+                                          <object class="GtkExpander" id="expander22">
                                             <property name="visible">True</property>
-                                            <property name="can_focus">False</property>
-                                            <property name="yalign">0</property>
-                                            <property name="yscale">0</property>
+                                            <property name="can_focus">True</property>
+                                            <property name="expanded">True</property>
+                                            <property name="use_underline">True</property>
                                             <child>
-                                              <object class="GtkLabel" id="CommandExampleLabel">
+                                              <object class="GtkAlignment" id="alignment22">
+                                                <property name="visible">True</property>
+                                                <property name="can_focus">False</property>
+                                                <property name="yalign">0</property>
+                                                <property name="yscale">0</property>
+                                                <child>
+                                                  <object class="GtkLabel" id="CommandExampleLabel">
+                                                    <property name="visible">True</property>
+                                                    <property name="can_focus">False</property>
+                                                    <property name="xalign">0</property>
+                                                    <property name="use_markup">True</property>
+                                                    <property name="wrap">True</property>
+                                                  </object>
+                                                </child>
+                                              </object>
+                                            </child>
+                                            <child type="label">
+                                              <object class="GtkLabel" id="label1">
                                                 <property name="visible">True</property>
                                                 <property name="can_focus">False</property>
-                                                <property name="xalign">0</property>
-                                                <property name="use_markup">True</property>
-                                                <property name="wrap">True</property>
+                                                <property name="label" translatable="yes">Example</property>
+                                                <attributes>
+                                                  <attribute name="style" value="PANGO_STYLE_ITALIC"/>
+                                                  <attribute name="scale" value="0.8"/>
+                                                </attributes>
                                               </object>
                                             </child>
                                           </object>



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