[nautilus-actions] NactMainWindow: set the context of the current profile if any



commit 2c9d0216aaac9ed0691c512b7e72103df20879b1
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Feb 15 22:08:03 2012 +0100

    NactMainWindow: set the context of the current profile if any

 ChangeLog                   |    3 +++
 src/nact/nact-main-window.c |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9397eb2..809842b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-02-15 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-main-window.c (setup_current_selection):
+	Setup the context of the current profile if any.
+
 	* src/nact/nact-menubar-priv.h:
 	* src/nact/nact-menubar.c (instance_dispose): Disconnect signal handler.
 
diff --git a/src/nact/nact-main-window.c b/src/nact/nact-main-window.c
index fca02b8..6049b78 100644
--- a/src/nact/nact-main-window.c
+++ b/src/nact/nact-main-window.c
@@ -1162,6 +1162,7 @@ setup_current_selection( NactMainWindow *window, NAObjectId *selected_row )
 
 	if( NA_IS_OBJECT_PROFILE( selected_row )){
 		window->private->current_profile = NA_OBJECT_PROFILE( selected_row );
+		window->private->current_context = NA_ICONTEXT( selected_row );
 		window->private->current_item = NA_OBJECT_ITEM( na_object_get_parent( selected_row ));
 
 	} else {



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