aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuben Pollan2018-03-14 17:28:21 +0100
committerRuben Pollan2018-03-19 10:33:11 +0100
commit4cd91b82b5c3e241c8f3251cf44d04141fbd5cee (patch)
treece8df09f873f69ac570ffc0235f9b89ba5250c16
parentfe4b1c6bb216a485a73414ce55047ec7ce3a9766 (diff)
downloadsystray-4cd91b82b5c3e241c8f3251cf44d04141fbd5cee.tar.bz2
Fixed hide show in linux
Closes #37
-rw-r--r--systray_linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/systray_linux.c b/systray_linux.c
index 69b90be..ccaac2a 100644
--- a/systray_linux.c
+++ b/systray_linux.c
@@ -101,7 +101,7 @@ gboolean do_add_or_update_menu_item(gpointer data) {
}
GtkWidget * menu_item = GTK_WIDGET(((MenuItemNode*)(it->data))->menu_item);
gtk_widget_set_sensitive(menu_item, mii->disabled == 1 ? FALSE : TRUE);
- gtk_widget_show_all(global_tray_menu);
+ gtk_widget_show(menu_item);
free(mii->title);
free(mii->tooltip);
@@ -112,6 +112,8 @@ gboolean do_add_or_update_menu_item(gpointer data) {
gboolean do_add_separator(gpointer data) {
GtkWidget *separator = gtk_separator_menu_item_new();
gtk_menu_shell_append(GTK_MENU_SHELL(global_tray_menu), separator);
+ gtk_widget_show(separator);
+ return FALSE;
}
// runs in main thread, should always return FALSE to prevent gtk to execute it again