Minor performance optimization

This commit is contained in:
Pierre Pronchery 2015-07-12 22:37:10 +02:00
parent dbb5c9ca88
commit 64c6d78578

View File

@ -305,9 +305,13 @@ static int _settings_browse_folder(Settings * settings, Config * config,
g_error_free(error);
error = NULL;
}
#if GTK_CHECK_VERSION(2, 6, 0)
gtk_list_store_insert_with_values(store, &iter, -1,
#else
gtk_list_store_append(store, &iter);
gtk_list_store_set(store, &iter, 0, pixbuf, 1, name, 2, exec,
-1);
gtk_list_store_set(store, &iter,
#endif
0, pixbuf, 1, name, 2, exec, -1);
}
closedir(dir);
return FALSE;