diff options
author | Vincent Untz <vuntz@gnome.org> | 2011-04-04 19:32:56 +0200 |
---|---|---|
committer | Sergey V. Udaltsov <svu@gnome.org> | 2011-04-04 23:34:43 +0100 |
commit | ab411c5084e1816df56f97351132329aeb4123be (patch) | |
tree | 8a4ac3f0091abdd59119639955df748e935319fb /libgnomekbd/gkbd-indicator-config.h | |
parent | d5d994b6e36e341312abadd68a8444765f7f1c2d (diff) | |
download | libgnomekbd-ab411c5084e1816df56f97351132329aeb4123be.tar.gz |
Use the right color for text in GkbdStatus
This is really a big hack: instead of getting the information about how
to draw the font from a GTK+ style, we get it from the GtkStyleContext
from the tray icon widget embedded in the GtkStatusIcon.
To make this happen, we have to fake the GtkStatusIconPrivate structure,
and we rely on the fact that the tray icon widget is the first element
in this structure.
https://bugzilla.gnome.org/show_bug.cgi?id=642703
Diffstat (limited to 'libgnomekbd/gkbd-indicator-config.h')
-rw-r--r-- | libgnomekbd/gkbd-indicator-config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgnomekbd/gkbd-indicator-config.h b/libgnomekbd/gkbd-indicator-config.h index 2638895..9b9d935 100644 --- a/libgnomekbd/gkbd-indicator-config.h +++ b/libgnomekbd/gkbd-indicator-config.h @@ -62,6 +62,16 @@ extern void gkbd_indicator_config_load (GkbdIndicatorConfig extern void gkbd_indicator_config_save (GkbdIndicatorConfig * applet_config); +extern void +gkbd_indicator_config_get_font_for_widget (GkbdIndicatorConfig * ind_config, + GtkWidget * widget, + gchar ** font_family, + int * font_size); + +extern gchar * +gkbd_indicator_config_get_fg_color_for_widget (GkbdIndicatorConfig * ind_config, + GtkWidget * widget); + extern void gkbd_indicator_config_refresh_style (GkbdIndicatorConfig * applet_config); |