tazweb rev 8

main.c add tazweb window icon
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 04 16:53:14 2011 +0200 (2011-04-04)
parents 91b4ac7a72a9
children 2354b9f50e92
files src/main.c
line diff
     1.1 --- a/src/main.c	Mon Apr 04 02:54:35 2011 +0200
     1.2 +++ b/src/main.c	Mon Apr 04 16:53:14 2011 +0200
     1.3 @@ -69,12 +69,23 @@
     1.4      return scrolled_window;
     1.5  }
     1.6  
     1.7 +/* Create an icon */
     1.8 +static GdkPixbuf *create_pixbuf (const gchar * image)
     1.9 +{
    1.10 +   GdkPixbuf *pixbuf;
    1.11 +   pixbuf = gdk_pixbuf_new_from_file (image, NULL);
    1.12 +
    1.13 +   return pixbuf;
    1.14 +}
    1.15 +
    1.16  static GtkWidget*
    1.17  create_window ()
    1.18  {
    1.19      GtkWidget* window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    1.20      /* Default tazweb window size ratio to 3/4 ?? --> 720, 540*/
    1.21      gtk_window_set_default_size (GTK_WINDOW (window), 800, 600);
    1.22 +    gtk_window_set_icon (GTK_WINDOW(window),
    1.23 +		create_pixbuf ("/usr/share/pixmaps/tazweb.png"));
    1.24      gtk_widget_set_name (window, "TazWeb");
    1.25      g_signal_connect (window, "destroy", G_CALLBACK (destroy_cb), NULL);
    1.26