From dc0c3cc699c1b91fbf3c9724f5039f3bd1ed0d95 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 19 Feb 2016 23:59:14 +0100 Subject: Introduce Tray Icon for Profanity Add tray icon for profanity based on Gtk StatusIcon. Different icon is displayed in case the user has unread messages. --- src/main.c | 4 +++ src/proIcon.png | Bin 0 -> 102058 bytes src/proIconMsg.png | Bin 0 -> 56159 bytes src/profanity.c | 6 ++++ src/tray.c | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++ src/tray.h | 41 +++++++++++++++++++++++++++ 6 files changed, 132 insertions(+) create mode 100644 src/proIcon.png create mode 100644 src/proIconMsg.png create mode 100644 src/tray.c create mode 100644 src/tray.h (limited to 'src') diff --git a/src/main.c b/src/main.c index ec745ff5..b863db96 100644 --- a/src/main.c +++ b/src/main.c @@ -34,8 +34,10 @@ #include "config.h" +#include #include #include +#include #ifdef HAVE_GIT_VERSION #include "gitversion.h" @@ -127,6 +129,8 @@ main(int argc, char **argv) return 0; } + assert (gtk_init_check(&argc, &argv) == true); + gtk_init(&argc, &argv); prof_run(log, account_name); return 0; diff --git a/src/proIcon.png b/src/proIcon.png new file mode 100644 index 00000000..b02687a3 Binary files /dev/null and b/src/proIcon.png differ diff --git a/src/proIconMsg.png b/src/proIconMsg.png new file mode 100644 index 00000000..2a0d78cf Binary files /dev/null and b/src/proIconMsg.png differ diff --git a/src/profanity.c b/src/profanity.c index 212705a4..bb5a994a 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -37,6 +37,7 @@ #include "gitversion.h" #endif +#include #include #include #include @@ -71,6 +72,7 @@ #include "window_list.h" #include "event/client_events.h" #include "config/tlscerts.h" +#include "tray.h" static void _check_autoaway(void); static void _init(char *log_level); @@ -96,6 +98,7 @@ void prof_run(char *log_level, char *account_name) { _init(log_level); + gtk_main_iteration_do(false); _connect_default(account_name); ui_update(); @@ -126,6 +129,7 @@ prof_run(char *log_level, char *account_name) jabber_process_events(10); iq_autoping_check(); ui_update(); + gtk_main_iteration_do(false); } } @@ -318,6 +322,7 @@ _init(char *log_level) prefs_load(); log_init(prof_log_level); log_stderr_init(PROF_LEVEL_ERROR); + create_tray(); if (strcmp(PACKAGE_STATUS, "development") == 0) { #ifdef HAVE_GIT_VERSION log_info("Starting Profanity (%sdev.%s.%s)...", PACKAGE_VERSION, PROF_GIT_BRANCH, PROF_GIT_REVISION); @@ -366,6 +371,7 @@ _shutdown(void) cl_ev_disconnect(); } + destroy_tray(); jabber_shutdown(); muc_close(); caps_close(); diff --git a/src/tray.c b/src/tray.c new file mode 100644 index 00000000..966119c3 --- /dev/null +++ b/src/tray.c @@ -0,0 +1,81 @@ +/* + * tray.c + * + * Copyright (C) 2012 - 2016 David Petroni + * + * This file is part of Profanity. + * + * Profanity is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Profanity is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Profanity. If not, see . + * + * In addition, as a special exception, the copyright holders give permission to + * link the code of portions of this program with the OpenSSL library under + * certain conditions as described in each individual source file, and + * distribute linked combinations including the two. + * + * You must obey the GNU General Public License in all respects for all of the + * code used other than OpenSSL. If you modify file(s) with this exception, you + * may extend this exception to your version of the file(s), but you are not + * obligated to do so. If you do not wish to do so, delete this exception + * statement from your version. If you delete this exception statement from all + * source files in the program, then also delete it here. + * + */ + +#include +#include +#include + +#include "tray.h" +#include "window_list.h" + +static GtkStatusIcon *prof_tray = NULL; +static gchar *icon_filename = "src/proIcon.png"; +static gchar *icon_msg_filename = "src/proIconMsg.png"; +static int unread_messages; +static bool shutting_down; +static guint timer; + +gboolean tray_change_icon(gpointer data) +{ + if (shutting_down) { + return false; + } + + unread_messages = wins_get_total_unread(); + + if (unread_messages) { + gtk_status_icon_set_from_file(prof_tray, icon_msg_filename); + } else { + gtk_status_icon_set_from_file(prof_tray, icon_filename); + } + + return true; +} + +void create_tray(void) +{ + prof_tray = gtk_status_icon_new_from_file(icon_filename); + shutting_down = false; + timer = g_timeout_add(5000, tray_change_icon, NULL); +} + +void destroy_tray(void) +{ + shutting_down = true; + g_source_remove(timer); + if (prof_tray) { + gtk_widget_destroy(GTK_WIDGET(prof_tray)); + prof_tray = NULL; + } +} diff --git a/src/tray.h b/src/tray.h new file mode 100644 index 00000000..f1973382 --- /dev/null +++ b/src/tray.h @@ -0,0 +1,41 @@ +/* + * tray.h + * + * Copyright (C) 2012 - 2016 David Petroni + * + * This file is part of Profanity. + * + * Profanity is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Profanity is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Profanity. If not, see . + * + * In addition, as a special exception, the copyright holders give permission to + * link the code of portions of this program with the OpenSSL library under + * certain conditions as described in each individual source file, and + * distribute linked combinations including the two. + * + * You must obey the GNU General Public License in all respects for all of the + * code used other than OpenSSL. If you modify file(s) with this exception, you + * may extend this exception to your version of the file(s), but you are not + * obligated to do so. If you do not wish to do so, delete this exception + * statement from your version. If you delete this exception statement from all + * source files in the program, then also delete it here. + * + */ + +#ifndef PROFANITY_TRAY_H +#define PROFANITY_TRAY_H + +void create_tray(void); +void destroy_tray(void); + +#endif -- cgit 1.4.1-2-gfad0 From d1177d3adef25540571b8f0c9cf37dbe9d398d96 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 7 Mar 2016 20:10:59 +0100 Subject: better icons --- src/proIcon.png | Bin 102058 -> 1037 bytes src/proIconMsg.png | Bin 56159 -> 1683 bytes 2 files changed, 0 insertions(+), 0 deletions(-) (limited to 'src') diff --git a/src/proIcon.png b/src/proIcon.png index b02687a3..9043ce57 100644 Binary files a/src/proIcon.png and b/src/proIcon.png differ diff --git a/src/proIconMsg.png b/src/proIconMsg.png index 2a0d78cf..249d239e 100644 Binary files a/src/proIconMsg.png and b/src/proIconMsg.png differ -- cgit 1.4.1-2-gfad0 From 718a708b93102827dfe04ecb63b2331a6a949406 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 7 Mar 2016 22:25:30 +0100 Subject: Use a folder to add icons NOTE: it is not working in this release, I have to get how to retrieve icons from folder. --- Makefile.am | 6 +++++- configure.ac | 6 +++++- icons/proIcon.png | Bin 0 -> 1037 bytes icons/proIconMsg.png | Bin 0 -> 1683 bytes src/proIcon.png | Bin 1037 -> 0 bytes src/proIconMsg.png | Bin 1683 -> 0 bytes src/profanity.c | 6 ++++++ src/tray.c | 28 +++++++++++++++++++++++----- 8 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 icons/proIcon.png create mode 100644 icons/proIconMsg.png delete mode 100644 src/proIcon.png delete mode 100644 src/proIconMsg.png (limited to 'src') diff --git a/Makefile.am b/Makefile.am index e737eafa..5cbc77f2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -140,6 +140,8 @@ otr_unittest_sources = \ themes_sources = themes/* +icons_sources = icons/* + script_sources = bootstrap.sh configure-debug install-all.sh man_sources = docs/profanity.1 @@ -168,6 +170,8 @@ endif if INCLUDE_GIT_VERSION BUILT_SOURCES = $(git_include) endif +profanity_iconsdir = @ICONS_PATH@ +profanity_icons_DATA = $(icons_sources) TESTS = tests/unittests/unittests check_PROGRAMS = tests/unittests/unittests @@ -187,7 +191,7 @@ endif man_MANS = $(man_sources) -EXTRA_DIST = $(man_sources) $(themes_sources) $(script_sources) profrc.example LICENSE.txt +EXTRA_DIST = $(man_sources) $(icons_sources) $(themes_sources) $(script_sources) profrc.example LICENSE.txt if INCLUDE_GIT_VERSION EXTRA_DIST += .git/HEAD .git/index diff --git a/configure.ac b/configure.ac index 68e83918..ee4a4707 100644 --- a/configure.ac +++ b/configure.ac @@ -192,6 +192,9 @@ AS_IF([test "x$with_themes" = xno -o "x$with_themes" = xyes -o "x$with_themes" = AC_SUBST(THEMES_PATH) AM_CONDITIONAL([THEMES_INSTALL], "$THEMES_INSTALL") +ICONS_PATH='${pkgdatadir}/icons' +AC_SUBST(ICONS_PATH) + ### cmocka is required only for tests, profanity shouldn't be linked with it ### TODO: pass cmocka_CFLAGS and cmocka_LIBS to Makefile.am PKG_CHECK_MODULES([cmocka], [cmocka], [], @@ -213,7 +216,7 @@ AM_CFLAGS="-Wall -Wno-deprecated-declarations" AS_IF([test "x$PACKAGE_STATUS" = xdevelopment], [AM_CFLAGS="$AM_CFLAGS -Wunused -Werror"]) AM_CPPFLAGS="$AM_CPPFLAGS $glib_CFLAGS $curl_CFLAGS $libnotify_CFLAGS ${GTK_CFLAGS}" -AM_CPPFLAGS="$AM_CPPFLAGS -DTHEMES_PATH=\"\\\"$THEMES_PATH\\\"\"" +AM_CPPFLAGS="$AM_CPPFLAGS -DICONS_PATH=\"\\\"$ICONS_PATH\\\"\" -DTHEMES_PATH=\"\\\"$THEMES_PATH\\\"\"" LIBS="$glib_LIBS $curl_LIBS $libnotify_LIBS $LIBS ${GTK_LIBS}" AC_SUBST(AM_CFLAGS) @@ -234,5 +237,6 @@ echo "LIBS : $LIBS" echo "XML Parser : $PARSER" echo "Install themes : $THEMES_INSTALL" echo "Themes path : $THEMES_PATH" +echo "Icons path : $ICONS_PATH" echo "" echo "Now you can run \`make' to build profanity" diff --git a/icons/proIcon.png b/icons/proIcon.png new file mode 100644 index 00000000..9043ce57 Binary files /dev/null and b/icons/proIcon.png differ diff --git a/icons/proIconMsg.png b/icons/proIconMsg.png new file mode 100644 index 00000000..249d239e Binary files /dev/null and b/icons/proIconMsg.png differ diff --git a/src/proIcon.png b/src/proIcon.png deleted file mode 100644 index 9043ce57..00000000 Binary files a/src/proIcon.png and /dev/null differ diff --git a/src/proIconMsg.png b/src/proIconMsg.png deleted file mode 100644 index 249d239e..00000000 Binary files a/src/proIconMsg.png and /dev/null differ diff --git a/src/profanity.c b/src/profanity.c index bb5a994a..528e40a9 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -403,6 +403,8 @@ _create_directories(void) GString *themes_dir = g_string_new(xdg_config); g_string_append(themes_dir, "/profanity/themes"); + GString *icons_dir = g_string_new(xdg_config); + g_string_append(icons_dir, "/profanity/icons"); GString *chatlogs_dir = g_string_new(xdg_data); g_string_append(chatlogs_dir, "/profanity/chatlogs"); GString *logs_dir = g_string_new(xdg_data); @@ -411,6 +413,9 @@ _create_directories(void) if (!mkdir_recursive(themes_dir->str)) { log_error("Error while creating directory %s", themes_dir->str); } + if (!mkdir_recursive(icons_dir->str)) { + log_error("Error while creating directory %s", icons_dir->str); + } if (!mkdir_recursive(chatlogs_dir->str)) { log_error("Error while creating directory %s", chatlogs_dir->str); } @@ -419,6 +424,7 @@ _create_directories(void) } g_string_free(themes_dir, TRUE); + g_string_free(icons_dir, TRUE); g_string_free(chatlogs_dir, TRUE); g_string_free(logs_dir, TRUE); diff --git a/src/tray.c b/src/tray.c index 966119c3..c02b3dc7 100644 --- a/src/tray.c +++ b/src/tray.c @@ -40,12 +40,22 @@ #include "window_list.h" static GtkStatusIcon *prof_tray = NULL; -static gchar *icon_filename = "src/proIcon.png"; -static gchar *icon_msg_filename = "src/proIconMsg.png"; +static GString *icon_filename = NULL; +static GString *icon_msg_filename = NULL; static int unread_messages; static bool shutting_down; static guint timer; +static gchar* +_get_icons_dir(void) +{ + gchar *xdg_config = xdg_get_config_home(); + GString *icons_dir = g_string_new(xdg_config); + g_free(xdg_config); + g_string_append(icons_dir, "/profanity/icons"); + return g_string_free(icons_dir, true); +} + gboolean tray_change_icon(gpointer data) { if (shutting_down) { @@ -55,9 +65,9 @@ gboolean tray_change_icon(gpointer data) unread_messages = wins_get_total_unread(); if (unread_messages) { - gtk_status_icon_set_from_file(prof_tray, icon_msg_filename); + gtk_status_icon_set_from_file(prof_tray, icon_msg_filename->str); } else { - gtk_status_icon_set_from_file(prof_tray, icon_filename); + gtk_status_icon_set_from_file(prof_tray, icon_filename->str); } return true; @@ -65,9 +75,15 @@ gboolean tray_change_icon(gpointer data) void create_tray(void) { - prof_tray = gtk_status_icon_new_from_file(icon_filename); + gchar *icons_dir = _get_icons_dir(); + icon_filename = g_string_new(icons_dir); + icon_msg_filename = g_string_new(icons_dir); + g_string_append(icon_filename, "/proIcon.png"); + g_string_append(icon_msg_filename, "/proIconMsg.png"); + prof_tray = gtk_status_icon_new_from_file(icon_filename->str); shutting_down = false; timer = g_timeout_add(5000, tray_change_icon, NULL); + g_free(icons_dir); } void destroy_tray(void) @@ -78,4 +94,6 @@ void destroy_tray(void) gtk_widget_destroy(GTK_WIDGET(prof_tray)); prof_tray = NULL; } + g_string_free(icon_filename, false); + g_string_free(icon_msg_filename, false); } -- cgit 1.4.1-2-gfad0 From 4abdad03ecd3680f17dcccfe3285b14989f758df Mon Sep 17 00:00:00 2001 From: David Date: Wed, 9 Mar 2016 20:09:31 +0100 Subject: Fix icons when installed in share... it is working now! --- src/tray.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/tray.c b/src/tray.c index c02b3dc7..999c9446 100644 --- a/src/tray.c +++ b/src/tray.c @@ -49,11 +49,22 @@ static guint timer; static gchar* _get_icons_dir(void) { + GString *icons_dir = NULL; + +#ifdef ICONS_PATH + + icons_dir = g_string_new(ICONS_PATH); + +#else + gchar *xdg_config = xdg_get_config_home(); - GString *icons_dir = g_string_new(xdg_config); + icons_dir = g_string_new(xdg_config); g_free(xdg_config); g_string_append(icons_dir, "/profanity/icons"); - return g_string_free(icons_dir, true); + +#endif /* ICONS_PATH */ + + return g_string_free(icons_dir, false); } gboolean tray_change_icon(gpointer data) @@ -75,15 +86,15 @@ gboolean tray_change_icon(gpointer data) void create_tray(void) { - gchar *icons_dir = _get_icons_dir(); - icon_filename = g_string_new(icons_dir); - icon_msg_filename = g_string_new(icons_dir); + gchar *icons_dir_ret = _get_icons_dir(); + icon_filename = g_string_new(icons_dir_ret); + icon_msg_filename = g_string_new(icons_dir_ret); g_string_append(icon_filename, "/proIcon.png"); g_string_append(icon_msg_filename, "/proIconMsg.png"); prof_tray = gtk_status_icon_new_from_file(icon_filename->str); shutting_down = false; timer = g_timeout_add(5000, tray_change_icon, NULL); - g_free(icons_dir); + g_free(icons_dir_ret); } void destroy_tray(void) -- cgit 1.4.1-2-gfad0 From 82de077b02a80121b6b4351cd60e179fcc4ce0d9 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 10 Mar 2016 22:45:16 +0100 Subject: read icons from local dir if desired, icons could be put in the .config dir. In this case, these icons will be read, instead of the other ones. --- src/tray.c | 55 ++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/tray.c b/src/tray.c index 999c9446..f934d836 100644 --- a/src/tray.c +++ b/src/tray.c @@ -34,7 +34,7 @@ #include #include -#include +#include #include "tray.h" #include "window_list.h" @@ -42,29 +42,55 @@ static GtkStatusIcon *prof_tray = NULL; static GString *icon_filename = NULL; static GString *icon_msg_filename = NULL; -static int unread_messages; +static gint unread_messages; static bool shutting_down; static guint timer; -static gchar* -_get_icons_dir(void) +static void _get_icons(void) { GString *icons_dir = NULL; #ifdef ICONS_PATH icons_dir = g_string_new(ICONS_PATH); + icon_filename = g_string_new(icons_dir->str); + icon_msg_filename = g_string_new(icons_dir->str); + g_string_append(icon_filename, "/proIcon.png"); + g_string_append(icon_msg_filename, "/proIconMsg.png"); + g_string_free(icons_dir, true); -#else +#endif /* ICONS_PATH */ gchar *xdg_config = xdg_get_config_home(); icons_dir = g_string_new(xdg_config); g_free(xdg_config); g_string_append(icons_dir, "/profanity/icons"); - -#endif /* ICONS_PATH */ - - return g_string_free(icons_dir, false); + GError *err = NULL; + if (!g_file_test(icons_dir->str, G_FILE_TEST_IS_DIR)) { + return; + } + GDir *dir = g_dir_open(icons_dir->str, 0, &err); + if (dir) { + GString *name = g_string_new(g_dir_read_name(dir)); + while (name->len) { + if (g_strcmp0("proIcon.png", name->str) == 0) { + icon_filename = g_string_new(icons_dir->str); + g_string_append(icon_filename, "/proIcon.png"); + } else + if (g_strcmp0("proIconMsg.png", name->str) == 0){ + icon_msg_filename = g_string_new(icons_dir->str); + g_string_append(icon_msg_filename, "/proIconMsg.png"); + } + g_string_free(name, true); + name = g_string_new(g_dir_read_name(dir)); + } + } else { + fprintf (stderr, "Unable to open dir: %s\n", err->message); + g_error_free(err); + } + g_dir_close(dir); + g_free(err); + g_string_free(icons_dir, true); } gboolean tray_change_icon(gpointer data) @@ -86,15 +112,10 @@ gboolean tray_change_icon(gpointer data) void create_tray(void) { - gchar *icons_dir_ret = _get_icons_dir(); - icon_filename = g_string_new(icons_dir_ret); - icon_msg_filename = g_string_new(icons_dir_ret); - g_string_append(icon_filename, "/proIcon.png"); - g_string_append(icon_msg_filename, "/proIconMsg.png"); + _get_icons(); prof_tray = gtk_status_icon_new_from_file(icon_filename->str); shutting_down = false; timer = g_timeout_add(5000, tray_change_icon, NULL); - g_free(icons_dir_ret); } void destroy_tray(void) @@ -105,6 +126,6 @@ void destroy_tray(void) gtk_widget_destroy(GTK_WIDGET(prof_tray)); prof_tray = NULL; } - g_string_free(icon_filename, false); - g_string_free(icon_msg_filename, false); + g_string_free(icon_filename, true); + g_string_free(icon_msg_filename, true); } -- cgit 1.4.1-2-gfad0 From 520eee23a9ddea98ede89bc372f60c720f3ee725 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 12 Mar 2016 16:55:52 +0100 Subject: fixing leakings --- src/tray.c | 31 +++++++++++++++++++++++++++---- src/tray.h | 9 +++++++++ 2 files changed, 36 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/tray.c b/src/tray.c index f934d836..9bd45cf0 100644 --- a/src/tray.c +++ b/src/tray.c @@ -43,9 +43,19 @@ static GtkStatusIcon *prof_tray = NULL; static GString *icon_filename = NULL; static GString *icon_msg_filename = NULL; static gint unread_messages; -static bool shutting_down; +static gboolean shutting_down; static guint timer; +/* {{{ Privates */ + +/* + * Get icons from installation share folder or (if defined) .locale user's folder + * + * As implementation, looking through all the entries in the .locale folder is chosen. + * While useless as now, it might be useful in case an association name-icon is created. + * As now, with 2 icons only, this is pretty useless, but it is not harming ;) + * + */ static void _get_icons(void) { GString *icons_dir = NULL; @@ -74,26 +84,34 @@ static void _get_icons(void) GString *name = g_string_new(g_dir_read_name(dir)); while (name->len) { if (g_strcmp0("proIcon.png", name->str) == 0) { + g_string_free(icon_filename, true); icon_filename = g_string_new(icons_dir->str); g_string_append(icon_filename, "/proIcon.png"); } else if (g_strcmp0("proIconMsg.png", name->str) == 0){ + g_string_free(icon_msg_filename, true); icon_msg_filename = g_string_new(icons_dir->str); g_string_append(icon_msg_filename, "/proIconMsg.png"); } g_string_free(name, true); name = g_string_new(g_dir_read_name(dir)); } + g_string_free(name, true); } else { fprintf (stderr, "Unable to open dir: %s\n", err->message); g_error_free(err); } g_dir_close(dir); - g_free(err); g_string_free(icons_dir, true); } -gboolean tray_change_icon(gpointer data) +/* + * Callback for the timer + * + * This is the callback that the timer is calling in order to check if messages are there. + * + */ +gboolean _tray_change_icon(gpointer data) { if (shutting_down) { return false; @@ -110,12 +128,15 @@ gboolean tray_change_icon(gpointer data) return true; } +/* }}} */ +/* {{{ Public */ + void create_tray(void) { _get_icons(); prof_tray = gtk_status_icon_new_from_file(icon_filename->str); shutting_down = false; - timer = g_timeout_add(5000, tray_change_icon, NULL); + timer = g_timeout_add(5000, _tray_change_icon, NULL); } void destroy_tray(void) @@ -129,3 +150,5 @@ void destroy_tray(void) g_string_free(icon_filename, true); g_string_free(icon_msg_filename, true); } + +/* }}} */ diff --git a/src/tray.h b/src/tray.h index f1973382..6d12329f 100644 --- a/src/tray.h +++ b/src/tray.h @@ -35,7 +35,16 @@ #ifndef PROFANITY_TRAY_H #define PROFANITY_TRAY_H +/* + * Create tray icon + * + * This will initialize the timer that will be called in order to change the icons + * and will search the icons in the defaults paths + */ void create_tray(void); +/* + * Destroy tray icon + */ void destroy_tray(void); #endif -- cgit 1.4.1-2-gfad0