Splash screen border



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:
  GtkWidget *window;
  GtkStyle *style;
  GdkColor color;

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_decorated (GTK_WINDOW(window),FALSE);
  gtk_window_set_default_size (GTK_WINDOW(window),500,300);
  gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);

  style = gtk_style_copy (gtk_widget_get_default_style ());
  color.red = 0xffff;
  color.blue = 0xffff;
  color.green = 0xffff;
  style->bg[GTK_STATE_NORMAL] = color;
  gtk_widget_set_style (window, style);

  gtk_widget_show_all (window);

  gtk_main ();





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