aboutsummaryrefslogtreecommitdiff
path: root/src/ido-detail-label.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2013-07-11 15:41:03 -0400
committerKen VanDine <ken.vandine@canonical.com>2013-07-11 15:41:03 -0400
commit95687294084afe619678e750f82c34654ee107c9 (patch)
tree2cb3ac547926739837d435f860a21225601f01df /src/ido-detail-label.c
parent9b2ecf678c7ecf2113d10625569e3ea3992066eb (diff)
parent7f4ac7cc08765cd139d6c3ac1f3d501598eb6324 (diff)
downloadayatana-indicator-messages-95687294084afe619678e750f82c34654ee107c9.tar.gz
ayatana-indicator-messages-95687294084afe619678e750f82c34654ee107c9.tar.bz2
ayatana-indicator-messages-95687294084afe619678e750f82c34654ee107c9.zip
fixed deprecations
Diffstat (limited to 'src/ido-detail-label.c')
-rw-r--r--src/ido-detail-label.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ido-detail-label.c b/src/ido-detail-label.c
index 780a2dd..74af602 100644
--- a/src/ido-detail-label.c
+++ b/src/ido-detail-label.c
@@ -139,9 +139,10 @@ gtk_widget_get_font_metrics (GtkWidget *widget,
PangoContext *context)
{
const PangoFontDescription *font;
-
- font = gtk_style_context_get_font (gtk_widget_get_style_context (widget),
- gtk_widget_get_state_flags (widget));
+ GtkStyleContext *style;
+ style = gtk_widget_get_style_context (GTK_WIDGET (widget));
+ gtk_style_context_get (style, GTK_STATE_FLAG_NORMAL,
+ "font", &font, NULL);
return pango_context_get_metrics (context,
font,