That does the trick. Good suggestion.
On Mon, Dec 5, 2016 at 12:58 PM, Stephen Houston
wrote:
> Why not use the selected callback ?
>
> On Mon, Dec 5, 2016, 10:34 AM Jeff Hoogland
> wrote:
>
> > Anything I can do to help pin this down? As I mentioned this worked as
> > expected with EFL 1.15
>
Why not use the selected callback ?
On Mon, Dec 5, 2016, 10:34 AM Jeff Hoogland wrote:
> Anything I can do to help pin this down? As I mentioned this worked as
> expected with EFL 1.15
>
> On Dec 5, 2016 9:26 AM, "Kai Huuhko" wrote:
>
> > I'm guessing the "selected" function inside toolbar code
Anything I can do to help pin this down? As I mentioned this worked as
expected with EFL 1.15
On Dec 5, 2016 9:26 AM, "Kai Huuhko" wrote:
> I'm guessing the "selected" function inside toolbar code is being
> called **after** the "clicked" callback is processed, so what you get
> is the item bein
I'm guessing the "selected" function inside toolbar code is being
called **after** the "clicked" callback is processed, so what you get
is the item being still unselected when your callback is called and
therefore setting it unselected does nothing. But this needs
verification.
2016-12-05 16:40 GM
That change makes item appear as a proper toolbar item object (and gets rid
of the error message) but item.selected_set(False) is still failing to
unselect the item that is clicked on.
On Mon, Dec 5, 2016 at 2:21 AM, Kai Huuhko wrote:
> This looks like an issue in EFL, possibly fallout from movi
This looks like an issue in EFL, possibly fallout from moving to
Eo/EFL events. The callback is being processed before selected item is
changed, so you get None (NULL in C) when
elm_toolbar_item_selected_get() is called within the callback.
The item object should be passed to clicked callback as a
Source code: https://github.com/JeffHoogland/ePad/blob/master/epad#L1176
Under EFL 1.15 this code worked fine. It essentially toggled of a toolbar
button after it was clicked so long as it was not a dropdown menu.
Under EFL 1.18 however the item_selected_get function keeps returning a
none type: