Commit ece70661 authored by Victor Ananjevsky's avatar Victor Ananjevsky

force using small icons in list dialog if icon is not a real filename.…

force using small icons in list dialog if icon is not a real filename. --keep-icon-size must be used to change this behavior
parent eb304886
......@@ -493,7 +493,12 @@ cell_set_data (GtkTreeIter *it, guint num, gchar *data)
}
case YAD_COLUMN_IMAGE:
{
GdkPixbuf *pb = get_pixbuf (data, YAD_SMALL_ICON, FALSE);
GdkPixbuf *pb;
if (g_file_test (data, G_FILE_TEST_EXISTS))
pb = get_pixbuf (data, YAD_SMALL_ICON, FALSE);
else
pb = get_pixbuf (data, YAD_SMALL_ICON, TRUE);
if (pb)
{
gtk_tree_store_set (GTK_TREE_STORE (model), it, num, pb, -1);
......
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