[nautilus-actions] Force sensitivities update when new tree store is empty
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Force sensitivities update when new tree store is empty
- Date: Sat, 3 Jul 2010 07:57:01 +0000 (UTC)
commit d417932dbde50c4260c44507f497aae33e6ab80f
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Jun 28 06:13:37 2010 +0200
Force sensitivities update when new tree store is empty
ChangeLog | 3 +++
src/nact/nact-main-menubar-file.c | 7 +++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8a8f6f1..553ea74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-06-28 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-main-menubar-file.c (nact_main_menubar_file_save_items):
+ Force sensitivities update when new tree store is empty.
+
* src/core/na-iduplicable.c (na_iduplicable_check_status):
* src/core/na-object.c (na_object_object_unref):
Review debug messages.
diff --git a/src/nact/nact-main-menubar-file.c b/src/nact/nact-main-menubar-file.c
index ea833a2..8a79429 100644
--- a/src/nact/nact-main-menubar-file.c
+++ b/src/nact/nact-main-menubar-file.c
@@ -305,6 +305,13 @@ nact_main_menubar_file_save_items( NactMainWindow *window )
na_pivot_set_new_items( NA_PIVOT( updater ), g_list_reverse( new_pivot ));
g_list_free( items );
+ /* when new_pivot is empty, then there has been no chance of updating
+ * sensibilities on check status - so force it there
+ */
+ if( !new_pivot ){
+ g_signal_emit_by_name( window, MAIN_WINDOW_SIGNAL_UPDATE_ACTION_SENSITIVITIES, NULL );
+ }
+
/* get ride of notification messages of IOProviders
*/
na_ipivot_consumer_delay_notify( NA_IPIVOT_CONSUMER( window ));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]