Re: gtk-3.16: GtkStackSideBar & GtkStack - Change page from code (No user interaction)



Hi Ben,

Thank you. This works for me.
I attach  two examples (gtk & gtkmm) with a button that do this.




2015-07-30 16:13 GMT+02:00 Ben <iofelben gmail com>:

You can use gtk_stack_set_visible_child()

https://developer.gnome.org/gtk3/stable/GtkStack.html#gtk-stack-set-vis
ible-child

On Wed, 2015-07-29 at 19:43 +0200, Alfredo Pons wrote:
The transtions between GtkStacks are very beautifuls.
Can I change pages from the source code without user interaction?

The idea is set hide the GtkStackSideBar and change pages from source
code when some conditions are met.

Than you.
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list

Attachment: TestStack.c
Description: Text Data

Attachment: TestStack_C++.cpp
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]