Minor tidying up

This commit is contained in:
Arnavion
2014-12-08 21:24:59 -08:00
parent 65da34f19e
commit c1831cb19d
9 changed files with 21 additions and 35 deletions

View File

@@ -87,10 +87,9 @@ pixmap_load_from_file (char *filename)
static GdkPixbuf *
load_pixmap (const char *filename)
{
gchar *path;
GdkPixbuf *pixbuf;
path = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "icons" G_DIR_SEPARATOR_S "%s.png", get_xdir (), filename);
gchar *path = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "icons" G_DIR_SEPARATOR_S "%s.png", get_xdir (), filename);
pixbuf = gdk_pixbuf_new_from_file (path, 0);
g_free (path);