- renderer = new CellRendererText ();
- renderer.yalign = 0;
- renderer.ellipsize = Pango.EllipsizeMode.END;
-
- Pango.AttrList attr_list = new Pango.AttrList ();
- var style = Gtk.rc_get_style_by_paths (Gtk.Settings.get_default (), "SmallSystemFont", null, typeof (void));
- if (style != null) {
- var attr_font_desc = new Pango.AttrFontDesc (style.font_desc.copy ());
- attr_list.insert ((owned) attr_font_desc);
- }
- Gdk.Color color;
- window.ensure_style ();
- if (window.style.lookup_color ("SecondaryTextColor", out color)) {
- Pango.Attribute attr_color = Pango.attr_foreground_new (color.red, color.green, color.blue);
- attr_list.insert ((owned) attr_color);
- }
- renderer.attributes = attr_list;
+ secondary_renderer = new CellRendererText ();
+ secondary_renderer.yalign = 0;
+ secondary_renderer.ellipsize = Pango.EllipsizeMode.END;
+ secondary_renderer.attributes = get_attributes (window, "SmallSystemFont", "SecondaryColor");