diff options
| author | Ruben Pollan | 2018-03-14 17:28:21 +0100 |
|---|---|---|
| committer | Ruben Pollan | 2018-03-19 10:33:11 +0100 |
| commit | 4cd91b82b5c3e241c8f3251cf44d04141fbd5cee (patch) | |
| tree | ce8df09f873f69ac570ffc0235f9b89ba5250c16 | |
| parent | fe4b1c6bb216a485a73414ce55047ec7ce3a9766 (diff) | |
| download | systray-4cd91b82b5c3e241c8f3251cf44d04141fbd5cee.tar.bz2 | |
Fixed hide show in linux
Closes #37
| -rw-r--r-- | systray_linux.c | 4 |
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 |
