add new about theme signals/text capabilities as per email - change 1

string - "Theme" -> "About Theme"



SVN revision: 79461
This commit is contained in:
Carsten Haitzler 2012-11-20 01:41:33 +00:00
parent 6e607e133b
commit 7e8768ad5d
2 changed files with 13 additions and 3 deletions

View File

@ -235,7 +235,7 @@ e_int_menus_main_new(void)
e_menu_item_callback_set(mi, _e_int_menus_main_about, NULL);
mi = e_menu_item_new(subm);
e_menu_item_label_set(mi, _("Theme"));
e_menu_item_label_set(mi, _("About Theme"));
e_util_menu_item_theme_icon_set(mi, "preferences-desktop-theme");
e_menu_item_callback_set(mi, _e_int_menus_themes_about, NULL);

View File

@ -1,7 +1,14 @@
#include "e.h"
/* local subsystem functions */
static void
_cb_settings_theme(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__)
{
E_Obj_Dialog *od = data;
e_configure_registry_call("appearance/theme", od->win->container, NULL);
}
/* local subsystem globals */
/* externally accessible functions */
@ -15,7 +22,10 @@ e_theme_about_new(E_Container *con)
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"));
e_obj_dialog_obj_part_text_set(od, "e.text.theme", _("Select Theme"));
edje_object_signal_callback_add(od->bg_object,
"e,action,settings,theme", "",
_cb_settings_theme, od);
return (E_Theme_About *)od;
}