[nautilus-actions] Considere background menu just as a special case of selection menu
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Considere background menu just as a special case of selection menu
- Date: Tue, 23 Mar 2010 20:02:29 +0000 (UTC)
commit 003ea416f3f7034b73a67970b722b2dd4cfcd4b8
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Mar 22 07:09:19 2010 +0100
Considere background menu just as a special case of selection menu
ChangeLog | 3 +++
src/core/na-object-action.c | 6 ++++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5fd74fa..d0a5550 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-03-22 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-object-action.c (na_object_action_is_candidate):
+ Considere background menu just as a special case of selection menu.
+
* data/.gitignore: Update .gitignore.
2009-03-17 Pierre Wieser <pwieser trychlos org>
diff --git a/src/core/na-object-action.c b/src/core/na-object-action.c
index 0c55470..873cc54 100644
--- a/src/core/na-object-action.c
+++ b/src/core/na-object-action.c
@@ -701,8 +701,10 @@ na_object_action_is_candidate( const NAObjectAction *action, guint target, GList
if( !action->private->dispose_has_run ){
is_candidate =
- ( na_object_is_target_selection( action ) && target == ITEM_TARGET_SELECTION ) ||
- ( na_object_is_target_toolbar( action ) && target == ITEM_TARGET_TOOLBAR );
+ ( na_object_is_target_selection( action ) &&
+ ( target == ITEM_TARGET_BACKGROUND || target == ITEM_TARGET_SELECTION )) ||
+ ( na_object_is_target_toolbar( action ) &&
+ target == ITEM_TARGET_TOOLBAR );
}
return( is_candidate );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]