Thread: Gtk window

  1. #1
    Registered User
    Join Date
    Dec 2016
    Posts
    1

    Gtk window

    Hi. I'm new to GTK programming and i started developing an app, but i got stuck at the point of moving from a window to another.
    Precisely, a have a main window, and after the user clicks on a button, it should appear another window, and the other should dissapear.
    I would like to know how to do that.. i searched on the web a lot but i couldn't find any good resources.
    Thanks

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    I'm not an expert on GTK, but you should be okay using "gtk_widget_destroy" on the main window and create/show the secondary window. Just be sure you're not connecting the exit function to the destruction of the first window.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Changing the window frame styles causes the window to disappear
    By sethjackson in forum Windows Programming
    Replies: 2
    Last Post: 08-12-2010, 04:43 PM
  2. Access Function in Child Window From Parent Window
    By Welder in forum Windows Programming
    Replies: 3
    Last Post: 05-20-2008, 03:06 AM
  3. parent window minimizing on child window destruction
    By Yarin in forum Windows Programming
    Replies: 1
    Last Post: 03-02-2008, 09:34 AM
  4. Connecting Dialog window to main window
    By vopo in forum Windows Programming
    Replies: 1
    Last Post: 11-26-2007, 07:55 PM
  5. Retrieving the window handle of a window a control resides in
    By -leech- in forum Windows Programming
    Replies: 7
    Last Post: 08-09-2003, 08:55 AM

Tags for this Thread