diff --git a/mug/Makefile.am b/mug/Makefile.am index cae59581..43ab21ae 100644 --- a/mug/Makefile.am +++ b/mug/Makefile.am @@ -28,8 +28,9 @@ INCLUDES=-I${top_srcdir}/src $(GTK_CFLAGS) # don't use -Werror, as it might break on other compilers # use -Wno-unused-parameters, because some callbacks may not # really need all the params they get -AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement -AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter +AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter -Wdeclaration-after-statement +AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter -DICONDIR='"$(icondir)"' \ + -DICONDIR='"$(icondir)"' bin_PROGRAMS= \ mug @@ -53,7 +54,7 @@ icondir= \ $(datarootdir)/icons icon_DATA= \ - mug.png + mug.svg desktopdir= \ $(datarootdir)/applications diff --git a/mug/mug.cc b/mug/mug.cc index e86220a4..6a32a6ee 100644 --- a/mug/mug.cc +++ b/mug/mug.cc @@ -264,6 +264,9 @@ mug_shell (MugData *mugdata) gtk_window_set_default_size (GTK_WINDOW(mugdata->win), 700, 500); gtk_window_set_resizable (GTK_WINDOW(mugdata->win), TRUE); + gtk_window_set_icon_from_file (GTK_WINDOW(mugdata->win), + ICONDIR "/mug.svg", NULL); + return mugdata->win; } diff --git a/mug/mug.png b/mug/mug.png deleted file mode 100644 index 65963ac5..00000000 Binary files a/mug/mug.png and /dev/null differ diff --git a/mug/mug.svg b/mug/mug.svg new file mode 100644 index 00000000..926deb5b --- /dev/null +++ b/mug/mug.svg @@ -0,0 +1,510 @@ + + + + + + + + image/svg+xml + + + + Sheikh Tuhin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +