Enlightenment CVS committal
Author : handyande
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_int_menus.c e_int_menus.h
Log Message:
OK, so after speaking with raster about config panels I dropped this in - a
menu rendering of the same information we will be placing in the config app
This could be a -just-for-now- thing, not sure
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_menus.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -3 -r1.65 -r1.66
--- e_int_menus.c 5 Jun 2005 15:02:43 -0000 1.65
+++ e_int_menus.c 9 Jun 2005 22:24:36 -0000 1.66
@@ -14,6 +14,7 @@
E_Menu *modules;
E_Menu *gadgets;
E_Menu *themes;
+ E_Menu *config;
};
/* local subsystem functions */
@@ -128,9 +129,21 @@
{
mi = e_menu_item_new(m);
e_menu_item_label_set(mi, _("Run Command"));
+ s = e_path_find(path_icons, "default.edj");
+ e_menu_item_icon_edje_set(mi, s, "run");
+ IF_FREE(s);
e_menu_item_callback_set(mi, _e_int_menus_main_run, NULL);
}
-
+
+ subm = e_int_menus_config_apps_new();
+ dat->config = subm;
+ mi = e_menu_item_new(m);
+ e_menu_item_label_set(mi, _("Configuration"));
+ s = e_path_find(path_icons, "default.edj");
+ e_menu_item_icon_edje_set(mi, s, "configuration");
+ IF_FREE(s);
+ e_menu_item_submenu_set(mi, subm);
+
mi = e_menu_item_new(m);
e_menu_item_separator_set(mi, 1);
@@ -194,6 +207,15 @@
}
E_Menu *
+e_int_menus_config_apps_new(void)
+{
+ E_Menu *m;
+
+ m = e_int_menus_apps_new(PACKAGE_DATA_DIR "/config-apps");
+ return m;
+}
+
+E_Menu *
e_int_menus_clients_new(void)
{
E_Menu *m;
@@ -240,6 +262,7 @@
e_object_del(E_OBJECT(dat->clients));
e_object_del(E_OBJECT(dat->gadgets));
e_object_del(E_OBJECT(dat->themes));
+ e_object_del(E_OBJECT(dat->config));
free(dat);
}
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_menus.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_int_menus.h 1 May 2005 01:48:43 -0000 1.11
+++ e_int_menus.h 9 Jun 2005 22:24:36 -0000 1.12
@@ -11,6 +11,7 @@
EAPI E_Menu *e_int_menus_clients_new(void);
EAPI E_Menu *e_int_menus_apps_new(char *dir);
EAPI E_Menu *e_int_menus_favorite_apps_new(void);
+EAPI E_Menu *e_int_menus_config_apps_new(void);
EAPI E_Menu *e_int_menus_gadgets_new(void);
EAPI E_Menu *e_int_menus_themes_new(void);
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs