Skip to content

Commit

Permalink
libgail: Add deprecation guards
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Otte committed Oct 3, 2014
1 parent c750cea commit 3b83e4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libgail-util/gailmisc.c
Expand Up @@ -456,7 +456,9 @@ gail_misc_get_default_attributes (AtkAttributeSet *attrib_set,

style_context = gtk_widget_get_style_context (widget);

G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_style_context_get_background_color (style_context, 0, &color);
G_GNUC_END_IGNORE_DEPRECATIONS
value = g_strdup_printf ("%u,%u,%u",
(guint) ceil (color.red * 65536 - color.red),
(guint) ceil (color.green * 65536 - color.green),
Expand Down

0 comments on commit 3b83e4e

Please sign in to comment.