[easytag] Use themed icon for main window icon
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Use themed icon for main window icon
- Date: Tue, 4 Dec 2012 18:20:21 +0000 (UTC)
commit 0731c27a33526d6589a1fe16f1adcbe66385ba58
Author: David King <amigadave amigadave com>
Date: Tue Dec 4 18:07:51 2012 +0000
Use themed icon for main window icon
Makefile.am | 1 -
pixmaps/EasyTAG_icon.xpm | 1240 ----------------------------------------------
src/easytag.c | 15 +-
3 files changed, 1 insertions(+), 1255 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 1c44943..81491c4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -133,7 +133,6 @@ pixmaps = \
pixmaps/closed_folder_unreadable.xpm \
pixmaps/closed_folder.xpm \
pixmaps/EasyTAG.ico \
- pixmaps/EasyTAG_icon.xpm \
pixmaps/EasyTAG2.ico \
pixmaps/EasyTAG2.xpm \
pixmaps/first_letter_uppercase.xpm \
diff --git a/src/easytag.c b/src/easytag.c
index 7bb92fb..b0f1969 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -62,8 +62,6 @@
#include <sys/wait.h>
#endif
-#include "../pixmaps/EasyTAG_icon.xpm"
-
/****************
* Declarations *
@@ -357,18 +355,7 @@ int main (int argc, char *argv[])
/* Minimised window icon */
gtk_widget_realize(MainWindow);
- pixbuf = gdk_pixbuf_new_from_xpm_data(EasyTAG_icon_xpm);
- gtk_window_set_icon(GTK_WINDOW (MainWindow),pixbuf);
- /*pixbuf = gdk_pixbuf_new_from_file(PACKAGE_DATA_DIR"/EasyTAG_icon.png",&error);
- if (pixbuf)
- {
- gtk_window_set_icon(GTK_WINDOW(MainWindow),pixbuf);
- g_object_unref(G_OBJECT(pixbuf));
- }else
- {
- Log_Print(LOG_ERROR,error->message);
- g_error_free(error);
- }*/
+ gtk_window_set_icon_name (GTK_WINDOW (MainWindow), PACKAGE_TARNAME);
/* MainVBox for Menu bar + Tool bar + "Browser Area & FileArea & TagArea" + Log Area + "Status bar & Progress bar" */
MainVBox = gtk_box_new(GTK_ORIENTATION_VERTICAL,0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]