summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-05-10 21:47:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-05-19 12:10:07 -0400
commit8601c0eccdfff9d93633a7f626da66de586be1d0 (patch)
treebd1cf767f6f0db18f61ff2d6ca57c07420c65ccf
parent8e2cf127e691022e9b28b6744cc4ddd48c168371 (diff)
downloadgtk+-8601c0eccdfff9d93633a7f626da66de586be1d0.tar.gz
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
-rw-r--r--gtk/gtkplacessidebar.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index cbe385d429..309cc58c33 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));