summaryrefslogtreecommitdiff
path: root/gtk/gtkiconhelper.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-03-14 04:45:25 +0100
committerBenjamin Otte <otte@redhat.com>2018-03-16 06:04:44 +0100
commit7844320f1031cf83f69b3c15e19c7e49d038d0bb (patch)
treeda46cf466cee33af39d083b32c5899816a5adeee /gtk/gtkiconhelper.c
parentc9557c207f3ca927af216723e88bfec22a37999e (diff)
downloadgtk+-7844320f1031cf83f69b3c15e19c7e49d038d0bb.tar.gz
image: Load resources and files into textures
Instead of loading them into surfaces (which we want to get rid of), we load into textures. In fact, we introduce a new paintable subclass called a GtkScaler that takes care of tracking scaling. This also ideally gets rid of an extra conversion once renderers learn to render textures directly.
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r--gtk/gtkiconhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 26c1b2ca4a..e5acea210c 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -626,7 +626,7 @@ void
_gtk_icon_helper_set_texture (GtkIconHelper *self,
GdkTexture *texture)
{
- gtk_icon_helper_take_definition (self, gtk_image_definition_new_texture (texture, 1));
+ gtk_icon_helper_take_definition (self, gtk_image_definition_new_texture (texture));
}
void