Commit ec1abb75 authored by Max's avatar Max

some fix

parent a09222db
......@@ -70,9 +70,9 @@ static void tray_update(struct tray *tray) {
GtkWidget *item;
if (m->submenu != NULL) {
GtkWidget *submenu = gtk_menu_new();
GtkMenuShell *submenu = (GtkMenuShell *)gtk_menu_new();
item = gtk_menu_item_new_with_label(m->text);
gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), submenu);
gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), (GtkWidget *)submenu);
for (struct tray_submenu *s_m = m->submenu; s_m != NULL && s_m->text != NULL; s_m++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment