Re: Detect change with stack/ stackswitcher



On Fri, 2016-05-27 at 14:32 +0530, Jay Aurabind wrote:
Hi,

I have added a stackswitcher to the headerbar, and I also have few
more button on the header bar. Depending on the stack which user
selected, I'd like to make changes to the headerbar. I cant seem to
find a way to do it.



What is your main problem? To make the actual changes, or to get a
signal when stack is switched? For the later connecting to
"notify::visible-child" of GtkStack should work, because GtkStack has
property visible-child, see https://developer.gnome.org/gtk3/stable/Gtk
Stack.html#GtkStack.properties

What you did not tell us: Which GTK version, which OS, which
programming language -- so I am not too surprised that nobody replied.
And when language is a well known one, it may be a good idea to provide
full code of a minimal example. (Maybe for less known language too, I
would like to see how the code looks in Chapel, Rust or Go.) I may
provide a Nim example if that helps. For making the changes in the
header bar, I have no idea, I am not sure what you exactly intent.


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