[gtk+] places sidebar: Avoid markup confusion in tooltips



commit 7c21a32b2887657b711b767ae90397955805b98f
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 4f01241..044439c 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -454,7 +454,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;
@@ -467,12 +466,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,
@@ -483,7 +481,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]