LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   window handling and signals in GTK (https://www.linuxquestions.org/questions/programming-9/window-handling-and-signals-in-gtk-555331/)

ronald-be 05-20-2007 06:52 AM

window handling and signals in GTK
 
Hello,

Just started to learn GTK. When I want several windows in a program, can I define which is parent and which is child and how to do? How do I delete the subsequent windows? Do I need g_signal_connect to free the memory they used and which function do I need to connect to? When I connect the main window to gtk_main_quit, bypassing delete_event and without returning FALSE is the memory it used also freed or not (the function delete_event calls gtk_main_quit and then returns FALSE) ?

greetings,

Ronald

Mara 05-20-2007 02:24 PM

Quote:

Originally Posted by ronald-be
Hello,

Just started to learn GTK. When I want several windows in a program, can I define which is parent and which is child and how to do?

When creating them. In gtkmm (GTK in C++) you pass it in a constructor.

Quote:

How do I delete the subsequent windows?
If I remember correctly, it's automatic.

Quote:

Do I need g_signal_connect to free the memory they used and which function do I need to connect to?
You may do it this way, but it's not necessary (IMO).


All times are GMT -5. The time now is 07:48 AM.