all repos — tint2 @ 856ac5d821a5cd1da2824af39c3574064f1815ea

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Use application-x-executable for unparseable desktop entries (issue #570)
o9000 mrovi9000@gmail.com
commit

856ac5d821a5cd1da2824af39c3574064f1815ea

parent

3811929a6e076c65c9156dabe04b82a642b8821b

2 files changed, 7 insertions(+), 1 deletions(-)

jump to
M src/launcher/icon-theme-common.csrc/launcher/icon-theme-common.c

@@ -711,6 +711,9 @@ size);

return NULL; } + if (!g_file_test(value, G_FILE_TEST_EXISTS)) + return NULL; + // fprintf(stderr, "Icon path found in cache: theme = %s, icon = %s, size = %d, path = %s\n", wrapper->icon_theme_name, icon_name, size, value); return strdup(value);
M src/tint2conf/properties.csrc/tint2conf/properties.c

@@ -2332,14 +2332,17 @@ if (pixbuf)

g_object_unref(pixbuf); } else { printf("Could not load %s\n", file); + GdkPixbuf *pixbuf = load_icon(DEFAULT_ICON); GtkTreeIter iter; gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, - appsColIcon, NULL, + appsColIcon, pixbuf, appsColText, g_strdup(file), appsColPath, g_strdup(file), appsColIconName, g_strdup(""), -1); + if (pixbuf) + g_object_unref(pixbuf); } free_desktop_entry(&entry); }