diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2021-02-26 12:46:34 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2021-02-26 12:46:34 +0500 |
commit | c5864c4c4ccbafb20b1e17a46d2b1694e2a47246 (patch) | |
tree | 21f1343a68a1d24dbfda15c5580c4de084edf4ee | |
parent | d2c17c339edfabe609d27c5957caf86e0eff44c0 (diff) | |
download | gnome-control-center-wip/exalm/bg.tar.gz |
background: Fix thumbnail size on hidpiwip/exalm/bg
Use GIcon GtkImage API instead lf GdkPixbuf. The latter treats pixbufs as
always being in 1x scale and upscales them to compensate, while in our case
they are pre-scaled.
Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/787
-rw-r--r-- | panels/background/cc-background-chooser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/panels/background/cc-background-chooser.c b/panels/background/cc-background-chooser.c index de201b8da..6c8f56136 100644 --- a/panels/background/cc-background-chooser.c +++ b/panels/background/cc-background-chooser.c @@ -105,7 +105,7 @@ create_widget_func (gpointer model_item, bg_source_get_thumbnail_width (source), bg_source_get_thumbnail_height (source), bg_source_get_scale_factor (source)); - image = gtk_image_new_from_pixbuf (pixbuf); + image = gtk_image_new_from_gicon (G_ICON (pixbuf), GTK_ICON_SIZE_DIALOG); gtk_widget_show (image); icon = gtk_image_new_from_icon_name("slideshow-emblem", GTK_ICON_SIZE_BUTTON); |