Glade3 supports multiple themes for enhancement
Submitted by 200..@..er.com
Link to original bug (#620452)
Description
Glade3 is a design tool. Glade3 in Linux has the theme same as host's one. But user probably want to apply another theme to the layout area for their application. And they probably want to look & feel same as real theme. For this, I'd try to add the gtkrcparser.{c/h} in the glade source. It is similar to the gtkrc.{c/h}. When launching glade3, gtkrcparser will parse the user's gtkrc resource file. And when adding new widget to the layout, glade apply the user theme to the widget.
But this solution has some problem. If you try to change the label of GtkButton, GtkButton try to create GtkLabel internally. In this case, glade can not apply theme to it immediately. So, I add the "apply-theme" signal to the GtkButton. When GtkButton creates the GtkLabel, GtkButton will emit the "apply-theme" signal. Glade has the callback function of the signal. In the callback function, glade apply the theme to the GtkLabel widget. I think this patch should be improved. Anyway, if Glade3 can be support two or more theme at one time, it will be great and very helpful.