[nautilus-actions] Define mnemonic and tooltip for each tab of the notebook



commit 2dce3265edb436a544b11e586e00f7f57ead8da1
Author: Pierre Wieser <pwieser trychlos org>
Date:   Thu Jul 30 18:06:17 2009 +0200

    Define mnemonic and tooltip for each tab of the notebook

 ChangeLog                                |    3 ++
 src/nact/nact-main-window.c              |   16 --------------
 src/nact/nautilus-actions-config-tool.ui |   33 +++++++++++++++++++----------
 3 files changed, 24 insertions(+), 28 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 99324c3..e93625c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@
 	* src/nact/nautilus-actions-config-tool.ui:
 	Add %p (port number) and %R (list of URIs) parameters.
 
+	* src/nact/nautilus-actions-config-tool.ui:
+	Define mnemonic and tooltip for each tab of the notebook.
+
 2009-07-29 Pierre Wieser <pwieser trychlos org>
 
 	* exports/nautilus-actions.schema.in:
diff --git a/src/nact/nact-main-window.c b/src/nact/nact-main-window.c
index 3c31f16..232dcca 100644
--- a/src/nact/nact-main-window.c
+++ b/src/nact/nact-main-window.c
@@ -97,7 +97,6 @@ static GtkWidget       *get_status_bar( NactWindow *window );
 static void             on_initial_load_toplevel( BaseWindow *window );
 static void             on_runtime_init_toplevel( BaseWindow *window );
 static void             setup_dialog_title( NactWindow *window );
-/*static void             setup_dialog_menu( NactMainWindow *window );*/
 
 static void             on_actions_list_selection_changed( GtkTreeSelection *selection, gpointer user_data );
 static gboolean         on_actions_list_double_click( GtkWidget *widget, GdkEventButton *event, gpointer data );
@@ -616,21 +615,6 @@ setup_dialog_title( NactWindow *window )
 	g_free( title );
 }
 
-/*static void
-setup_dialog_menu( NactMainWindow *window )
-{
-	GSList *ia;
-	gboolean to_save = FALSE;
-	for( ia = window->private->actions ; ia && !to_save ; ia = ia->next ){
-		gboolean elt_to_save = is_valid_action( NACT_WINDOW( window ), NA_ACTION( ia->data ));
-		to_save |= elt_to_save;
-	}
-
-	gtk_widget_set_sensitive(  window->private->new_profile_item, window->private->edited_action != NULL );
-
-	gtk_widget_set_sensitive( window->private->save_item, to_save );
-}*/
-
 /*
  * note that the IActionsList tree store may return an action or a profile
  */
diff --git a/src/nact/nautilus-actions-config-tool.ui b/src/nact/nautilus-actions-config-tool.ui
index 47a56f4..b9c29ed 100644
--- a/src/nact/nautilus-actions-config-tool.ui
+++ b/src/nact/nautilus-actions-config-tool.ui
@@ -60,7 +60,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkNotebook" id="Notebook">
+                  <object class="GtkNotebook" id="MainNotebook">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <child>
@@ -232,7 +232,9 @@
                     <child type="tab">
                       <object class="GtkLabel" id="label5">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">Action</property>
+                        <property name="tooltip_text" translatable="yes">This tab lets you enter main characteristics of the action, as it will be displayed in the Nautilus context menu : label, tooltip, icon.</property>
+                        <property name="label" translatable="yes">_Action</property>
+                        <property name="use_underline">True</property>
                       </object>
                       <packing>
                         <property name="tab_fill">False</property>
@@ -459,7 +461,10 @@
                     <child type="tab">
                       <object class="GtkLabel" id="label7">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">Command</property>
+                        <property name="tooltip_text" translatable="yes">This tab lets you choose the command to be executed, along with its parameters.
+Defining several profiles lets you have several commands, each applying with a different set of conditions.</property>
+                        <property name="label" translatable="yes">_Command</property>
+                        <property name="use_underline">True</property>
                       </object>
                       <packing>
                         <property name="position">3</property>
@@ -689,7 +694,9 @@
                     <child type="tab">
                       <object class="GtkLabel" id="label6">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">Conditions</property>
+                        <property name="tooltip_text" translatable="yes">This tab lets you determine when the action will appear in the Nautilus context menu, depending of the nature and the number of selected items.</property>
+                        <property name="label" translatable="yes">C_onditions</property>
+                        <property name="use_underline">True</property>
                       </object>
                       <packing>
                         <property name="position">2</property>
@@ -816,7 +823,9 @@
                     <child type="tab">
                       <object class="GtkLabel" id="label1">
                         <property name="visible">True</property>
-                        <property name="label" translatable="yes">Advanced conditions</property>
+                        <property name="tooltip_text" translatable="yes">This advanced tab lets you precisely choose on which schemes the selection will apply.</property>
+                        <property name="label" translatable="yes">A_dvanced conditions</property>
+                        <property name="use_underline">True</property>
                       </object>
                       <packing>
                         <property name="position">3</property>
@@ -885,8 +894,8 @@
         <property name="visible">True</property>
         <property name="orientation">vertical</property>
         <property name="select_multiple">True</property>
-        <property name="preview_widget_active">False</property>
         <property name="use_preview_label">False</property>
+        <property name="preview_widget_active">False</property>
         <property name="local_only">False</property>
       </object>
     </child>
@@ -970,9 +979,9 @@ to extend a selection.</property>
           <object class="GtkFileChooserWidget" id="ExportFolderChooser">
             <property name="visible">True</property>
             <property name="orientation">vertical</property>
-            <property name="preview_widget_active">False</property>
-            <property name="action">select-folder</property>
             <property name="use_preview_label">False</property>
+            <property name="action">select-folder</property>
+            <property name="preview_widget_active">False</property>
             <property name="local_only">False</property>
           </object>
           <packing>
@@ -1422,16 +1431,16 @@ file(s)/folder(s)</property>
   </object>
   <object class="GtkSizeGroup" id="CommandLabelSizeGroup">
     <widgets>
-      <widget name="CommandExamplePreLabel"/>
-      <widget name="CommandParametersLabel"/>
-      <widget name="CommandPathLabel"/>
       <widget name="ProfileLabelLabel"/>
+      <widget name="CommandPathLabel"/>
+      <widget name="CommandParametersLabel"/>
+      <widget name="CommandExamplePreLabel"/>
     </widgets>
   </object>
   <object class="GtkSizeGroup" id="CommandButtonSizeGroup">
     <widgets>
-      <widget name="CommandLegendButton"/>
       <widget name="CommandPathButton"/>
+      <widget name="CommandLegendButton"/>
     </widgets>
   </object>
 </interface>



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