Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
Makefile.am e_about.c e_includes.h e_int_menus.c
Added Files:
e_theme_about.c e_theme_about.h
Log Message:
theme about box! all themes can add their own now! :)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/Makefile.am,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -3 -r1.45 -r1.46
--- Makefile.am 20 Sep 2005 08:34:23 -0000 1.45
+++ Makefile.am 22 Sep 2005 05:52:37 -0000 1.46
@@ -71,7 +71,8 @@
e_pan.h \
e_dialog.h \
e_configure.h \
-e_about.h
+e_about.h \
+e_theme_about.h
enlightenment_SOURCES = \
e_main.c \
@@ -131,6 +132,7 @@
e_dialog.c \
e_configure.c \
e_about.c \
+e_theme_about.c \
$(ENLIGHTENMENTHEADERS)
enlightenment_LDFLAGS = -export-dynamic @e_libs@ @x_libs@ @dlopen_libs@
@cf_libs@
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_about.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_about.c 20 Sep 2005 11:02:48 -0000 1.8
+++ e_about.c 22 Sep 2005 05:52:37 -0000 1.9
@@ -6,7 +6,7 @@
/* local subsystem functions */
static void _e_about_free(E_About *about);
static void _e_about_cb_delete(E_Win *win);
-static void _e_dialog_cb_close(void *data, Evas_Object *obj, const char
*emission, const char *source);
+static void _e_about_cb_close(void *data, Evas_Object *obj, const char
*emission, const char *source);
/* local subsystem globals */
@@ -68,7 +68,7 @@
)
);
edje_object_signal_callback_add(about->bg_object, "close", "",
- _e_dialog_cb_close, about);
+ _e_about_cb_close, about);
{
FILE *f;
char buf[4096], buf2[4096], *tbuf;
@@ -166,7 +166,7 @@
}
static void
-_e_dialog_cb_close(void *data, Evas_Object *obj, const char *emission, const
char *source)
+_e_about_cb_close(void *data, Evas_Object *obj, const char *emission, const
char *source)
{
E_About *about;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_includes.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- e_includes.h 20 Sep 2005 08:34:23 -0000 1.32
+++ e_includes.h 22 Sep 2005 05:52:37 -0000 1.33
@@ -58,3 +58,4 @@
#include "e_dialog.h"
#include "e_configure.h"
#include "e_about.h"
+#include "e_theme_about.h"
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_menus.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -3 -r1.94 -r1.95
--- e_int_menus.c 20 Sep 2005 08:34:23 -0000 1.94
+++ e_int_menus.c 22 Sep 2005 05:52:37 -0000 1.95
@@ -24,6 +24,7 @@
static void _e_int_menus_quit_cb (void *data);
static void _e_int_menus_main_del_hook (void *obj);
static void _e_int_menus_main_about (void *data, E_Menu *m,
E_Menu_Item *mi);
+static void _e_int_menus_main_theme_about (void *data, E_Menu *m,
E_Menu_Item *mi);
static void _e_int_menus_main_run (void *data, E_Menu *m,
E_Menu_Item*mi);
static void _e_int_menus_main_restart (void *data, E_Menu *m,
E_Menu_Item *mi);
static void _e_int_menus_main_exit (void *data, E_Menu *m,
E_Menu_Item *mi);
@@ -134,6 +135,11 @@
e_util_menu_item_edje_icon_set(mi, "enlightenment/e");
e_menu_item_callback_set(mi, _e_int_menus_main_about, NULL);
+ mi = e_menu_item_new(m);
+ e_menu_item_label_set(mi, _("About This Theme"));
+ e_util_menu_item_edje_icon_set(mi, "enlightenment/theme");
+ e_menu_item_callback_set(mi, _e_int_menus_main_theme_about, NULL);
+
if (ecore_file_app_installed("exige"))
{
mi = e_menu_item_new(m);
@@ -359,6 +365,15 @@
}
static void
+_e_int_menus_main_theme_about(void *data, E_Menu *m, E_Menu_Item *mi)
+{
+ E_Theme_About *about;
+
+ about = e_theme_about_new(e_container_current_get(e_manager_current_get()));
+ if (about) e_theme_about_show(about);
+}
+
+static void
_e_int_menus_main_run(void *data, E_Menu *m, E_Menu_Item *mi)
{
Ecore_Exe *exe;
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs