Re: Splash Screen
- From: Maciej Katafiasz <ml mathrick org>
- To: Daniel Ferreira Monteiro Alves <dalves inf ufg br>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Splash Screen
- Date: Sat, 23 Apr 2005 12:43:22 +0200
Dnia 22-04-2005, pią o godzinie 20:28 -0300, Daniel Ferreira Monteiro
How can I create a splash screen and and swap it with the Main Window ?
You don't "swap" it, splash is just another window of your application
that is shown before main window. Simple way to get splash is to just:
GtkWidget *splash = gtk_window_new(GTK_WINDOW_TOPLEVEL);
Don't try any dirty tricks like setting override-redirect on window, as
it keeps user from moving splash away if she wishes so, breaks
vdesktops, and might expose you to stream of not-so-friendly
consciousness from angry users :).
Also, don't gtk_window_set_keep_above() it, or if you do, then either
don't hide decorations on splash window (like Evolution used to do), or
make sure that click anywhere on splash area will hide it. There's
nothing worse than an application which is slow enough to need splash,
that insists on showing that splash no matter what, preventing users
from working in the meantime.
Maciej Katafiasz <ml mathrick org>
] [Thread Prev