[nautilus-actions] NACT: disable not yet implemented fields



commit b6b1ee39ed1102c60fb3ebbf9cb4f1527a2a947e
Author: Pierre Wieser <pwieser trychlos org>
Date:   Fri Feb 25 13:35:30 2011 +0100

    NACT: disable not yet implemented fields

 ChangeLog                                |    6 +++++
 src/nact/nact-iexecution-tab.c           |    8 +++++-
 src/nact/nautilus-actions-config-tool.ui |   37 +++++++++++++++++------------
 3 files changed, 35 insertions(+), 16 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 18ddd9a..f09ec81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-02-25 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-iexecution-tab.c (on_main_selection_changed):
+	Disable not implemented frames.
+
+	* src/nact/nautilus-actions-config-tool.ui:
+	Add a tooltip comment on not yet implemented fields.
+
 	* src/core/na-icontext.c (is_candidate_for_show_in):
 	First try desktop from user preferences.
 
diff --git a/src/nact/nact-iexecution-tab.c b/src/nact/nact-iexecution-tab.c
index 7f6a7f0..1edcd0f 100644
--- a/src/nact/nact-iexecution-tab.c
+++ b/src/nact/nact-iexecution-tab.c
@@ -233,7 +233,7 @@ on_main_selection_changed( NactIExecutionTab *instance, GList *selected_items, g
 	gchar *mode;
 	GtkWidget *normal_toggle, *terminal_toggle, *embedded_toggle, *display_toggle;
 	gboolean notify;
-	GtkWidget *notify_check;
+	GtkWidget *notify_check, *frame;
 	gchar *class, *user;
 	GtkWidget *entry;
 
@@ -288,6 +288,9 @@ on_main_selection_changed( NactIExecutionTab *instance, GList *selected_items, g
 
 		g_free( mode );
 
+		frame = base_window_get_widget( BASE_WINDOW( instance ), "StartupModeFrame" );
+		gtk_widget_set_sensitive( frame, FALSE );
+
 		notify = profile ? na_object_get_startup_notify( profile ) : FALSE;
 		notify_check = base_window_get_widget( BASE_WINDOW( instance ), "StartupNotifyButton" );
 		base_gtk_utils_set_editable( G_OBJECT( notify_check ), editable );
@@ -299,6 +302,9 @@ on_main_selection_changed( NactIExecutionTab *instance, GList *selected_items, g
 		base_gtk_utils_set_editable( G_OBJECT( entry ), editable );
 		g_free( class );
 
+		frame = base_window_get_widget( BASE_WINDOW( instance ), "UserFrame" );
+		gtk_widget_set_sensitive( frame, FALSE );
+
 		user = profile ? na_object_get_execute_as( profile ) : g_strdup( "" );
 		entry = base_window_get_widget( BASE_WINDOW( instance ), "ExecuteAsEntry" );
 		gtk_entry_set_text( GTK_ENTRY( entry ), user );
diff --git a/src/nact/nautilus-actions-config-tool.ui b/src/nact/nautilus-actions-config-tool.ui
index eeb7095..3b30985 100644
--- a/src/nact/nautilus-actions-config-tool.ui
+++ b/src/nact/nautilus-actions-config-tool.ui
@@ -941,8 +941,10 @@ An acceptable fallback is running in the standard terminal.</property>
                               </packing>
                             </child>
                             <child>
-                              <object class="GtkFrame" id="frame320">
+                              <object class="GtkFrame" id="StartupModeFrame">
                                 <property name="visible">True</property>
+                                <property name="tooltip_text" translatable="yes">Note: this is not yet implemented in Nautilus-Actions.
+</property>
                                 <property name="label_xalign">0</property>
                                 <property name="shadow_type">in</property>
                                 <child>
@@ -1030,8 +1032,9 @@ Only relevant when chosen execution mode is Normal.</property>
                               </packing>
                             </child>
                             <child>
-                              <object class="GtkFrame" id="frame330">
+                              <object class="GtkFrame" id="UserFrame">
                                 <property name="visible">True</property>
+                                <property name="tooltip_text" translatable="yes">Note: this is not yet implemented in Nautilus-Actions.</property>
                                 <property name="label_xalign">0</property>
                                 <property name="shadow_type">in</property>
                                 <child>
@@ -2459,7 +2462,8 @@ If unchecked, then the item will never appear in the file manager context menus
                                                 <property name="visible">True</property>
                                                 <property name="can_focus">True</property>
                                                 <property name="receives_default">True</property>
-                                                <property name="tooltip_text" translatable="yes">Enter here the keyboard touch combination you suggest as a shortcut to your action.</property>
+                                                <property name="tooltip_text" translatable="yes">Enter here the keyboard touch combination you suggest as a shortcut to your action.
+Note: this is not yet implemented in Nautilus-Actions.</property>
                                               </object>
                                               <packing>
                                                 <property name="expand">False</property>
@@ -2876,6 +2880,9 @@ There may be multiple reasons for why an item cannot be edited. See your User's
       <placeholder/>
     </child>
     <child>
+      <placeholder/>
+    </child>
+    <child>
       <object class="GtkLabel" id="label3">
         <property name="visible">True</property>
         <property name="label" translatable="yes">This assistant will guide you through the process of importing items, actions or menus.</property>
@@ -3968,39 +3975,39 @@ Be warned: this mode may be dangerous. You will not be prompted another time.</p
   </object>
   <object class="GtkSizeGroup" id="CommandLabelSizeGroup">
     <widgets>
-      <widget name="ProfileLabelLabel"/>
-      <widget name="CommandPathLabel"/>
-      <widget name="CommandParametersLabel"/>
       <widget name="label4"/>
+      <widget name="CommandParametersLabel"/>
+      <widget name="CommandPathLabel"/>
+      <widget name="ProfileLabelLabel"/>
     </widgets>
   </object>
   <object class="GtkSizeGroup" id="CommandButtonSizeGroup">
     <widgets>
-      <widget name="CommandPathButton"/>
       <widget name="CommandLegendButton"/>
+      <widget name="CommandPathButton"/>
     </widgets>
   </object>
   <object class="GtkSizeGroup" id="ActionLabelSizeGroup">
     <widgets>
-      <widget name="ActionIconLabel"/>
-      <widget name="ActionTooltipLabel"/>
-      <widget name="ActionToolbarLabelLabel"/>
       <widget name="ActionMenuLabelLabel"/>
+      <widget name="ActionToolbarLabelLabel"/>
+      <widget name="ActionTooltipLabel"/>
+      <widget name="ActionIconLabel"/>
     </widgets>
   </object>
   <object class="GtkSizeGroup" id="ExecutionModeSizeGroup">
     <widgets>
-      <widget name="label45"/>
-      <widget name="label44"/>
       <widget name="label43"/>
+      <widget name="label44"/>
+      <widget name="label45"/>
     </widgets>
   </object>
   <object class="GtkSizeGroup" id="PropertiesLabelSizeGroup">
     <widgets>
-      <widget name="label19"/>
-      <widget name="label49"/>
-      <widget name="label39"/>
       <widget name="label18"/>
+      <widget name="label39"/>
+      <widget name="label49"/>
+      <widget name="label19"/>
     </widgets>
   </object>
 </interface>



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