[nautilus-actions] Import assistant: load the common XML UI file into the private builder



commit 9146283b64d3fa249b7af23c9b687013f18bf1be
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Jan 26 23:30:12 2011 +0100

    Import assistant: load the common XML UI file into the private builder

 ChangeLog                        |    3 +++
 src/nact/nact-assistant-import.c |   11 +++++------
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4c18728..72e284b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-01-26 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-assistant-import.c (assist_new):
+	Reload the common XML UI file into the private builder.
+
 	* src/nact/base-dialog.c:
 	* src/nact/base-dialog.h:
 	* src/nact/base-window.h: Do some code and comments cleanup.
diff --git a/src/nact/nact-assistant-import.c b/src/nact/nact-assistant-import.c
index 65b287e..1a0ac33 100644
--- a/src/nact/nact-assistant-import.c
+++ b/src/nact/nact-assistant-import.c
@@ -78,6 +78,7 @@ struct _NactAssistantImportPrivate {
 	GList       *results;
 };
 
+static const gchar        *st_xmlui_filename = PKGDATADIR "/nautilus-actions-config-tool.ui";
 static const gchar        *st_toplevel_name  = "ImportAssistant";
 
 static BaseAssistantClass *st_parent_class   = NULL;
@@ -253,8 +254,10 @@ static NactAssistantImport *
 assist_new( BaseWindow *parent )
 {
 	return( g_object_new( NACT_ASSISTANT_IMPORT_TYPE,
-			BASE_PROP_PARENT,        parent,
-			BASE_PROP_TOPLEVEL_NAME, st_toplevel_name,
+			BASE_PROP_PARENT,          parent,
+			BASE_PROP_HAS_OWN_BUILDER, TRUE,
+			BASE_PROP_XMLUI_FILENAME,  st_xmlui_filename,
+			BASE_PROP_TOPLEVEL_NAME,   st_toplevel_name,
 			NULL ));
 }
 
@@ -270,10 +273,6 @@ nact_assistant_import_run( BaseWindow *main_window )
 	NactAssistantImport *assist;
 
 	assist = assist_new( main_window );
-	g_object_set( G_OBJECT( assist ),
-			BASE_PROP_HAS_OWN_BUILDER, TRUE,
-			BASE_PROP_TOPLEVEL_NAME,   st_toplevel_name,
-			NULL );
 
 	base_window_run( BASE_WINDOW( assist ));
 }



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