diff options
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/interface.c b/interface.c index 98aca9e5..3e7c9e12 100644 --- a/interface.c +++ b/interface.c @@ -30,6 +30,7 @@ GtkWidget* create_mainwin (void) { GtkWidget *mainwin; + GdkPixbuf *mainwin_icon_pixbuf; GtkWidget *vbox1; GtkWidget *menubar1; GtkWidget *menuitem1; @@ -97,6 +98,12 @@ create_mainwin (void) gtk_widget_set_events (mainwin, GDK_KEY_PRESS_MASK); gtk_window_set_title (GTK_WINDOW (mainwin), "DeaDBeeF"); gtk_window_set_default_size (GTK_WINDOW (mainwin), 500, 300); + mainwin_icon_pixbuf = create_pixbuf ("play_24.png"); + if (mainwin_icon_pixbuf) + { + gtk_window_set_icon (GTK_WINDOW (mainwin), mainwin_icon_pixbuf); + gdk_pixbuf_unref (mainwin_icon_pixbuf); + } gtk_window_set_icon_name (GTK_WINDOW (mainwin), "stock_media-play"); vbox1 = gtk_vbox_new (FALSE, 0); @@ -258,7 +265,7 @@ create_mainwin (void) GTK_WIDGET_UNSET_FLAGS (stopbtn, GTK_CAN_FOCUS); gtk_button_set_relief (GTK_BUTTON (stopbtn), GTK_RELIEF_NONE); - image7 = gtk_image_new_from_stock ("gtk-media-stop", GTK_ICON_SIZE_BUTTON); + image7 = create_pixmap (mainwin, "stop_24.png"); gtk_widget_show (image7); gtk_container_add (GTK_CONTAINER (stopbtn), image7); @@ -268,7 +275,7 @@ create_mainwin (void) GTK_WIDGET_UNSET_FLAGS (playbtn, GTK_CAN_FOCUS); gtk_button_set_relief (GTK_BUTTON (playbtn), GTK_RELIEF_NONE); - image2 = gtk_image_new_from_stock ("gtk-media-play", GTK_ICON_SIZE_BUTTON); + image2 = create_pixmap (mainwin, "play_24.png"); gtk_widget_show (image2); gtk_container_add (GTK_CONTAINER (playbtn), image2); @@ -278,7 +285,7 @@ create_mainwin (void) GTK_WIDGET_UNSET_FLAGS (pausebtn, GTK_CAN_FOCUS); gtk_button_set_relief (GTK_BUTTON (pausebtn), GTK_RELIEF_NONE); - image3 = gtk_image_new_from_stock ("gtk-media-pause", GTK_ICON_SIZE_BUTTON); + image3 = create_pixmap (mainwin, "pause_24.png"); gtk_widget_show (image3); gtk_container_add (GTK_CONTAINER (pausebtn), image3); @@ -288,7 +295,7 @@ create_mainwin (void) GTK_WIDGET_UNSET_FLAGS (prevbtn, GTK_CAN_FOCUS); gtk_button_set_relief (GTK_BUTTON (prevbtn), GTK_RELIEF_NONE); - image4 = gtk_image_new_from_stock ("gtk-media-previous", GTK_ICON_SIZE_BUTTON); + image4 = create_pixmap (mainwin, "prev_24.png"); gtk_widget_show (image4); gtk_container_add (GTK_CONTAINER (prevbtn), image4); @@ -298,7 +305,7 @@ create_mainwin (void) GTK_WIDGET_UNSET_FLAGS (nextbtn, GTK_CAN_FOCUS); gtk_button_set_relief (GTK_BUTTON (nextbtn), GTK_RELIEF_NONE); - image5 = gtk_image_new_from_stock ("gtk-media-next", GTK_ICON_SIZE_BUTTON); + image5 = create_pixmap (mainwin, "next_24.png"); gtk_widget_show (image5); gtk_container_add (GTK_CONTAINER (nextbtn), image5); @@ -308,7 +315,7 @@ create_mainwin (void) GTK_WIDGET_UNSET_FLAGS (playrand, GTK_CAN_FOCUS); gtk_button_set_relief (GTK_BUTTON (playrand), GTK_RELIEF_NONE); - image6 = gtk_image_new_from_stock ("gtk-missing-image", GTK_ICON_SIZE_BUTTON); + image6 = create_pixmap (mainwin, "random_24.png"); gtk_widget_show (image6); gtk_container_add (GTK_CONTAINER (playrand), image6); |