[nautilus-actions] Activate keyboard shortcuts on menus
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Activate keyboard shortcuts on menus
- Date: Sat, 26 Sep 2009 22:48:00 +0000 (UTC)
commit 947a1b22bdb4a6316dd044a5481b9c4308e0a8d0
Author: Pierre Wieser <pwieser trychlos org>
Date: Sat Sep 19 19:00:37 2009 +0200
Activate keyboard shortcuts on menus
ChangeLog | 1 +
src/nact/nact-iactions-list.c | 5 ++++-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2d5598f..b9d7d67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,7 @@
nact_iactions_list_has_modified_items().
nact_iactions_list_has_exportable(): New function.
nact_iactions_list_is_filling_list(): Removed function.
+ toggle_collapse(): Activate shortcuts on menus.
* src/nact/nact-iaction-tab.c:
* src/nact/nact-icommand-tab.c:
diff --git a/src/nact/nact-iactions-list.c b/src/nact/nact-iactions-list.c
index 88564f9..e692a21 100644
--- a/src/nact/nact-iactions-list.c
+++ b/src/nact/nact-iactions-list.c
@@ -1377,7 +1377,10 @@ toggle_collapse_iter( NactIActionsList *instance,
if( NA_IS_OBJECT_ITEM( object )){
count = na_object_get_items_count( object );
- if( count > 1 ){
+
+ if(( count > 1 && NA_IS_OBJECT_ACTION( object )) ||
+ ( count > 0 && NA_IS_OBJECT_MENU( object ))){
+
toggle_collapse_row( treeview, path, toggle );
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]