LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-20-2007, 06:52 AM   #1
ronald-be
Member
 
Registered: Aug 2004
Location: Belgium
Distribution: debian 5.02
Posts: 73

Rep: Reputation: 15
Question 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
 
Old 05-20-2007, 02:24 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Glade signals in GTK+ santhosh.linux Programming 2 01-04-2006 07:37 AM
GTK additional arguments for signals bendeco13 Programming 2 11-09-2005 12:04 AM
gtk signals and callback functions samel_tvom Programming 7 10-26-2005 05:03 PM
handling ctrl D and signals chimpu Programming 1 09-19-2005 08:43 AM
file handling in c++ gtk+ alisha Programming 1 04-13-2004 12:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration