summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog4
-rw-r--r--NEWS1
-rw-r--r--src/modules/fileman/e_mod_menu.c8
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 517d5a9b7..96b20259c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12013-08-30 Mike Blumenkrantz
2
3 * Navigate menu item now opens $HOME
4
12013-07-26 Mike Blumenkrantz 52013-07-26 Mike Blumenkrantz
2 6
3 * fixed bug where setting min size on a gadget would not be passed to desktop gadgets 7 * fixed bug where setting min size on a gadget would not be passed to desktop gadgets
diff --git a/NEWS b/NEWS
index f3c50a2e5..7dd663992 100644
--- a/NEWS
+++ b/NEWS
@@ -148,6 +148,7 @@ Improvements:
148 * filemanager dnd operations now show all files when dragging 148 * filemanager dnd operations now show all files when dragging
149 * added check changed to shelf config dialog 149 * added check changed to shelf config dialog
150 * udisks2 support 150 * udisks2 support
151 * Navigate menu item now opens $HOME
151 152
152Fixes: 153Fixes:
153 * IBar menu didn't allow to configure different icon sources, show contents menu even on empty IBar. 154 * IBar menu didn't allow to configure different icon sources, show contents menu even on empty IBar.
diff --git a/src/modules/fileman/e_mod_menu.c b/src/modules/fileman/e_mod_menu.c
index e644ce5f5..b9d1b008a 100644
--- a/src/modules/fileman/e_mod_menu.c
+++ b/src/modules/fileman/e_mod_menu.c
@@ -482,6 +482,13 @@ _e_mod_menu_generate(void *data, E_Menu *m)
482 e_menu_pre_activate_callback_set(m, NULL, NULL); 482 e_menu_pre_activate_callback_set(m, NULL, NULL);
483} 483}
484 484
485static void
486_e_mod_menu_navigate_cb(void *d EINA_UNUSED, E_Menu *m, E_Menu_Item *mi EINA_UNUSED)
487{
488 if (m->zone)
489 e_fwin_new(m->zone->container, "~/", "/");
490}
491
485/* returns submenu so we can add Go to Parent */ 492/* returns submenu so we can add Go to Parent */
486E_Menu * 493E_Menu *
487e_mod_menu_add(E_Menu *m, const char *path) 494e_mod_menu_add(E_Menu *m, const char *path)
@@ -493,6 +500,7 @@ e_mod_menu_add(E_Menu *m, const char *path)
493 mi = e_menu_item_new(m); 500 mi = e_menu_item_new(m);
494 e_menu_item_label_set(mi, _("Navigate...")); 501 e_menu_item_label_set(mi, _("Navigate..."));
495 e_util_menu_item_theme_icon_set(mi, "system-file-manager"); 502 e_util_menu_item_theme_icon_set(mi, "system-file-manager");
503 e_menu_item_callback_set(mi, _e_mod_menu_navigate_cb, NULL);
496 sub = e_menu_new(); 504 sub = e_menu_new();
497 e_menu_item_submenu_set(mi, sub); 505 e_menu_item_submenu_set(mi, sub);
498 e_object_unref(E_OBJECT(sub)); //allow deletion whenever main menu deletes 506 e_object_unref(E_OBJECT(sub)); //allow deletion whenever main menu deletes