From a824c3e5bdab686901b02667609282e7d596a6af Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Fri, 27 Jan 2012 21:34:48 +0100 Subject: Imported Upstream version 0.4.2 --- src/gui/aboutWindow.vala | 2 +- src/gui/pieComboList.vala | 2 +- src/gui/pieList.vala | 2 +- src/gui/piePreviewRenderer.vala | 6 +++--- src/gui/sliceTypeList.vala | 8 ++++---- src/gui/themeList.vala | 6 ++++-- 6 files changed, 14 insertions(+), 12 deletions(-) (limited to 'src/gui') diff --git a/src/gui/aboutWindow.vala b/src/gui/aboutWindow.vala index e7faca3..2df8c46 100644 --- a/src/gui/aboutWindow.vala +++ b/src/gui/aboutWindow.vala @@ -68,7 +68,7 @@ public class AboutWindow: Gtk.AboutDialog { logo_icon_name: "gnome-pie", website: "http://www.simonschneegans.de/?page_id=12", website_label: "www.gnome-pie.simonschneegans.de", - version: "0.4.1" + version: "0.4.2" ); } } diff --git a/src/gui/pieComboList.vala b/src/gui/pieComboList.vala index 3b54944..3be3bff 100644 --- a/src/gui/pieComboList.vala +++ b/src/gui/pieComboList.vala @@ -65,7 +65,7 @@ class PieComboList : Gtk.ComboBox { this.pack_start(name_render, true); this.add_attribute(icon_render, "pixbuf", DataPos.ICON); - this.add_attribute(name_render, "markup", DataPos.NAME); + this.add_attribute(name_render, "text", DataPos.NAME); this.changed.connect(() => { Gtk.TreeIter active; diff --git a/src/gui/pieList.vala b/src/gui/pieList.vala index bfcb832..474e5f5 100644 --- a/src/gui/pieList.vala +++ b/src/gui/pieList.vala @@ -86,7 +86,7 @@ class PieList : Gtk.TreeView { base.append_column(main_column); main_column.add_attribute(icon_render, "pixbuf", DataPos.ICON); - main_column.add_attribute(name_render, "markup", DataPos.NAME); + main_column.add_attribute(name_render, "text", DataPos.NAME); // setup drag'n'drop Gtk.TargetEntry uri_source = {"text/uri-list", 0, 0}; diff --git a/src/gui/piePreviewRenderer.vala b/src/gui/piePreviewRenderer.vala index 1cf83ff..6fff397 100644 --- a/src/gui/piePreviewRenderer.vala +++ b/src/gui/piePreviewRenderer.vala @@ -408,7 +408,7 @@ public class PiePreviewRenderer : GLib.Object { switch (display) { case CenterDisplay.ACTIVE_SLICE: if (this.active_slice >= 0 && this.active_slice < this.slices.size) - this.center_renderer.set_text("" + slices[this.active_slice].name + "\n" + this.center_renderer.set_text("" + GLib.Markup.escape_text(slices[this.active_slice].name) + "\n" + _("Click to edit") + "\n" + _("Drag to move") + ""); break; case CenterDisplay.ADD: @@ -418,12 +418,12 @@ public class PiePreviewRenderer : GLib.Object { if (hidden_group == null) this.center_renderer.set_text("" + _("Drop to add as new Slice") + ""); else - this.center_renderer.set_text("" + this.hidden_group.name + "\n" + this.center_renderer.set_text("" + GLib.Markup.escape_text(this.hidden_group.name) + "\n" + _("Drop to move Slice") + ""); break; case CenterDisplay.DELETE: if (this.active_slice >= 0 && this.active_slice < this.slices.size) - this.center_renderer.set_text("" + slices[this.active_slice].name + "\n" + this.center_renderer.set_text("" + GLib.Markup.escape_text(slices[this.active_slice].name) + "\n" + _("Click to delete") + "\n" + _("Drag to move") + ""); break; default: diff --git a/src/gui/sliceTypeList.vala b/src/gui/sliceTypeList.vala index 541658e..b447dc3 100644 --- a/src/gui/sliceTypeList.vala +++ b/src/gui/sliceTypeList.vala @@ -103,8 +103,8 @@ class SliceTypeList : Gtk.TreeView { var icon = new Icon(description.icon, 36); data.set(current, DataPos.ICON, icon.to_pixbuf()); data.set(current, DataPos.ICON_NAME, description.icon); - data.set(current, DataPos.NAME, "" + description.name + "\n" - + "" + description.description + ""); + data.set(current, DataPos.NAME, "" + GLib.Markup.escape_text(description.name) + "\n" + + "" + GLib.Markup.escape_text(description.description) + ""); data.set(current, DataPos.ID, description.id); } @@ -116,8 +116,8 @@ class SliceTypeList : Gtk.TreeView { var icon = new Icon(description.icon, 36); data.set(current, DataPos.ICON, icon.to_pixbuf()); data.set(current, DataPos.ICON_NAME, description.icon); - data.set(current, DataPos.NAME, "" + description.name + "\n" - + "" + description.description + ""); + data.set(current, DataPos.NAME, "" + GLib.Markup.escape_text(description.name) + "\n" + + "" + GLib.Markup.escape_text(description.description) + ""); data.set(current, DataPos.ID, description.id); } diff --git a/src/gui/themeList.vala b/src/gui/themeList.vala index 62e0721..7aaecc6 100644 --- a/src/gui/themeList.vala +++ b/src/gui/themeList.vala @@ -82,8 +82,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, ""+theme.name+" - "+theme.description+"\n" - +""+_("By")+" "+theme.author+""); + data.set(current, DataPos.NAME, ""+GLib.Markup.escape_text(theme.name)+" - " + +GLib.Markup.escape_text(theme.description)+"\n" + +""+GLib.Markup.escape_text(_("By")+" "+theme.author) + +""); if(theme == Config.global.theme) get_selection().select_iter(current); } -- cgit v1.2.3