RE: [PHP-GTK] Managing Dialogs - Newbie Needs Guidence!

From: Date: Thu, 18 Jul 2002 15:31:55 +0000
Subject: RE: [PHP-GTK] Managing Dialogs - Newbie Needs Guidence!
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2263@lists.php.net to get a copy of this message
Rich, Thx for your reply. My close_window function is this: function close_window($widget){ $window = $widget->get_toplevel(); $window->hide(); } I think that I need to implement a nested gtk::main() (I had previously thunk you coulod only have 1.) I did find some examples in the archive, but appreciate any additional advice. Is using nested gtk::main() calls a common way to acheive this type of result? Thx, Mark -----Original Message----- From: Rich Payne [mailto:rdp@talisman.mv.com] Sent: Thursday, July 18, 2002 10:21 PM To: Mark Lopus Cc: php-gtk-general@lists.php.net Subject: Re: [PHP-GTK] Managing Dialogs - Newbie Needs Guidence! On Thu, 18 Jul 2002, Mark Lopus wrote: [snip, explination of what Mark wants to do] > 5) BUT!!!!!.....if all the login info is correct, I want the do_login > function to: > > a) set the GLOBAL variables $userisloggedin to "YES" and $usersfirstname to > "Joe" (as per the query result.) This seems to work. OK. > b) CLOSE the login_dialog dialog returning the user to the main application > window with the global variables set. But I can't seem to close the > login_dialog without shutting the whole applciation down. just destroy the dialog itself. something like... if (login_good) { $userislogged = TRUE; $usersfirstname = "Joe"; // or whatever $dialog->destroy(); // or if this function is in the dialog, $this->destroy() } > How do we handle closing the login_dialog without killing the main > applciation? Do I need to unrealize somthing? Am I misusing my close_window > function? Can you post the close_window function? Are you using nested gtk::main() calls (one in the main app, one in the dialog)? > Sorry if this is not a clear question...Any examples, insight or conceptual > pointers are greatly appreciated! Usually the best thing is to post your snippets of code.3 --rdp -- Rich Payne http://talisman.mv.com

« previous php.gtk.general (#2263) next »