[nautilus-actions] nact_menubar_edit_on_update_sensitivities(): only evaluate writability of an action
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] nact_menubar_edit_on_update_sensitivities(): only evaluate writability of an action
- Date: Wed, 15 Feb 2012 21:17:32 +0000 (UTC)
commit a16d312a7bfb78f7f57b76e2ef8f02e30b7d12ff
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed Feb 15 21:25:36 2012 +0100
nact_menubar_edit_on_update_sensitivities(): only evaluate writability of an action
ChangeLog | 4 ++++
src/nact/nact-menubar-edit.c | 4 +++-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 205c370..9df6d8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2012-02-15 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-menubar-edit.c
+ (nact_menubar_edit_on_update_sensitivities): Do not evaluate writability
+ if an action is not selected.
+
* src/nact/nact-menubar.c
(nact_menubar_new, on_ui_manager_proxy_connect): Review code layout.
diff --git a/src/nact/nact-menubar-edit.c b/src/nact/nact-menubar-edit.c
index 17bbf4a..a284518 100644
--- a/src/nact/nact-menubar-edit.c
+++ b/src/nact/nact-menubar-edit.c
@@ -137,7 +137,9 @@ nact_menubar_edit_on_update_sensitivities( const NactMenubar *bar )
if( paste_into_enabled ){
selected_action = NA_OBJECT( bar->private->selected_items->data );
paste_into_enabled &= NA_IS_OBJECT_ACTION( selected_action );
- paste_into_enabled &= na_object_is_finally_writable( selected_action, NULL );
+ if( paste_into_enabled ){
+ paste_into_enabled &= na_object_is_finally_writable( selected_action, NULL );
+ }
}
} else {
paste_into_enabled &= bar->private->has_writable_providers;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]