At Fri, 14 Mar 2014 12:18:49 +0900 Carsten Haitzler (The Rasterman) <ras...@rasterman.com> wrote:
> > On Thu, 13 Mar 2014 21:37:10 -0400 Robert Heller <hel...@deepsoft.com> said: > > > 'canvas' is the second argument to e_start_menu_realize_inwindow(), that is > > the background object. Maybe that is wrong? What is the correct way to get a > > Evas_Object pointer to use as the 'canvas' for creating elm widgets on? > > Somehow I need to get from the Evas pointer to the something to create elm > > widgets on. > > any object will do - it gets the canvas from the object. > OK, I *think* I know what is going on. The table widget does not itself have a backgroud -- it get that from its 'parent', (eg an elm_win widget or something). The thing here is that the table does not have an *elm* widget as a parent. Its 'parent' (such as it is) is a bare Edje Evas_Object. Basically I am creating a Edje Evas_Object and setting it up as a menu background: /* Create a window, and realize the menu in it. */ o = edje_object_add(e_comp_get(m->zone)->evas); evas_object_name_set(o, "start_menu->sw_bg_object"); evas_object_data_set(o, "e_start_menu", m); e_theme_edje_object_set(o, "base/theme/menus", "e/widgets/menu/default/background"); m->sw_bg_object = o; And then using this as the parent object when I create the table: /* Create the menu container, an Elm Table widget. */ o = elm_table_add(canvas); /* canvas IS m->sw_bg_object */ fprintf(stderr,"*** e_start_menu_realize_inwindow(): elm_table_add(%p) returns %p\n",canvas,o); m->container_object = o; And finally I am using edje_object_part_swallow() to swallow the elm_table into the background object. I'm guessing this is wrong. I need to do something different somewhere, but I am unsure what I should be doing. There isn't any good documentation on what is the proper way to use elm widgets with Enlightenment itself. The Enlightenment 'widgets' (and even more primitive e_<thing> things) leave lots to be desired and are poorly documented and are effectively depreciated -- eventually Enlightenment will move to use Elementary (elm) widgets, so there must be a proper way to do this. Or at least there is a contemplated way of doing this. What is it? -- Robert Heller -- 978-544-6933 / hel...@deepsoft.com Deepwoods Software -- http://www.deepsoft.com/ () ascii ribbon campaign -- against html e-mail /\ www.asciiribbon.org -- against proprietary attachments ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel