trash: obtain the correct icon size from Gtk+
This commit is contained in:
parent
15f7aadad6
commit
c3a17c5e0e
|
@ -451,6 +451,7 @@ static void _list_add(Trash * trash, Config * config, char const * path,
|
||||||
BrowserPluginHelper * helper = trash->helper;
|
BrowserPluginHelper * helper = trash->helper;
|
||||||
size_t len;
|
size_t len;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
|
gint iconsize;
|
||||||
GdkPixbuf * pixbuf;
|
GdkPixbuf * pixbuf;
|
||||||
char * p;
|
char * p;
|
||||||
char const * q;
|
char const * q;
|
||||||
|
@ -471,7 +472,9 @@ static void _list_add(Trash * trash, Config * config, char const * path,
|
||||||
g_free(p);
|
g_free(p);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pixbuf = helper->get_icon(helper->browser, q, NULL, NULL, NULL, 24);
|
gtk_icon_size_lookup(GTK_ICON_SIZE_SMALL_TOOLBAR, &iconsize, &iconsize);
|
||||||
|
pixbuf = helper->get_icon(helper->browser, q, NULL, NULL, NULL,
|
||||||
|
iconsize);
|
||||||
if((u = config_get(config, section, DATA_DELETIONDATE)) != NULL
|
if((u = config_get(config, section, DATA_DELETIONDATE)) != NULL
|
||||||
&& strptime(u, "%Y-%m-%dT%H:%M:%S", &tm) != NULL)
|
&& strptime(u, "%Y-%m-%dT%H:%M:%S", &tm) != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user