summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-12-06 02:55:22 +0100
committerBenjamin Otte <otte@redhat.com>2012-12-06 02:57:19 +0100
commit9ae96491886716ba56ba87442dd9a93dcf21e027 (patch)
tree88fd8ef977b8bc091cdae3bde1889ff65d7d11d6 /gtk/gtkstylecontext.c
parent82a61069200f72dd23cb82ff6d7877e1bf43beb3 (diff)
downloadgtk+-9ae96491886716ba56ba87442dd9a93dcf21e027.tar.gz
stylecontext: Deprecate gtk_style_context_get_font()
This is for a very simple reason: The getter is returning a const value and the font isn't const anymore. So we need to store the font description somewhere but we can't reuse it as it's changing all the time (yay animations, yay inherited values). Sucks. So keep the hack in here but deprecate the function.
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index fbd8e1717f..8c99d8f26f 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -3468,6 +3468,9 @@ gtk_style_context_get_margin (GtkStyleContext *context,
* freed.
*
* Since: 3.0
+ *
+ * Deprecated: 3.8: Use gtk_style_context_get() for "font" or
+ * subproperties instead.
**/
const PangoFontDescription *
gtk_style_context_get_font (GtkStyleContext *context,