We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1aa43d commit 1f5ff5dCopy full SHA for 1f5ff5d
main.c
@@ -227,8 +227,12 @@ print_menu(GList *dirs, GList *apps)
227
if (!submenu->len) {
228
continue;
229
}
230
- printf(" <menu id=\"%s\" label=\"%s\">\n",
231
- dir->name, dir->name_localized ? : dir->name);
+ printf(" <menu id=\"%s\" label=\"%s\"", dir->name, dir->name_localized ? : dir->name);
+ if (show_icons && dir->icon) {
232
+ printf(" icon=\"%s\"", dir->icon);
233
+ }
234
+ printf(">\n");
235
+
236
printf("%s", submenu->str);
237
printf(" </menu> <!-- %s -->\n", dir->name);
238
0 commit comments