Enlightenment CVS committal Author : chaos Project : e17 Module : proto
Dir : e17/proto/entropy/src/plugins Modified Files: Makefile.am etk_structure_viewer.c Log Message: * Add context menu to tree view =================================================================== RCS file: /cvs/e/e17/proto/entropy/src/plugins/Makefile.am,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- Makefile.am 18 Apr 2006 12:19:55 -0000 1.35 +++ Makefile.am 19 Apr 2006 04:52:44 -0000 1.36 @@ -108,6 +108,10 @@ layout_etk_simple_la_LIBADD = @ETK_LIBS@ etk_structure_viewer_la_SOURCES = $(top_srcdir)/src/entropy_gui.c \ + $(top_srcdir)/src/dialogs/etk_directory_add_dialog.c \ + $(top_srcdir)/src/dialogs/etk_properties_dialog.c \ + $(top_srcdir)/src/dialogs/etk_file_context_menu.c \ + $(top_srcdir)/src/dialogs/etk_file_rename_dialog.c \ etk_structure_viewer.c $(top_srcdir)/src/entropy_debug.c etk_structure_viewer_la_CFLAGS = @ETK_CFLAGS@ etk_structure_viewer_la_LDFLAGS = -module -avoid-version =================================================================== RCS file: /cvs/e/e17/proto/entropy/src/plugins/etk_structure_viewer.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- etk_structure_viewer.c 15 Apr 2006 10:43:09 -0000 1.24 +++ etk_structure_viewer.c 19 Apr 2006 04:52:44 -0000 1.25 @@ -117,22 +117,27 @@ entropy_gui_event *gui_event; event_file_core* e_event; - if ( (!(event->button == 1)) || event->flags & EVAS_BUTTON_TRIPLE_CLICK + if ( (!(event->button == 1 || event->button == 3)) || event->flags & EVAS_BUTTON_TRIPLE_CLICK || event->flags & EVAS_BUTTON_DOUBLE_CLICK ) return; instance = ecore_hash_get(instance_map_hash, row); + etk_tree_row_select(row); if (instance) { viewer = instance->data; e_event = ecore_hash_get(viewer->row_hash, row); if (e_event) { - gui_event = entropy_malloc (sizeof (entropy_gui_event)); - gui_event->event_type = - entropy_core_gui_event_get (ENTROPY_GUI_EVENT_ACTION_FILE); - gui_event->data = e_event->file; - entropy_core_layout_notify_event (e_event->instance, gui_event, ENTROPY_EVENT_GLOBAL); - } + if (event->button == 1) { + gui_event = entropy_malloc (sizeof (entropy_gui_event)); + gui_event->event_type = + entropy_core_gui_event_get (ENTROPY_GUI_EVENT_ACTION_FILE); + gui_event->data = e_event->file; + entropy_core_layout_notify_event (e_event->instance, gui_event, ENTROPY_EVENT_GLOBAL); + } else if (event->button == 3) { + entropy_etk_context_menu_popup(instance, e_event->file); + } + } } ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs