Enlightenment CVS committal Author : chaos Project : e17 Module : proto
Dir : e17/proto/entropy/src/dialogs Modified Files: etk_file_context_menu.c Log Message: * Entropy-side metadata (it works now!) =================================================================== RCS file: /cvs/e/e17/proto/entropy/src/dialogs/etk_file_context_menu.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- etk_file_context_menu.c 17 Jul 2006 13:41:46 -0000 1.7 +++ etk_file_context_menu.c 17 Jul 2006 14:45:21 -0000 1.8 @@ -144,6 +144,18 @@ etk_file_rename_dialog_create(_entropy_etk_context_menu_current_file); } +static void +_entropy_etk_context_menu_group_file_add_cb(Etk_Object *object, void *data) +{ + const char* label; + + label = etk_menu_item_label_get(ETK_MENU_ITEM(object)); + + printf("Add to group '%s'\n", label); + + entropy_plugin_filesystem_file_group_add(_entropy_etk_context_menu_current_file, label); +} + void entropy_etk_context_menu_metadata_groups_populate() { @@ -186,6 +198,7 @@ w = _entropy_etk_menu_item_new(ETK_MENU_ITEM_NORMAL, str, ETK_STOCK_EDIT_COPY, ETK_MENU_SHELL(_entropy_etk_context_menu_groups_add_to),NULL); + etk_signal_connect("activated", ETK_OBJECT(w), ETK_CALLBACK(_entropy_etk_context_menu_group_file_add_cb), NULL); w = _entropy_etk_menu_item_new(ETK_MENU_ITEM_NORMAL, str, ETK_STOCK_EDIT_COPY, ETK_MENU_SHELL(_entropy_etk_context_menu_groups_remove_from),NULL); ------------------------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs