[nautilus-actions] Display provider writability status for profiles



commit 800546163c443a23276f516726bdb5f531b403a4
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Dec 21 06:11:16 2009 +0100

    Display provider writability status for profiles

 ChangeLog                                |    1 +
 nautilus-actions/nact/nact-main-window.c |    9 ++++-----
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 33b7aed..819b6fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
 	* nautilus-actions/nact/nact-main-window.c
 	(on_iactions_list_selection_changed): Remove useless properties setup.
+	Provider writability status is also displayed for profiles.
 
 	* nautilus-actions/nact/nact-iaction-tab.c
 	(on_tab_updatable_provider_changed, display_provider_name):
diff --git a/nautilus-actions/nact/nact-main-window.c b/nautilus-actions/nact/nact-main-window.c
index adc5b2a..8263f6f 100644
--- a/nautilus-actions/nact/nact-main-window.c
+++ b/nautilus-actions/nact/nact-main-window.c
@@ -1150,6 +1150,10 @@ on_iactions_list_selection_changed( NactIActionsList *instance, GSList *selected
 			set_current_profile( window, TRUE, selected_items );
 		}
 
+		window->private->readonly_item = na_object_is_readonly( window->private->edited_item );
+		window->private->writable_provider = nact_window_is_writable_provider( NACT_WINDOW( window ), window->private->edited_item );
+		nact_main_statusbar_set_locked( window, !window->private->writable_provider, window->private->readonly_item );
+
 	} else {
 		window->private->selected_row = NULL;
 		window->private->edited_item = NULL;
@@ -1189,11 +1193,6 @@ set_current_object_item( NactMainWindow *window, GSList *selected_items )
 
 	if( window->private->edited_item ){
 
-		window->private->readonly_item = na_object_is_readonly( window->private->edited_item );
-		window->private->writable_provider = nact_window_is_writable_provider( NACT_WINDOW( window ), window->private->edited_item );
-
-		nact_main_statusbar_set_locked( window, !window->private->writable_provider, window->private->readonly_item );
-
 		if( NA_IS_OBJECT_ACTION( window->private->edited_item )){
 
 			count_profiles = na_object_get_items_count( NA_OBJECT_ACTION( window->private->edited_item ));



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