splash screen?
| From: | Michael Dransfield | Date: | Wed, 24 Apr 2002 20:28:38 +0000 |
| Subject: | splash screen? | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-1833@lists.php.net to get a copy of this message | ||
I am trying to build a splash screen for my application
I have the following code at the top of my application
$pix = gdk::pixmap_create_from_xpm($tf->window, null,
'pixmaps/splash.xpm');
$splash =&new GtkWindow();
$splash->set_title("Welcome");
//$splashf = $gx->get_widget("splash_frame");
$image = &new GtkPixmap($pix[0], $pix[1]);
$label =& new GtkLabel("Please wait... ");
$hbox =& new GtkHBox();
$hbox->pack_start($image);
$hbox->pack_start($label);
$hbox->show();
$splash->add($hbox);
$image->show();
$splash->show();
then at the bottom of the application i have
$mainwin = $gx->get_widget("main_window");
$mainwin->show();
$splash->destroy();
$gx->signal_autoconnect();
Gtk::main();
The problem is the picture only gets displayed when gtk::main() is
called.
Is there a way i can show the picture before calling gtk::main()?