Enlightenment CVS committal
Author : handyande
Project : misc
Module : engage
Dir : misc/engage/src
Modified Files:
config.c
Log Message:
Put an examine launcher in the menu, makes things easier
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/config.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- config.c 11 Jun 2004 14:46:18 -0000 1.26
+++ config.c 15 Jun 2004 19:31:56 -0000 1.27
@@ -159,6 +159,14 @@
}
void
+od_config_menu_config_cb(Ewl_Widget * w, void *ev_data, void *user_data)
+{
+ if (!ecore_exe_run("examine engage", NULL))
+ fprintf(stderr, "'examine' could not be launched - is it in your path?\n");
+ od_config_menu_hide();
+}
+
+void
od_config_menu_quit_cb(Ewl_Widget * w, void *ev_data, void *user_data)
{
od_config_menu_hide();
@@ -174,7 +182,7 @@
return;
init = 1;
/* FIXME: nasty nasty, we need to request the size, not code it in */
- menu_height = 60;
+ menu_height = 87;
menu_width = 100;
menu_win = ewl_embed_new();
@@ -208,6 +216,11 @@
ewl_callback_append(item, EWL_CALLBACK_SELECT, od_config_menu_zoom_cb, NULL);
ewl_widget_show(item);
+ item = ewl_menu_item_new(NULL, "Configuration");
+ ewl_container_append_child(EWL_CONTAINER(menu), item);
+ ewl_callback_append(item, EWL_CALLBACK_SELECT, od_config_menu_config_cb, NULL);
+ ewl_widget_show(item);
+
item = ewl_menu_separator_new();
ewl_container_append_child(EWL_CONTAINER(menu), item);
ewl_widget_show(item);
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs