Skip to content

Commit

Permalink
Merge pull request getlantern#39 from meskio/hide_widgets_linux
Browse files Browse the repository at this point in the history
Fixed hide show in linux (getlantern#37)
  • Loading branch information
joesis authored Mar 20, 2018
2 parents 3c059d3 + 2b97238 commit 741267b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion systray_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 741267b

Please sign in to comment.