Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Can't control selected Stack Child using :selected #1116

Open
3 tasks done
Faervan opened this issue Jun 10, 2024 · 0 comments · May be fixed by #1119
Open
3 tasks done

[BUG] Can't control selected Stack Child using :selected #1116

Faervan opened this issue Jun 10, 2024 · 0 comments · May be fixed by #1119
Labels
bug Something isn't working

Comments

@Faervan
Copy link

Faervan commented Jun 10, 2024

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

I can't get the stack widget to work. It always only shows the first defined child, instead of using the index provided by selected.
eww logs gives a GtkError:

(eww:869899): Gtk-WARNING **: 21:36:31.593: Child name 5 not found in GtkStack

Reproducing the issue

; Shows a instead of f
(stack :selected 5 :transition "none" :same-size false
          (label :class "icon" :text "a")
          (label :class "icon" :text "b")
          (label :class "icon" :text "c")
          (label :class "icon" :text "d")
          (label :class "icon" :text "e")
          (label :class "icon" :text "f")
          (label :class "icon" :text "g")
          (label :class "icon" :text "h"))

Expected behaviour

A widget that displays one of its children at a time
selected: int index of child which should be shown

Should show one child element, depending on the int given to :selected

Additional context

No response

@Faervan Faervan added the bug Something isn't working label Jun 10, 2024
@ovalkonia ovalkonia linked a pull request Jun 18, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant