[gtk+/gtk-3-20] places sidebar: Avoid markup confusion in tooltips
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] places sidebar: Avoid markup confusion in tooltips
- Date: Thu, 19 May 2016 16:32:39 +0000 (UTC)
commit 8601c0eccdfff9d93633a7f626da66de586be1d0
Author: Matthias Clasen <mclasen redhat com>
Date: Tue May 10 21:47:20 2016 -0400
places sidebar: Avoid markup confusion in tooltips
At one point, the sidebar was using gtk_treeview_set_tooltip_column,
which expects tooltips to be markup. With the listbox-based sidebar,
we don't do that anymore. So don't escape the tooltip text.
https://bugzilla.gnome.org/show_bug.cgi?id=766175
gtk/gtkplacessidebar.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index cbe385d..309cc58 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -453,7 +453,6 @@ add_place (GtkPlacesSidebar *sidebar,
{
gboolean show_eject, show_unmount;
gboolean show_eject_button;
- gchar *tooltip_escaped;
GtkWidget *row;
GtkWidget *eject_button;
GtkWidget *event_box;
@@ -466,12 +465,11 @@ add_place (GtkPlacesSidebar *sidebar,
show_eject_button = (show_unmount || show_eject);
- tooltip_escaped = g_markup_escape_text (tooltip, -1);
row = g_object_new (GTK_TYPE_SIDEBAR_ROW,
"sidebar", sidebar,
"icon", icon,
"label", name,
- "tooltip", tooltip_escaped,
+ "tooltip", tooltip,
"ejectable", show_eject_button,
"order-index", index,
"section-type", section_type,
@@ -482,7 +480,6 @@ add_place (GtkPlacesSidebar *sidebar,
"mount", mount,
NULL);
- g_free (tooltip_escaped);
eject_button = gtk_sidebar_row_get_eject_button (GTK_SIDEBAR_ROW (row));
event_box = gtk_sidebar_row_get_event_box (GTK_SIDEBAR_ROW (row));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]