diff options
author | GNUser <goodstuff@dantas.airpost.net> | 2019-10-16 12:18:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 12:18:07 -0400 |
commit | 97384dc09263c4bd3afb76e2755645538727dc7f (patch) | |
tree | 3889d03250ac44faa00d4f443cc3c7de35a16fd6 | |
parent | add handling for custom icons (diff) | |
download | mktrayicon-97384dc09263c4bd3afb76e2755645538727dc7f.tar.gz mktrayicon-97384dc09263c4bd3afb76e2755645538727dc7f.tar.bz2 mktrayicon-97384dc09263c4bd3afb76e2755645538727dc7f.zip |
Update mktrayicon.c
-rw-r--r-- | mktrayicon.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/mktrayicon.c b/mktrayicon.c index 8c8dad0..d793c89 100644 --- a/mktrayicon.c +++ b/mktrayicon.c @@ -13,7 +13,6 @@ GtkStatusIcon *icon; char *onclick = NULL; -char *icon_type; /* stock (name only) vs. custom (full path) */ void tray_icon_on_click(GtkStatusIcon *status_icon, gpointer user_data) @@ -56,7 +55,7 @@ gboolean set_icon(gpointer data) #ifdef DEBUG printf("Setting icon to '%s'\n", p); #endif - if (strcmp(icon_type, "custom") == 0) + if (strchr(p, '/')) { gtk_status_icon_set_from_file(icon, p); } @@ -150,14 +149,6 @@ gpointer watch_fifo(gpointer argv) gdk_threads_add_idle(set_tooltip, param); break; case 'i': /* icon */ - if (strchr(param, '/')) - { - icon_type="custom"; - } - else - { - icon_type="stock"; - } gdk_threads_add_idle(set_icon, param); break; case 'h': /* hide */ |