Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Php-gtk Destroy Window, Destroying windows in PHP-GTK
DS2K3
post Jan 9 2005, 04:37 PM
Post #1


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



OK, I have a small PHP-GTK App that creates a new window when a button is clicked. When another button is clicked, I want that window to go away. However, I cant find a fucntion to do it...

I tried

$window -> close();

and also

$window -> destroy();

I dont want to use gtk::main_quit(); because that will kill the whole thing. Any ideas?

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 1)
Hemant
post Jan 10 2005, 07:10 AM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Never tried PHP-GTK,but within the callback of second button,you should get the parent of the button(Which is the window,you want to destroy) and try using close();


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 14th December 2017 - 12:07 PM