Re: Splash Screen

Dnia 22-04-2005, pią o godzinie 20:28 -0300, Daniel Ferreira Monteiro
Alves napisał:
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);
gtk_window_set_decorated(splash, FALSE);

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>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]