diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-03 07:25:38 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-05-03 07:25:38 +0200 |
commit | daab38595df60c0ef3e142c195382cb35d448203 (patch) | |
tree | 4186938621912272570b4187a4d8ef8e3ca87b47 /src/gui/themeList.vala | |
parent | fbd5a9eb0d29bdfd9f5f0892190452e17871afd9 (diff) | |
parent | a1c05d93bbb3c1bdb0c0fed9d7110804037cfd55 (diff) |
Merge tag 'upstream/0.6.2'
Upstream version 0.6.2
Diffstat (limited to 'src/gui/themeList.vala')
-rw-r--r-- | src/gui/themeList.vala | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/gui/themeList.vala b/src/gui/themeList.vala index 4173819..517c6d5 100644 --- a/src/gui/themeList.vala +++ b/src/gui/themeList.vala @@ -62,15 +62,18 @@ class ThemeList : Gtk.TreeView { main_column.title = _("Themes"); main_column.set_sizing(Gtk.TreeViewColumnSizing.FIXED); var icon_render = new Gtk.CellRendererPixbuf(); + icon_render.xpad = 4; + icon_render.ypad = 4; main_column.pack_start(icon_render, false); - var theme_render = new Gtk.CellRendererText(); - main_column.pack_start(theme_render, true); + var name_render = new Gtk.CellRendererText(); + name_render.xpad = 6; + main_column.pack_start(name_render, true); this.append_column(main_column); main_column.add_attribute(icon_render, "pixbuf", DataPos.ICON); - main_column.add_attribute(theme_render, "markup", DataPos.NAME); + main_column.add_attribute(name_render, "markup", DataPos.NAME); this.get_selection().changed.connect(() => { Gtk.TreeIter active; @@ -94,10 +97,10 @@ class ThemeList : Gtk.TreeView { Gtk.TreeIter current; data.append(out current); data.set(current, DataPos.ICON, theme.preview_icon.to_pixbuf()); - data.set(current, DataPos.NAME, "<b>"+GLib.Markup.escape_text(theme.name)+"</b><small> - " - +GLib.Markup.escape_text(theme.description)+"\n" - +"<i>"+GLib.Markup.escape_text(_("By")+" "+theme.author) - +"</i></small>"); + data.set(current, DataPos.NAME, GLib.Markup.escape_text(theme.name)+"\n" + + "<span font-size='x-small'>" + GLib.Markup.escape_text(theme.description) + + " - <i>"+GLib.Markup.escape_text(_("By")+" "+theme.author) + + "</i></span>"); if(theme == Config.global.theme) get_selection().select_iter(current); } |