mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Forgotten commit
This commit is contained in:
parent
30b574374c
commit
4c8face17d
@ -546,12 +546,16 @@ clone_image_menu_size (GtkImage *image, GtkSettings *settings)
|
||||
&width, &height))
|
||||
{
|
||||
GdkPixbuf *src_pixbuf, *dest_pixbuf;
|
||||
GtkWidget *image;
|
||||
|
||||
src_pixbuf = gtk_image_get_pixbuf (image);
|
||||
dest_pixbuf = gdk_pixbuf_scale_simple (src_pixbuf, width, height,
|
||||
GDK_INTERP_BILINEAR);
|
||||
|
||||
return gtk_image_new_from_pixbuf (dest_pixbuf);
|
||||
image = gtk_image_new_from_pixbuf (dest_pixbuf);
|
||||
g_object_unref (dest_pixbuf);
|
||||
|
||||
return image;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user