[nautilus-actions] Select and expand the first row of the assistant export list



commit 716b1b0bcdd9c1bc78b2538f1b27e678ead0dbbe
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Mar 3 22:02:14 2010 +0100

    Select and expand the first row of the assistant export list

 ChangeLog                        |    3 +++
 src/nact/nact-assistant-export.c |   18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e75f15c..2ff476c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-03-03 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-assistant-export.c (on_all_widgets_showed):
+	Select and expand the first row of the list.
+
 	* src/core/na-module.c (add_module_type):
 	* src/io-desktop/nadp-reader.c (na_ifactory_provider_read_item):
 	* src/io-desktop/nadp-writer.c (nadp_iio_provider_write_item):
diff --git a/src/nact/nact-assistant-export.c b/src/nact/nact-assistant-export.c
index 5bb56ab..1bcf480 100644
--- a/src/nact/nact-assistant-export.c
+++ b/src/nact/nact-assistant-export.c
@@ -111,6 +111,7 @@ static gchar          *window_get_ui_filename( const BaseWindow *dialog );
 
 static void            on_initial_load_dialog( NactAssistantExport *dialog, gpointer user_data );
 static void            on_runtime_init_dialog( NactAssistantExport *dialog, gpointer user_data );
+static void            on_all_widgets_showed( NactAssistantExport *dialog );
 
 static void            assist_initial_load_intro( NactAssistantExport *window, GtkAssistant *assistant );
 static void            assist_runtime_init_intro( NactAssistantExport *window, GtkAssistant *assistant );
@@ -251,6 +252,12 @@ instance_init( GTypeInstance *instance, gpointer klass )
 			G_OBJECT( instance ),
 			BASE_WINDOW_SIGNAL_RUNTIME_INIT,
 			G_CALLBACK( on_runtime_init_dialog ));
+
+	base_window_signal_connect(
+			BASE_WINDOW( instance ),
+			G_OBJECT( instance ),
+					BASE_WINDOW_SIGNAL_ALL_WIDGETS_SHOWED,
+			G_CALLBACK( on_all_widgets_showed ));
 }
 
 static void
@@ -385,6 +392,17 @@ on_runtime_init_dialog( NactAssistantExport *dialog, gpointer user_data )
 }
 
 static void
+on_all_widgets_showed( NactAssistantExport *dialog )
+{
+	static const gchar *thisfn = "nact_assistant_export_on_all_widgets_showed";
+
+	g_debug( "%s: dialog=%p", thisfn, ( void * ) dialog );
+	g_return_if_fail( NACT_IS_ASSISTANT_EXPORT( dialog ));
+
+	nact_iactions_list_bis_select_first_row( NACT_IACTIONS_LIST( dialog ));
+}
+
+static void
 assist_initial_load_intro( NactAssistantExport *window, GtkAssistant *assistant )
 {
 }



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