[nautilus-actions] Connect signals to NactIEnvironmentTab



commit a0f0235fcbd2483769d6549d35084fbaf2649815
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Jun 15 21:55:41 2010 +0200

    Connect signals to NactIEnvironmentTab

 ChangeLog                                |    6 +
 po/POTFILES.in                           |    1 +
 src/nact/nact-ienvironment-tab.c         |  445 +++++++++++++++++++++++++++++-
 src/nact/nact-ienvironment-tab.h         |    4 +
 src/nact/nautilus-actions-config-tool.ui |   32 ++-
 5 files changed, 459 insertions(+), 29 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 935b07d..d58f181 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-15 Pierre Wieser <pwieser trychlos org>
+
+	* po/POTFILES.in: Add src/nact/nact-ienvironment-tab.c file.
+
+	* src/nact/nact-ienvironment-tab.c: Connect signals.
+
 2010-06-14 Pierre Wieser <pwieser trychlos org>
 
 	* src/core/na-icontext-factory.c:
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 8e053d0..9ce916c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -35,6 +35,7 @@ src/nact/nact-iaction-tab.c
 src/nact/nact-ibasenames-tab.c
 src/nact/nact-icapabilities-tab.c
 src/nact/nact-icommand-tab.c
+src/nact/nact-ienvironment-tab.c
 src/nact/nact-ifolders-tab.c
 src/nact/nact-imimetypes-tab.c
 src/nact/nact-iproperties-tab.c
diff --git a/src/nact/nact-ienvironment-tab.c b/src/nact/nact-ienvironment-tab.c
index 8951eef..c203086 100644
--- a/src/nact/nact-ienvironment-tab.c
+++ b/src/nact/nact-ienvironment-tab.c
@@ -32,6 +32,9 @@
 #include <config.h>
 #endif
 
+#include <glib/gi18n.h>
+#include <string.h>
+
 #include <api/na-object-api.h>
 
 #include "nact-main-tab.h"
@@ -43,6 +46,30 @@ struct NactIEnvironmentTabInterfacePrivate {
 	void *empty;						/* so that gcc -pedantic is happy */
 };
 
+/* column ordering
+ */
+enum {
+	ENV_BOOL_COLUMN = 0,
+	ENV_LABEL_COLUMN,
+	ENV_KEYWORD_COLUMN,
+	N_COLUMN
+};
+
+typedef struct {
+	gchar *keyword;
+	gchar *label;
+}
+	EnvStruct;
+
+static EnvStruct st_envs[] = {
+	{ "GNOME", N_( "GNOME desktop" ) },
+	{ "KDE",   N_( "KDE desktop" ) },
+	{ "ROX",   N_( "ROX desktop" ) },
+	{ "XFCE",  N_( "XFCE desktop" ) },
+	{ "Old",   N_( "Legacy systems" ) },
+	{ NULL }
+};
+
 static gboolean st_initialized = FALSE;
 static gboolean st_finalized = FALSE;
 static gboolean st_on_selection_change = FALSE;
@@ -52,7 +79,20 @@ static void     interface_base_init( NactIEnvironmentTabInterface *klass );
 static void     interface_base_finalize( NactIEnvironmentTabInterface *klass );
 
 static void     on_tab_updatable_selection_changed( NactIEnvironmentTab *instance, gint count_selected );
-static gboolean tab_set_sensitive( NactIEnvironmentTab *instance );
+static void     on_tab_updatable_enable_tab( NactIEnvironmentTab *instance, NAObjectItem *item );
+
+static void     on_show_always_toggled( GtkToggleButton *togglebutton, NactIEnvironmentTab *instance );
+static void     on_only_show_toggled( GtkToggleButton *togglebutton, NactIEnvironmentTab *instance );
+static void     on_do_not_show_toggled( GtkToggleButton *togglebutton, NactIEnvironmentTab *instance );
+static void     on_desktop_toggled( GtkCellRendererToggle *renderer, gchar *path, BaseWindow *window );
+static void     on_try_exec_changed( GtkEntry *entry, NactIEnvironmentTab *instance );
+static void     on_try_exec_browse( GtkButton *button, NactIEnvironmentTab *instance );
+static void     on_show_if_registered_changed( GtkEntry *entry, NactIEnvironmentTab *instance );
+static void     on_show_if_true_changed( GtkEntry *entry, NactIEnvironmentTab *instance );
+static void     on_show_if_running_changed( GtkEntry *entry, NactIEnvironmentTab *instance );
+static void     on_show_if_running_browse( GtkButton *button, NactIEnvironmentTab *instance );
+
+static gboolean tab_set_sensitive( NactIEnvironmentTab *instance, NAIContext *context );
 
 GType
 nact_ienvironment_tab_get_type( void )
