Re: Detect change with stack/ stackswitcher

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

 



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.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list




[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux