[nautilus-actions] Update Preferences editor to new providers list API



commit 9a88c0abddad142ed1ca6d82af7882e917657de3
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Jan 26 23:34:20 2011 +0100

    Update Preferences editor to new providers list API

 ChangeLog                          |    3 +++
 src/nact/nact-preferences-editor.c |   11 +++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1678660..08f1bde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
 	* src/nact/nact-providers-list.h (nact_providers_list_create_model):
 	Do not initialize the widgets with the future BaseWindow.
 
+	* src/nact/nact-preferences-editor.c (preferences_editor_new):
+	Updated accordingly.
+
 	* src/nact/nact-schemes-list.c: Only ask for preferences once.
 
 	* src/nact/nact-assistant-import.c (assist_new):
diff --git a/src/nact/nact-preferences-editor.c b/src/nact/nact-preferences-editor.c
index f8a19dd..9eeb9dc 100644
--- a/src/nact/nact-preferences-editor.c
+++ b/src/nact/nact-preferences-editor.c
@@ -91,7 +91,7 @@ struct _NactPreferencesEditorPrivate {
 };
 
 static const gchar  *st_xmlui_filename = PKGDATADIR "/nact-preferences.ui";
-static const gchar  *st_toplevel_name  = "ExportAssistant";
+static const gchar  *st_toplevel_name  = "PreferencesDialog";
 
 static GObjectClass *st_parent_class   = NULL;
 static guint         st_last_tab       = 0;
@@ -285,12 +285,15 @@ instance_finalize( GObject *dialog )
 static NactPreferencesEditor *
 preferences_editor_new( BaseWindow *parent )
 {
+	static const gchar *thisfn = "nact_preferences_editor_new";
 	NactPreferencesEditor *editor;
 	NactApplication *application;
 	NAUpdater *updater;
 	NASettings *settings;
 	gboolean are_locked, mandatory;
 
+	g_debug( "%s: parent=%p (%s)", thisfn, ( void * ) parent, G_OBJECT_TYPE_NAME( parent ));
+
 	editor = NACT_PREFERENCES_EDITOR(
 			g_object_new( NACT_PREFERENCES_EDITOR_TYPE,
 					BASE_PROP_PARENT,         parent,
@@ -304,8 +307,8 @@ preferences_editor_new( BaseWindow *parent )
 
 	are_locked = na_settings_get_boolean( settings, NA_IPREFS_ADMIN_PREFERENCES_LOCKED, NULL, &mandatory );
 	editor->private->preferences_locked = are_locked && mandatory;
-	g_debug( "nact_preferences_editor_new: are_locked=%s, mandatory=%s",
-			are_locked ? "True":"False", mandatory ? "True":"False" );
+	g_debug( "%s: are_locked=%s, mandatory=%s",
+			thisfn, are_locked ? "True":"False", mandatory ? "True":"False" );
 
 	return( editor );
 }
@@ -362,7 +365,7 @@ on_base_initial_load_dialog( NactPreferencesEditor *editor, gpointer user_data )
 	nact_schemes_list_create_model( listview, SCHEMES_LIST_FOR_PREFERENCES );
 
 	listview = GTK_TREE_VIEW( base_window_get_widget( BASE_WINDOW( editor ), "ProvidersTreeView" ));
-	nact_providers_list_create_model( BASE_WINDOW( editor ), listview );
+	nact_providers_list_create_model( listview );
 }
 
 static void



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