Enlightenment CVS committal
Author : chaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src/dialogs
Modified Files:
etk_file_context_menu.c
Log Message:
* Hook up rename properly in the menu
* Allow sorting by filetype
===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/dialogs/etk_file_context_menu.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- etk_file_context_menu.c 22 Apr 2006 03:36:22 -0000 1.5
+++ etk_file_context_menu.c 23 Apr 2006 07:21:48 -0000 1.6
@@ -66,8 +66,18 @@
void _entropy_etk_context_menu_directory_add_cb(Etk_Object *object, void *data)
{
- if (_entropy_etk_context_menu_current_folder) {
-
etk_directory_add_dialog_create(_entropy_etk_context_menu_current_folder);
+ if (_entropy_etk_context_menu_current_file) {
+ if (!strcmp(_entropy_etk_context_menu_current_file->mime_type,
"file/folder"))
+ _entropy_etk_context_menu_current_folder =
_entropy_etk_context_menu_current_file;
+ else
+ _entropy_etk_context_menu_current_folder =
+
entropy_core_parent_folder_file_get(_entropy_etk_context_menu_current_file);
+
+ if (_entropy_etk_context_menu_current_folder) {
+
etk_directory_add_dialog_create(_entropy_etk_context_menu_current_folder);
+ } else {
+ printf("Current folder is NULL at context menu\n");
+ }
}
}
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs