aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-01-22 14:39:53 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-01-22 14:39:53 -0500
commitd309a9c39bf67d9e237ffedb604eced2afb110fd (patch)
tree0e27b66ffc5a3f53ffc9661681784077d9241e44
parentuse normal emotion function to determine playability of e_thumb files (diff)
downloadenlightenment-d309a9c39bf67d9e237ffedb604eced2afb110fd.tar.gz
add gadget type to gadget menu header for internal gadgets
-rw-r--r--src/bin/e_gadget.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index db6d550fc..10ddda0d6 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -1302,6 +1302,14 @@ _gadget_act_menu(E_Object *obj, const char *params EINA_UNUSED, E_Binding_Event_
_gadget_popups_clear(zgc);
zgc->menu = e_menu_new();
+ if (zgc->type)
+ {
+ char buf[1024];
+
+ strncpy(buf, zgc->type, sizeof(buf) - 1);
+ buf[0] = toupper(buf[0]);
+ e_menu_title_set(zgc->menu, buf);
+ }
evas_object_smart_callback_call(g, "gadget_menu", zgc->menu);
if (zgc->configure)
{