Fixed entries not showing for apps without icons
This commit is contained in:
parent
52c3c220ba
commit
26107c8ee5
@ -333,7 +333,7 @@ static void* do_drun(void* data) {
|
|||||||
}
|
}
|
||||||
char* text;
|
char* text;
|
||||||
GIcon* icon = g_app_info_get_icon(G_APP_INFO(info));
|
GIcon* icon = g_app_info_get_icon(G_APP_INFO(info));
|
||||||
if(allow_images && icon != NULL) {
|
if(allow_images) {
|
||||||
if(G_IS_THEMED_ICON(icon)) {
|
if(G_IS_THEMED_ICON(icon)) {
|
||||||
GtkIconTheme* theme = gtk_icon_theme_get_default();
|
GtkIconTheme* theme = gtk_icon_theme_get_default();
|
||||||
const gchar* const* icon_names = g_themed_icon_get_names(G_THEMED_ICON(icon));
|
const gchar* const* icon_names = g_themed_icon_get_names(G_THEMED_ICON(icon));
|
||||||
@ -345,7 +345,7 @@ static void* do_drun(void* data) {
|
|||||||
text = utils_concat(4, "img:", icon_path, ":text:", name);
|
text = utils_concat(4, "img:", icon_path, ":text:", name);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
text = strdup(name);
|
text = utils_concat(2, "text:", name);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
text = strdup(name);
|
text = strdup(name);
|
||||||
|
Loading…
Reference in New Issue
Block a user