2005-09-21 22:52:37 -07:00
|
|
|
#include "e.h"
|
|
|
|
|
|
|
|
/* local subsystem functions */
|
2012-11-19 17:41:33 -08:00
|
|
|
static void
|
2015-03-18 15:09:09 -07:00
|
|
|
_cb_settings_theme(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
|
2012-11-19 17:41:33 -08:00
|
|
|
{
|
2014-11-02 18:35:13 -08:00
|
|
|
e_configure_registry_call("appearance/theme", NULL, NULL);
|
2012-11-19 17:41:33 -08:00
|
|
|
}
|
2013-01-11 02:34:29 -08:00
|
|
|
|
2005-09-21 22:52:37 -07:00
|
|
|
/* local subsystem globals */
|
|
|
|
|
|
|
|
/* externally accessible functions */
|
|
|
|
|
2006-01-07 02:39:46 -08:00
|
|
|
EAPI E_Theme_About *
|
2015-03-18 08:48:46 -07:00
|
|
|
e_theme_about_new(void)
|
2005-09-21 22:52:37 -07:00
|
|
|
{
|
2008-10-19 23:50:57 -07:00
|
|
|
E_Obj_Dialog *od;
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2015-03-18 08:48:46 -07:00
|
|
|
od = e_obj_dialog_new(_("About Theme"), "E", "_theme_about");
|
2008-10-19 23:50:57 -07:00
|
|
|
if (!od) return NULL;
|
|
|
|
e_obj_dialog_obj_theme_set(od, "base/theme", "e/theme/about");
|
|
|
|
e_obj_dialog_obj_part_text_set(od, "e.text.label", _("Close"));
|
2012-11-19 17:41:33 -08:00
|
|
|
e_obj_dialog_obj_part_text_set(od, "e.text.theme", _("Select Theme"));
|
2013-01-11 02:34:29 -08:00
|
|
|
edje_object_signal_callback_add(od->bg_object,
|
2012-11-19 17:41:33 -08:00
|
|
|
"e,action,settings,theme", "",
|
|
|
|
_cb_settings_theme, od);
|
2008-10-19 23:50:57 -07:00
|
|
|
return (E_Theme_About *)od;
|
2005-09-21 22:52:37 -07:00
|
|
|
}
|
|
|
|
|
2006-01-07 02:39:46 -08:00
|
|
|
EAPI void
|
2005-09-21 22:52:37 -07:00
|
|
|
e_theme_about_show(E_Theme_About *about)
|
|
|
|
{
|
2008-10-19 23:50:57 -07:00
|
|
|
e_obj_dialog_show((E_Obj_Dialog *)about);
|
2009-03-04 15:53:28 -08:00
|
|
|
e_obj_dialog_icon_set((E_Obj_Dialog *)about, "preferences-desktop-theme");
|
2008-07-08 12:41:42 -07:00
|
|
|
}
|
2013-01-11 02:34:29 -08:00
|
|
|
|