@@ -133,11 +173,43 @@ void
 nact_ienvironment_tab_initial_load_toplevel( NactIEnvironmentTab *instance )
 {
 	static const gchar *thisfn = "nact_ienvironment_tab_initial_load_toplevel";
+	GtkTreeView *listview;
+	GtkListStore *model;
+	GtkCellRenderer *check_cell, *text_cell;
+	GtkTreeViewColumn *column;
+	GtkTreeSelection *selection;
 
-	g_debug( "%s: instance=%p", thisfn, ( void * ) instance );
 	g_return_if_fail( NACT_IS_IENVIRONMENT_TAB( instance ));
 
 	if( st_initialized && !st_finalized ){
+
+		g_debug( "%s: instance=%p", thisfn, ( void * ) instance );
+
+		listview = GTK_TREE_VIEW( base_window_get_widget( BASE_WINDOW( instance ), "EnvironmentsTreeView" ));
+		model = gtk_list_store_new( N_COLUMN, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_STRING );
+		gtk_tree_view_set_model( listview, GTK_TREE_MODEL( model ));
+		g_object_unref( model );
+
+		check_cell = gtk_cell_renderer_toggle_new();
+		column = gtk_tree_view_column_new_with_attributes(
+				"boolean",
+				check_cell,
+				"active", ENV_BOOL_COLUMN,
+				NULL );
+		gtk_tree_view_append_column( listview, column );
+
+		text_cell = gtk_cell_renderer_text_new();
+		column = gtk_tree_view_column_new_with_attributes(
+				"label",
+				text_cell,
+				"text", ENV_LABEL_COLUMN,
+				NULL );
+		gtk_tree_view_append_column( listview, column );
+
+		gtk_tree_view_set_headers_visible( listview, FALSE );
+
+		selection = gtk_tree_view_get_selection( listview );
+		gtk_tree_selection_set_mode( selection, GTK_SELECTION_BROWSE );
 	}
 }
 
@@ -152,17 +224,117 @@ void
 nact_ienvironment_tab_runtime_init_toplevel( NactIEnvironmentTab *instance )
 {
 	static const gchar *thisfn = "nact_ienvironment_tab_runtime_init_toplevel";
+	GtkWidget *button, *entry;
+	GtkTreeView *listview;
+	GtkTreeModel *model;
+	GtkTreeIter iter;
+	GtkTreeViewColumn *column;
+	GList *renderers;
+	guint i;
 
-	g_debug( "%s: instance=%p", thisfn, ( void * ) instance );
 	g_return_if_fail( NACT_IS_IENVIRONMENT_TAB( instance ));
 
 	if( st_initialized && !st_finalized ){
 
+		g_debug( "%s: instance=%p", thisfn, ( void * ) instance );
+
 		base_window_signal_connect(
 				BASE_WINDOW( instance ),
 				G_OBJECT( instance ),
 				MAIN_WINDOW_SIGNAL_SELECTION_CHANGED,
 				G_CALLBACK( on_tab_updatable_selection_changed ));
+
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( instance ),
+				TAB_UPDATABLE_SIGNAL_ENABLE_TAB,
+				G_CALLBACK( on_tab_updatable_enable_tab ));
+
+		button = base_window_get_widget( BASE_WINDOW( instance ), "ShowAlwaysButton" );
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( button ),
+				"toggled",
+				G_CALLBACK( on_show_always_toggled ));
+
+		button = base_window_get_widget( BASE_WINDOW( instance ), "OnlyShowButton" );
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( button ),
+				"toggled",
+				G_CALLBACK( on_only_show_toggled ));
+
+		button = base_window_get_widget( BASE_WINDOW( instance ), "DoNotShowButton" );
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( button ),
+				"toggled",
+				G_CALLBACK( on_do_not_show_toggled ));
+
+		listview = GTK_TREE_VIEW( base_window_get_widget( BASE_WINDOW( instance ), "EnvironmentsTreeView" ));
+		model = gtk_tree_view_get_model( listview );
+
+		for( i = 0 ; st_envs[i].keyword ; ++i ){
+			gtk_list_store_append( GTK_LIST_STORE( model ), &iter );
+			gtk_list_store_set(
+					GTK_LIST_STORE( model ),
+					&iter,
+					ENV_BOOL_COLUMN, FALSE,
+					ENV_LABEL_COLUMN, st_envs[i].label,
+					ENV_KEYWORD_COLUMN, st_envs[i].keyword,
+					-1 );
+		}
+
+		column = gtk_tree_view_get_column( listview, ENV_BOOL_COLUMN );
+		renderers = gtk_cell_layout_get_cells( GTK_CELL_LAYOUT( column ));
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( renderers->data ),
+				"toggled",
+				G_CALLBACK( on_desktop_toggled ));
+
+
+		entry = base_window_get_widget( BASE_WINDOW( instance ), "TryExecEntry" );
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( entry ),
+				"changed",
+				G_CALLBACK( on_try_exec_changed ));
+
+		button = base_window_get_widget( BASE_WINDOW( instance ), "TryExecButton" );
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( button ),
+				"clicked",
+				G_CALLBACK( on_try_exec_browse ));
+
+		entry = base_window_get_widget( BASE_WINDOW( instance ), "ShowIfRegisteredEntry" );
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( entry ),
+				"changed",
+				G_CALLBACK( on_show_if_registered_changed ));
+
+		entry = base_window_get_widget( BASE_WINDOW( instance ), "ShowIfTrueEntry" );
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( entry ),
+				"changed",
+				G_CALLBACK( on_show_if_true_changed ));
+
+		entry = base_window_get_widget( BASE_WINDOW( instance ), "ShowIfRunningEntry" );
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( entry ),
+				"changed",
+				G_CALLBACK( on_show_if_running_changed ));
+
+		button = base_window_get_widget( BASE_WINDOW( instance ), "ShowIfRunningButton" );
+		base_window_signal_connect(
+				BASE_WINDOW( instance ),
+				G_OBJECT( button ),
+				"clicked",
+				G_CALLBACK( on_show_if_running_browse ));
 	}
 }
 
@@ -171,10 +343,11 @@ nact_ienvironment_tab_all_widgets_showed( NactIEnvironmentTab *instance )
 {
 	static const gchar *thisfn = "nact_ienvironment_tab_all_widgets_showed";
 
-	g_debug( "%s: instance=%p", thisfn, ( void * ) instance );
 	g_return_if_fail( NACT_IS_IENVIRONMENT_TAB( instance ));
 
 	if( st_initialized && !st_finalized ){
+
+		g_debug( "%s: instance=%p", thisfn, ( void * ) instance );
 	}
 }
 
@@ -188,11 +361,21 @@ void
 nact_ienvironment_tab_dispose( NactIEnvironmentTab *instance )
 {
 	static const gchar *thisfn = "nact_ienvironment_tab_dispose";
+	GtkTreeView *listview;
+	GtkTreeModel *model;
+	GtkTreeSelection *selection;
 
-	g_debug( "%s: instance=%p", thisfn, ( void * ) instance );
 	g_return_if_fail( NACT_IS_IENVIRONMENT_TAB( instance ));
 
 	if( st_initialized && !st_finalized ){
+
+		g_debug( "%s: instance=%p", thisfn, ( void * ) instance );
+
+		listview = GTK_TREE_VIEW( base_window_get_widget( BASE_WINDOW( instance ), "EnvironmentsTreeView" ));
+		model = gtk_tree_view_get_model( listview );
+		selection = gtk_tree_view_get_selection( listview );
+		gtk_tree_selection_unselect_all( selection );
+		gtk_list_store_clear( GTK_LIST_STORE( model ));
 	}
 }
 
@@ -200,32 +383,264 @@ static void
 on_tab_updatable_selection_changed( NactIEnvironmentTab *instance, gint count_selected )
 {
 	static const gchar *thisfn = "nact_ienvironment_tab_on_tab_updatable_selection_changed";
+	GtkTreeView *listview;
+	GtkTreeModel *model;
+	GtkTreeIter iter;
+	GtkTreePath *path;
+	GtkTreeSelection *selection;
+	gboolean next_ok, found;
+	GtkWidget *appear_button;
+	NAObjectItem *item;
+	NAObjectProfile *profile;
+	NAIContext *context;
+	gboolean editable;
+	GSList *show, *notshow, *checked, *ic;
+	gchar *keyword;
 
-	g_debug( "%s: instance=%p, count_selected=%d", thisfn, ( void * ) instance, count_selected );
 	g_return_if_fail( NACT_IS_IENVIRONMENT_TAB( instance ));
 
 	if( st_initialized && !st_finalized ){
 
+		g_debug( "%s: instance=%p, count_selected=%d", thisfn, ( void * ) instance, count_selected );
+
 		st_on_selection_change = TRUE;
 
-		tab_set_sensitive( instance );
+		/* reinitialize the list OnlyShowIn/NotShowIn
+		 */
+		listview = GTK_TREE_VIEW( base_window_get_widget( BASE_WINDOW( instance ), "EnvironmentsTreeView" ));
+		model = gtk_tree_view_get_model( listview );
+
+		if( gtk_tree_model_get_iter_first( model, &iter )){
+			next_ok = TRUE;
+			while( next_ok ){
+				gtk_list_store_set( GTK_LIST_STORE( model ), &iter, ENV_BOOL_COLUMN, FALSE, -1 );
+				next_ok = gtk_tree_model_iter_next( model, &iter );
+			}
+		}
+
+		/* setup the tab for current context
+		 */
+		g_object_get(
+				G_OBJECT( instance ),
+				TAB_UPDATABLE_PROP_EDITED_ACTION, &item,
+				TAB_UPDATABLE_PROP_EDITED_PROFILE, &profile,
+				TAB_UPDATABLE_PROP_EDITABLE, &editable,
+				NULL );
+
+		context = ( profile ? NA_ICONTEXT( profile ) : ( NAIContext * ) item );
+
+		tab_set_sensitive( instance, context );
+
+		show = NULL;
+		notshow = NULL;
+		checked = NULL;
+		found = FALSE;
+		appear_button = base_window_get_widget( BASE_WINDOW( instance ), "ShowAlwaysButton" );
+
+		if( context ){
+			show = na_object_get_only_show_in( context );
+			if( show && g_slist_length( show )){
+				appear_button = base_window_get_widget( BASE_WINDOW( instance ), "OnlyShowButton" );
+				checked = show;
+			} else {
+				notshow = na_object_get_not_show_in( context );
+				if( notshow && g_slist_length( notshow )){
+					appear_button = base_window_get_widget( BASE_WINDOW( instance ), "DoNotShowButton" );
+					checked = notshow;
+				}
+			}
+		}
+
+		gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( appear_button ), TRUE );
+
+		for( ic = checked ; ic ; ic = ic->next ){
+			if( strlen( ic->data )){
+				if( gtk_tree_model_get_iter_first( model, &iter )){
+					next_ok = TRUE;
+					found = FALSE;
+					while( next_ok && !found ){
+						gtk_tree_model_get( model, &iter, ENV_KEYWORD_COLUMN, &keyword, -1 );
+						if( !strcmp( keyword, ic->data )){
+							gtk_list_store_set( GTK_LIST_STORE( model ), &iter, ENV_BOOL_COLUMN, TRUE, -1 );
+							found = TRUE;
+						}
+						g_free( keyword );
+						if( !found ){
+							next_ok = gtk_tree_model_iter_next( model, &iter );
+						}
+					}
+				}
+				if( !found ){
+					g_warning( "%s: unable to set %s environment", thisfn, ( const gchar * ) ic->data );
+				}
+			}
+		}
 
 		st_on_selection_change = FALSE;
+
+		if( context ){
+			path = gtk_tree_path_new_first();
+			if( path ){
+				selection = gtk_tree_view_get_selection( listview );
+				gtk_tree_selection_select_path( selection, path );
+				gtk_tree_path_free( path );
+			}
+		}
 	}
 }
 
