This is a bad API to export to users -- I cannot think of a single use for it, besides breaking the user's theme in some terrible way. I'd recommend stubbing it out for now and making it do nothing, and evaluating on a case-by-case what breaks.
On Tue, Apr 2, 2013 at 3:11 PM, Bogdan Gheorghe <gheorghe@xxxxxxxxxx> wrote:
Hi Jasper -
We are porting Eclipse SWT to GTK3 and SWT has API to set the background image of a widget.
Thanks,
B
From: "Jasper St. Pierre" <jstpierre@xxxxxxxxxxx> To: Bogdan Gheorghe/Ottawa/IBM@IBMCA Cc: "gtk-list@xxxxxxxxx" <gtk-list@xxxxxxxxx> Date: 04/02/2013 02:41 PM Subject: Re: How to override theming background image? Sent by: magcius@xxxxxxxxx
The basic question I have is "why do you want to do this"?
On Tue, Apr 2, 2013 at 2:33 PM, Bogdan Gheorghe <gheorghe@xxxxxxxxxx> wrote:
Hi -
GtkWidget provides API to override the background color defined in the Gtk Theme ( gtk_widget_override_background_color ).
It doesn't seem to provide anything similar to override the background image other than building a CSS stylesheet and using a GtkCssProvider to load it.
Using this approach requires that the image resides somewhere in the filesystem . If you have an image already in memory you can't use it without first saving it out.
Another approach would be to write a custom GtkStyleProvider (similar to the GtkModifierStyle) which provides an override background image function. This approach seems impossible as a portion of the style provider implementation is private (the GtkStyleProviderPrivate interface).
Are there any other options for setting the background image on a widget using an in-memory image?
Thanks,
Bogdan & Silenio
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list
--
Jasper
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list
--
Jasper
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list