On Fri, Jan 18, 2013 at 3:01 PM, Henrique Dante <hda...@profusion.mobi> wrote: > Looks like the text gave you the wrong hint. I'll send a patch later. > The idea is the following: > > ELM_EXTERNAL_MENU=1: use canonical dbus menu > no ELM_EXTERNAL_MENU: embed menu in the window > > On Fri, Jan 18, 2013 at 2:29 PM, Daniel Juyung Seo <seojuyu...@gmail.com> > wrote: >> How can I use this main menu? >> I tried elementary_test main menu with: >> ELM_EXTERNAL_MENU=1 elementary_test >> >> and just got: >> Note: this example requires support from ...
Hey SeoZ, The menu should be visible in the application window or in e17 / unity. are you using e17 head ? Are you activating the module ? Is it instantiated in any shell ? Talking to zehortigoza and hdante we found an issue when the e17 module is loaded but not instantiated that could lead to menu not visible. It will be solved. But I'm not sure if it was the issue you found. Regards >> >> Daniel Juyung Seo (SeoZ) >> >> >> On Sat, Jan 19, 2013 at 12:56 AM, Enlightenment SVN >> <no-re...@enlightenment.org> wrote: >>> Log: >>> Fix main menu coding style >>> >>> Patch by: Henrique Dante de Almeida <hda...@profusion.mobi> >>> >>> >>> >>> Author: bdilly >>> Date: 2013-01-18 07:56:25 -0800 (Fri, 18 Jan 2013) >>> New Revision: 82985 >>> Trac: http://trac.enlightenment.org/e/changeset/82985 >>> >>> Modified: >>> trunk/elementary/data/themes/widgets/hover.edc >>> trunk/elementary/data/themes/widgets/menu.edc >>> trunk/elementary/data/themes/widgets/win.edc >>> trunk/elementary/src/lib/elm_dbus_menu.c >>> trunk/elementary/src/lib/elm_menu.c trunk/elementary/src/lib/elm_win.c >>> >>> Modified: trunk/elementary/data/themes/widgets/hover.edc >>> =================================================================== >>> --- trunk/elementary/data/themes/widgets/hover.edc 2013-01-18 15:45:49 >>> UTC (rev 82984) >>> +++ trunk/elementary/data/themes/widgets/hover.edc 2013-01-18 15:56:25 >>> UTC (rev 82985) >>> @@ -899,7 +899,7 @@ >>> description { state: "default" 0.0; >>> visible: 0; >>> fixed: 1 1; >>> - } >>> + } >>> } >>> part { name: "elm.swallow.size"; >>> type: SWALLOW; >>> @@ -1005,8 +1005,8 @@ >>> image { >>> normal: "bt_dis_base.png"; >>> border: 4 4 4 4; >>> + middle: SOLID; >>> } >>> - image.middle: SOLID; >>> } >>> description { state: "visible" 0.0; >>> inherit: "default" 0.0; >>> >>> Modified: trunk/elementary/data/themes/widgets/menu.edc >>> =================================================================== >>> --- trunk/elementary/data/themes/widgets/menu.edc 2013-01-18 15:45:49 >>> UTC (rev 82984) >>> +++ trunk/elementary/data/themes/widgets/menu.edc 2013-01-18 15:56:25 >>> UTC (rev 82985) >>> @@ -773,8 +773,8 @@ >>> image { >>> normal: "bt_base2.png"; >>> border: 7 7 7 7; >>> + middle: SOLID; >>> } >>> - image.middle: SOLID; >>> } >>> description { state: "visible" 0.0; >>> inherit: "default" 0.0; >>> @@ -783,8 +783,10 @@ >>> description { state: "clicked" 0.0; >>> inherit: "default" 0.0; >>> inherit: "visible" 0.0; >>> - image.normal: "bt_base1.png"; >>> - image.middle: SOLID; >>> + image { >>> + normal: "bt_base1.png"; >>> + middle: SOLID; >>> + } >>> } >>> description { state: "disabled" 0.0; >>> inherit: "default" 0.0; >>> @@ -797,8 +799,8 @@ >>> image { >>> normal: "bt_dis_base.png"; >>> border: 4 4 4 4; >>> + middle: SOLID; >>> } >>> - image.middle: SOLID; >>> } >>> description { state: "disabled" 0.0; >>> inherit: "default" 0.0; >>> >>> Modified: trunk/elementary/data/themes/widgets/win.edc >>> =================================================================== >>> --- trunk/elementary/data/themes/widgets/win.edc 2013-01-18 15:45:49 >>> UTC (rev 82984) >>> +++ trunk/elementary/data/themes/widgets/win.edc 2013-01-18 15:56:25 >>> UTC (rev 82985) >>> @@ -254,14 +254,12 @@ >>> align: 0.5 0; >>> fixed: 1 1; >>> } >>> - >>> description { state: "visible" 0.0; >>> inherit: "default" 0.0; >>> visible: 1; >>> fixed: 0 1; >>> } >>> } >>> - >>> part { type: SWALLOW; name: "elm.swallow.contents"; >>> description { state: "default" 0.0; >>> rel1 { >>> >>> Modified: trunk/elementary/src/lib/elm_dbus_menu.c >>> =================================================================== >>> --- trunk/elementary/src/lib/elm_dbus_menu.c 2013-01-18 15:45:49 UTC >>> (rev 82984) >>> +++ trunk/elementary/src/lib/elm_dbus_menu.c 2013-01-18 15:56:25 UTC >>> (rev 82985) >>> @@ -50,9 +50,10 @@ >>> ELM_DBUS_SIGNAL_ITEM_ACTIVATION_REQUESTED, >>> }; >>> >>> -typedef struct _Callback_Data { >>> - void (*result_cb)(Eina_Bool, void *); >>> - void *data; >>> +typedef struct _Callback_Data >>> +{ >>> + void (*result_cb)(Eina_Bool, void *); >>> + void *data; >>> } Callback_Data; >>> >>> static Eina_Bool >>> @@ -79,12 +80,12 @@ >>> >>> static void >>> _app_register_cb(void *data, const EDBus_Message *msg, >>> - EDBus_Pending *pending EINA_UNUSED) >>> + EDBus_Pending *pending EINA_UNUSED) >>> { >>> - Callback_Data *cd = data; >>> + Callback_Data *cd = data; >>> >>> - cd->result_cb(!edbus_message_error_get(msg, NULL, NULL), cd->data); >>> - free(cd); >>> + cd->result_cb(!edbus_message_error_get(msg, NULL, NULL), cd->data); >>> + free(cd); >>> } >>> >>> static Eina_Bool >>> @@ -891,7 +892,7 @@ >>> >>> void >>> _elm_dbus_menu_app_menu_register(Ecore_X_Window xid, Eo *obj, >>> - void (*result_cb)(Eina_Bool, void *), void >>> *data) >>> + void (*result_cb)(Eina_Bool, void *), >>> void *data) >>> { >>> EDBus_Message *msg; >>> const char *obj_path; >>> @@ -915,7 +916,7 @@ >>> edbus_message_arguments_append(msg, "uo", (unsigned)xid, >>> obj_path); >>> edbus_connection_send(sd->dbus_menu->bus, msg, _app_register_cb, >>> - cd, -1); >>> + cd, -1); >>> sd->dbus_menu->xid = xid; >>> } >>> >>> >>> Modified: trunk/elementary/src/lib/elm_menu.c >>> =================================================================== >>> --- trunk/elementary/src/lib/elm_menu.c 2013-01-18 15:45:49 UTC (rev 82984) >>> +++ trunk/elementary/src/lib/elm_menu.c 2013-01-18 15:56:25 UTC (rev 82985) >>> @@ -134,7 +134,7 @@ >>> { >>> Eina_List *l; >>> Elm_Menu_Item *item; >>> - Evas_Coord x_p, y_p, w_p, h_p, x2, y2, w2, h2, bw, bh, bx, by; >>> + Evas_Coord x_p, y_p, w_p, h_p, x2, y2, w2, h2, bw, bh; >>> Elm_Widget_Smart_Data *hover; >>> >>> ELM_MENU_DATA_GET(obj, sd); >>> @@ -166,10 +166,10 @@ >>> elm_hover_target_set(sd->hv, sd->location); >>> >>> hover = eo_data_get(sd->hv, ELM_OBJ_WIDGET_CLASS); >>> - edje_object_part_geometry_get(hover->resize_obj, "bottom", &bx, &by, >>> &bw, &bh); >>> + edje_object_part_geometry_get(hover->resize_obj, "bottom", NULL, >>> + NULL, &bw, &bh); >>> evas_object_size_hint_min_set(obj, bw, bh); >>> >>> - >>> EINA_LIST_FOREACH(sd->items, l, item) >>> if (item->submenu.open) _submenu_sizing_eval(item); >>> } >>> >>> Modified: trunk/elementary/src/lib/elm_win.c >>> =================================================================== >>> --- trunk/elementary/src/lib/elm_win.c 2013-01-18 15:45:49 UTC (rev 82984) >>> +++ trunk/elementary/src/lib/elm_win.c 2013-01-18 15:56:25 UTC (rev 82985) >>> @@ -1415,9 +1415,9 @@ >>> Elm_Win_Smart_Data *sd = _pd; >>> >>> evas_object_event_callback_del_full(sd->layout, >>> - EVAS_CALLBACK_CHANGED_SIZE_HINTS, >>> - >>> _elm_win_on_resize_obj_changed_size_hints, >>> - obj); >>> + EVAS_CALLBACK_CHANGED_SIZE_HINTS, >>> + >>> _elm_win_on_resize_obj_changed_size_hints, >>> + obj); >>> evas_object_del(sd->box); >>> evas_object_del(sd->layout); >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and >>> much more. Get web development skills now with LearnDevNow - >>> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. >>> SALE $99.99 this month only -- learn more at: >>> http://p.sf.net/sfu/learnmore_122812 >>> _______________________________________________ >>> enlightenment-svn mailing list >>> enlightenment-...@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn >> >> ------------------------------------------------------------------------------ >> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and >> much more. Get web development skills now with LearnDevNow - >> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. >> SALE $99.99 this month only -- learn more at: >> http://p.sf.net/sfu/learnmore_122812 >> _______________________________________________ >> enlightenment-devel mailing list >> enlightenment-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > ------------------------------------------------------------------------------ > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and > much more. Get web development skills now with LearnDevNow - > 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122812 > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Bruno Dilly Lead Developer ProFUSION embedded systems http://profusion.mobi ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel