Search code examples
user-interfacegtk

How to connect multiple windows in gtk+?


I have created a window in gtk+ .in this window i am displaying some text and have button"next" through which i want to move to next window and my previous window should disappear.my new window should display something say,text. Can someone tell me how to implement this? I am new to gtk+.


Solution

  • It seems you want to use GtkAssistant Gtk2, Gtk3, which is a widget precisely for the kind of interaction you are looking for. Run gtk-demo in your system to check the example with the code. It is likely you have it installed.

    Also, you can check the code online in Gtk repository. (Check the version you want to view, either for GTK+2 or GTK+3).