diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2011-01-04 02:11:12 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2011-01-04 03:06:14 +0100 |
commit | 81eb953206f3e121f4e175bf233ddf45dda06f94 (patch) | |
tree | fb3efec5ab16779843b50b3836e4090583c1a6e1 /gtk/gtkrecentchooserdefault.c | |
parent | 732730425a6e45e01ec0f6289f8aa23f5eaf02cc (diff) | |
download | gtk+-81eb953206f3e121f4e175bf233ddf45dda06f94.tar.gz |
Make GtkRecentChooser use GtkStyleContext
Diffstat (limited to 'gtk/gtkrecentchooserdefault.c')
-rw-r--r-- | gtk/gtkrecentchooserdefault.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c index 8fba86615d..84fe199283 100644 --- a/gtk/gtkrecentchooserdefault.c +++ b/gtk/gtkrecentchooserdefault.c @@ -936,11 +936,15 @@ set_default_size (GtkRecentChooserDefault *impl) gint monitor_num; GtkRequisition req; GdkRectangle monitor; + GtkStyleContext *context; + GtkStateFlags state; widget = GTK_WIDGET (impl); + context = gtk_widget_get_style_context (widget); + state = gtk_widget_get_state_flags (widget); /* Size based on characters and the icon size */ - font_size = pango_font_description_get_size (gtk_widget_get_style (widget)->font_desc); + font_size = pango_font_description_get_size (gtk_style_context_get_font (context, state)); font_size = PANGO_PIXELS (font_size); width = impl->icon_size + font_size * NUM_CHARS; |