Code

proper resizing of remove color button
authorJucaBlues <JucaBlues@users.sourceforge.net>
Tue, 27 Jan 2009 14:43:31 +0000 (14:43 +0000)
committerJucaBlues <JucaBlues@users.sourceforge.net>
Tue, 27 Jan 2009 14:43:31 +0000 (14:43 +0000)
src/dialogs/eek-preview.cpp

index 0886782c2387c950d9fb32beff78ad72748d61e1..b562c2af574bc21035cd02a165aa4660e229a864 100644 (file)
@@ -321,7 +321,7 @@ gboolean eek_preview_expose_event( GtkWidget* widget, GdkEventExpose* event )
                                                  &bytesRead,
                                                  &bytesWritten,
                                                  &error);
-            GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file_at_size(localFilename, w, h, &error);
+            GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file_at_scale(localFilename, w, h, FALSE, &error);
             gdk_draw_pixbuf(drawable, 0, pixbuf, 0, 0, 0, 0, w, h, GDK_RGB_DITHER_NONE, 0, 0);
             g_free(localFilename);
             g_free(filepath);