[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    This takes 30 secs to render
From:       Tarie Nosworthy via gtk-app-devel-list <gtk-app-devel-list () gnome ! org>
Date:       2018-05-31 23:45:29
Message-ID: 163b8978c75-c91-f58f () webjas-vac068 ! srv ! aolmail ! net
[Download RAW message or body]



Is there any way to make this better?  The image loaded is 3.3MB PNG
		int nWidth = gdk_pixbuf_get_width(pImage), nHeight = gdk_pixbuf_get_height(pImage);
		gtk_widget_set_size_request(widget, nWidth, nHeight);
		gdk_cairo_set_source_pixbuf(cr, pImage, 0, 0);
		cairo_rectangle(cr, 0, 0, nWidth, nHeight);
		cairo_fill(cr);
		g_object_unref(pImage);

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic