Enlightenment CVS committal Author : cedric Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/conf_theme Modified Files: Makefile.am e_int_config_theme.c e_mod_main.h Log Message: Add Theme fetcher from Massimiliano Calamelli ([EMAIL PROTECTED]). =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/conf_theme/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- Makefile.am 7 Jul 2007 15:44:01 -0000 1.1 +++ Makefile.am 2 Jul 2008 11:29:14 -0000 1.2 @@ -23,7 +23,9 @@ e_int_config_theme.c \ e_int_config_theme.h \ e_int_config_theme_import.c \ - e_int_config_theme_import.h + e_int_config_theme_import.h \ + e_int_config_theme_web.c \ + e_int_config_theme_web.h module_la_LIBADD = @e_libs@ @dlopen_libs@ module_la_LDFLAGS = -module -avoid-version =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/conf_theme/e_int_config_theme.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- e_int_config_theme.c 12 May 2008 20:40:44 -0000 1.12 +++ e_int_config_theme.c 2 Jul 2008 11:29:14 -0000 1.13 @@ -37,6 +37,7 @@ /* Dialog */ E_Win *win_import; + E_Win *win_web; }; EAPI E_Config_Dialog * @@ -72,6 +73,15 @@ } EAPI void +e_int_config_theme_web_done(E_Config_Dialog *dia) +{ + E_Config_Dialog_Data *cfdata; + + cfdata = dia->cfdata; + cfdata->win_web = NULL; +} + +EAPI void e_int_config_theme_update(E_Config_Dialog *dia, char *file) { E_Config_Dialog_Data *cfdata; @@ -247,6 +257,18 @@ } static void +_cb_web(void *data1, void *data2) +{ + E_Config_Dialog_Data *cfdata; + + cfdata = data1; + if (cfdata->win_web) + e_win_raise(cfdata->win_web); + else + cfdata->win_web = e_int_config_theme_web(cfdata->cfd); +} + +static void _fill_data(E_Config_Dialog_Data *cfdata) { E_Config_Theme * c; @@ -368,9 +390,15 @@ of = e_widget_list_add(evas, 0, 0); il = e_widget_list_add(evas, 0, 1); - o = e_widget_button_add(evas, _("Import..."), "enlightenment/themes", + o = e_widget_button_add(evas, _(" Import..."), "enlightenment/themes", _cb_import, cfdata, NULL); e_widget_list_object_append(il, o, 1, 0, 0.5); + if (ecore_file_download_protocol_available("http://")) + { + o = e_widget_button_add(evas, _(" Online..."), "enlightenment/website", + _cb_web, cfdata, NULL); + e_widget_list_object_append(il, o, 1, 0, 0.5); + } e_widget_list_object_append(of, il, 1, 0, 0.0); { =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/conf_theme/e_mod_main.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- e_mod_main.h 31 Oct 2007 12:23:12 -0000 1.2 +++ e_mod_main.h 2 Jul 2008 11:29:14 -0000 1.3 @@ -7,9 +7,11 @@ #define E_TYPEDEFS 1 #include "e_int_config_theme.h" #include "e_int_config_theme_import.h" +#include "e_int_config_theme_web.h" #undef E_TYPEDEFS #include "e_int_config_theme.h" #include "e_int_config_theme_import.h" +#include "e_int_config_theme_web.h" EAPI extern E_Module_Api e_modapi; ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs