Re: Splash screen border
- From: Gregory Merchan <merchan phys lsu edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: Splash screen border
- Date: Thu, 25 Sep 2003 17:48:25 -0500
On Thu, Sep 25, 2003 at 10:03:46PM +0200, Laurent Houdusse wrote:
Hi!
I'm a newbie with GTK
So i try to create a splashscreen white background with a thin border black
(1 pixel)
It's Ok for the background but i don't know how to do for the thin
border????
See my code:
It's missing a the most important line:
gtk_window_set_type_hint (GTK_WINDOW (window),
GDK_WINDOW_TYPE_HINT_SPLASHSCREEN);
Use that and the code should be as simple as:
GtkWidget *
make_a_splashscreen_to_annoy_the_user (void)
{
GtkWidget *window;
GtkWidget *image;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_type_hint (GTK_WINDOW (window),
GDK_WINDOW_TYPE_HINT_SPLASHSCREEN);
image = gtk_image_new_from_file (PATH_TO_YOUR_PROPERLY_SIZED_IMAGE);
gtk_container_add (GTK_CONTAINER (window), image);
gtk_widget_show (image);
return window;
}
Cheers,
Greg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]