After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 620452 - Glade3 supports multiple themes for enhancement
Glade3 supports multiple themes for enhancement
Status: RESOLVED OBSOLETE
Product: glade
Classification: Applications
Component: general
3.7.x
Other Linux
: Normal enhancement
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-03 09:45 UTC by 200224279
Modified: 2018-03-26 15:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description 200224279 2010-06-03 09:45:56 UTC
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.
Comment 1 Tristan Van Berkom 2010-06-03 14:52:36 UTC
The Glade user does not have control on the theme of their app.

They install a binary and a glade file and deal with the theme
that was designed for the desktop they installed their app into.

In some *corner cases* applications need to deliver a couple
of extra graphics, sometimes they come in the form of a simple
GtkImage or sometimes they are assigned by widget name via
GtkStyle/pixbuf theme engine.

One thing that would be interesting if even at all possible
would be to at least force the workspace to show itself without
applying anything at all from the style.

As an unrelated feature for Glade but just a little candy for
theme writers, we could include an option to switch the style
in the "preview window", which would let *theme authors* help
hack their themes to better work-around the designs of popular
applications.

Since currently themes are like this, themes and application
designers are not married together as they should be, they are
actually at war with eachother.

The best an application developer can do is protect itself against
the evil hicolor-contrast-invert theme and hope the application
even appears under any other thinkable theme.
Comment 2 GNOME Infrastructure Team 2018-03-26 15:13:48 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/63.