-static gboolean
-tab_set_sensitive( NactIEnvironmentTab *instance )
+static void
+on_tab_updatable_enable_tab( NactIEnvironmentTab *instance, NAObjectItem *item )
 {
+	static const gchar *thisfn = "nact_ienvironment_tab_on_tab_updatable_enable_tab";
 	NAObjectProfile *profile;
-	gboolean enable_tab;
+	NAIContext *context;
+
+	g_return_if_fail( NACT_IS_IENVIRONMENT_TAB( instance ));
 
-	g_object_get(
-			G_OBJECT( instance ),
-			TAB_UPDATABLE_PROP_EDITED_PROFILE, &profile,
-			NULL );
+	if( st_initialized && !st_finalized ){
+
+		g_debug( "%s: instance=%p, item=%p", thisfn, ( void * ) instance, ( void * ) item );
+
+		g_object_get(
+				G_OBJECT( instance ),
+				TAB_UPDATABLE_PROP_EDITED_PROFILE, &profile,
+				NULL );
+
+		context = ( profile ? NA_ICONTEXT( profile ) : ( NAIContext * ) item );
+		tab_set_sensitive( instance, context );
+	}
+}
+
+static void
+on_show_always_toggled( GtkToggleButton *toggle_button, NactIEnvironmentTab *instance )
+{
+	static const gchar *thisfn = "nact_ienvironment_tab_on_show_always_toggled";
+
+	g_debug( "%s: toggle_button=%p (active=%s), instance=%p",
+			thisfn,
+			( void * ) toggle_button, gtk_toggle_button_get_active( toggle_button ) ? "True":"False",
+			( void * ) instance );
+}
+
+static void
+on_only_show_toggled( GtkToggleButton *toggle_button, NactIEnvironmentTab *instance )
+{
+	static const gchar *thisfn = "nact_ienvironment_tab_on_only_show_toggled";
+
+	g_debug( "%s: toggle_button=%p (active=%s), instance=%p",
+			thisfn,
+			( void * ) toggle_button, gtk_toggle_button_get_active( toggle_button ) ? "True":"False",
+			( void * ) instance );
+}
+
+static void
+on_do_not_show_toggled( GtkToggleButton *toggle_button, NactIEnvironmentTab *instance )
+{
+	static const gchar *thisfn = "nact_ienvironment_tab_on_do_not_show_toggled";
+
+	g_debug( "%s: toggle_button=%p (active=%s), instance=%p",
+			thisfn,
+			( void * ) toggle_button, gtk_toggle_button_get_active( toggle_button ) ? "True":"False",
+			( void * ) instance );
+}
+
+static void
+on_desktop_toggled( GtkCellRendererToggle *renderer, gchar *path, BaseWindow *window )
+{
+	static const gchar *thisfn = "nact_ienvironment_tab_on_desktop_toggled";
+	GtkTreeView *listview;
+	gboolean editable;
+	NAObjectItem *item;
+	NAObjectProfile *profile;
+	NAIContext *context;
+	GtkTreeModel *model;
+	GtkTreeIter iter;
+	GtkTreePath *tree_path;
+	gboolean state;
+	gchar *desktop;
+
+	g_debug( "%s: renderer=%p, path=%s, window=%p", thisfn, ( void * ) renderer, path, ( void * ) window );
+
+	if( !st_on_selection_change ){
+
+		listview = GTK_TREE_VIEW( base_window_get_widget( window, "EnvironmentsTreeView" ));
+		model = gtk_tree_view_get_model( listview );
+		tree_path = gtk_tree_path_new_from_string( path );
+		gtk_tree_model_get_iter( model, &iter, tree_path );
+		gtk_tree_path_free( tree_path );
+		gtk_tree_model_get( model, &iter, ENV_BOOL_COLUMN, &state, ENV_KEYWORD_COLUMN, &desktop, -1 );
+
+		g_object_get(
+				G_OBJECT( window ),
+				TAB_UPDATABLE_PROP_EDITED_ACTION, &item,
+				TAB_UPDATABLE_PROP_EDITED_PROFILE, &profile,
+				TAB_UPDATABLE_PROP_EDITABLE, &editable,
+				NULL );
+
+		context = ( profile ? NA_ICONTEXT( profile ) : ( NAIContext * ) item );
+
+		if( !editable ){
+			g_signal_handlers_block_by_func(( gpointer ) renderer, on_desktop_toggled, window );
+			gtk_cell_renderer_toggle_set_active( renderer, state );
+			g_signal_handlers_unblock_by_func(( gpointer ) renderer, on_desktop_toggled, window );
+
+		} else {
+			gtk_list_store_set( GTK_LIST_STORE( model ), &iter, ENV_BOOL_COLUMN, !state, -1 );
+			/*
+			if( g_object_class_find_property( G_OBJECT_GET_CLASS( window ), TAB_UPDATABLE_PROP_EDITED_PROFILE )){
+				g_object_get(
+						G_OBJECT( window ),
+						TAB_UPDATABLE_PROP_EDITED_PROFILE, &edited,
+						NULL );
+				if( edited ){
+					na_object_set_scheme( edited, scheme, !state );
+					g_signal_emit_by_name( G_OBJECT( window ), TAB_UPDATABLE_SIGNAL_ITEM_UPDATED, edited, FALSE );
+				}
+			}
+			*/
+		}
+
+		g_free( desktop );
+	}
+}
+
+static void
+on_try_exec_changed( GtkEntry *entry, NactIEnvironmentTab *instance )
+{
+}
+
+static void
+on_try_exec_browse( GtkButton *button, NactIEnvironmentTab *instance )
+{
+}
+
+static void
+on_show_if_registered_changed( GtkEntry *entry, NactIEnvironmentTab *instance )
+{
+}
+
+static void
+on_show_if_true_changed( GtkEntry *entry, NactIEnvironmentTab *instance )
+{
+}
+
+static void
+on_show_if_running_changed( GtkEntry *entry, NactIEnvironmentTab *instance )
+{
+}
+
+static void
+on_show_if_running_browse( GtkButton *button, NactIEnvironmentTab *instance )
+{
+}
+
+static gboolean
+tab_set_sensitive( NactIEnvironmentTab *instance, NAIContext *context )
+{
+	gboolean enable_tab;
 
-	enable_tab = ( profile != NULL );
+	enable_tab = ( context != NULL );
 	nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_ENVIRONMENT, enable_tab );
 
 	return( enable_tab );
