4 * Created on: 2009-12-18
8 #include "resource_utils.h"
10 GtkWidget* resource_get_image(const gchar* name) {
11 gchar* filepath = g_strdup_printf("%s/%s", RESPREFIX, name);
12 GtkWidget* image = gtk_image_new_from_file(filepath);
17 GdkPixbuf* resource_get_pixbuf_at_scale(const gchar* name, int width, int height) {
18 gchar* filepath = g_strdup_printf("%s/%s", RESPREFIX, name);
19 GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file_at_scale(filepath, width, height, TRUE, NULL);