diff --git a/tray.h b/tray.h index 4ba47ea..65b41ec 100644 --- a/tray.h +++ b/tray.h @@ -48,9 +48,11 @@ static GtkMenuShell *_tray_menu(struct tray_menu *m) { item = gtk_menu_item_new_with_label(m->text); gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), GTK_WIDGET(_tray_menu(m->submenu))); - } else { + } else if (m->checked) { item = gtk_check_menu_item_new_with_label(m->text); gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(item), !!m->checked); + } else { + item = gtk_menu_item_new_with_label(m->text); } gtk_widget_set_sensitive(item, !m->disabled); if (m->cb != NULL) {