2 questions regarding a perl daemon with a GTK interface
- From: gfricke hushmail com
- To: gtk-perl-list gnome org
- Subject: 2 questions regarding a perl daemon with a GTK interface
- Date: Wed, 9 May 2001 23:52:30 -0500 (EDT)
All,
I recently used glade to build my first perl program with a GUI interface.
I have come across two problems that I haven't been able to figure out.
My GTK experience is very minimal and my perl expertise is limited to just
a few programs.
Problem 1 - How do I send GTK to the background so that I can run a daemon
loop listening for remote connections, yet having the GTK portion of the
program still sending all the actions/signals to thier appropriate functions/handlers?
If i enter my daemon loop after the Gtk->mainl command the loop never executes.
Likewise if I insert the daemon loop before the Gtk->main call the window
never appears.
Problem 2 - How can I bind the window manager's destroy button "X" at the
top right corner of the window to my exit function? My exit button currently
displays an exit dialog window before exiting the application, and I would
like the same dialog when the user clicks on the "X" at the top of the window.
I tried using the delete_event signal handler with a call to my exit
function, however, this method resulted in destroying the main window and
then spawning my exit dialog window.
Thanks in advance for any help.
Greg
Free, encrypted, secure Web-based email at www.hushmail.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]