[geany/geany] 23ef01: Allow user gtkrc to override our gtkrc styles

Colomban Wendling git-noreply at xxxxx
Mon Feb 11 03:46:40 UTC 2013

Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 11 Feb 2013 03:46:40 UTC
Commit:      23ef01ede828ffd565ff1acf6a025fb193deb591

Log Message:
Allow user gtkrc to override our gtkrc styles

This allows the user to override the custom styles we apply to some
widgets, like e.g. the unmatched search entry colors.

We use the :theme priority rather than the :application one because
it seems that the :application one cannot override theme settings, even
if it matches against a name the theme don't have rules for but have
rules for the class of that widget.  This prevents a theme from
overriding our styles, but it's unlikely a theme actually provide some
specific stuff for us anyway.

Modified Paths:

Modified: data/geany.gtkrc
8 files changed, 4 insertions(+), 4 deletions(-)
@@ -7,18 +7,18 @@ style "geany-close-tab-button-style" {
 	xthickness = 0
 	ythickness = 0
-widget "*.geany-close-tab-button" style "geany-close-tab-button-style"
+widget "*.geany-close-tab-button" style:theme "geany-close-tab-button-style"
 # use monospaced font in search entries for easier reading of regexp (#1907117)
 style "geany-monospace" {
 	font_name = "Monospace"
-widget "GeanyDialogSearch.*.GtkEntry" style "geany-monospace"
-widget "GeanyDialogSearch.*.geany-search-entry-no-match" style "geany-monospace"
+widget "GeanyDialogSearch.*.GtkEntry" style:theme "geany-monospace"
+widget "GeanyDialogSearch.*.geany-search-entry-no-match" style:theme "geany-monospace"
 # set red background for GtkEntries showing unmatched searches
 style "geany-search-entry-no-match-style" {
 	base[NORMAL] = "#ffff66666666"
 	text[NORMAL] = "#ffffffffffff"
-widget "*.geany-search-entry-no-match" style "geany-search-entry-no-match-style"
+widget "*.geany-search-entry-no-match" style:theme "geany-search-entry-no-match-style"

This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).

More information about the Commits mailing list