diff --git a/src/nact/nact-ienvironment-tab.h b/src/nact/nact-ienvironment-tab.h
index 9ca7092..3e0dc68 100644
--- a/src/nact/nact-ienvironment-tab.h
+++ b/src/nact/nact-ienvironment-tab.h
@@ -38,6 +38,10 @@
  *
  * This interface implements all the widgets which define the
  * actual action to be executed.
+ *
+ * Notes:
+ * - OnlyShowIn/NotShowIn are configured as one list of strings.
+ *   They are edited here as a radio button and a list of checkbuttons
  */
 
 #include <glib-object.h>
diff --git a/src/nact/nautilus-actions-config-tool.ui b/src/nact/nautilus-actions-config-tool.ui
index 359f9ee..ee0bf2e 100644
--- a/src/nact/nautilus-actions-config-tool.ui
+++ b/src/nact/nautilus-actions-config-tool.ui
@@ -1716,6 +1716,7 @@ Defining several profiles lets you have several commands, each applying with a d
                                             </child>
                                           </object>
                                           <packing>
+                                            <property name="expand">False</property>
                                             <property name="position">0</property>
                                           </packing>
                                         </child>
@@ -2660,6 +2661,9 @@ Defining several profiles lets you have several commands, each applying with a d
       <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>
@@ -2675,10 +2679,10 @@ Defining several profiles lets you have several commands, each applying with a d
         <child>
           <object class="GtkFileChooserWidget" id="ImportFileChooser">
             <property name="visible">True</property>
-            <property name="preview_widget_active">False</property>
             <property name="use_preview_label">False</property>
-            <property name="local_only">False</property>
+            <property name="preview_widget_active">False</property>
             <property name="select_multiple">True</property>
+            <property name="local_only">False</property>
           </object>
           <packing>
             <property name="position">0</property>
@@ -3648,39 +3652,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]