[gtk+] icon-browser: Show category descriptions as tooltips



commit ea1f9bff2d697ec4b87e9cf5fa2e6995bd9863c0
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 2 13:55:44 2014 +0200

    icon-browser: Show category descriptions as tooltips
    
    No better place for them right now.

 demos/icon-browser/iconbrowserwin.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c
index e9dfd30..7f7d751 100644
--- a/demos/icon-browser/iconbrowserwin.c
+++ b/demos/icon-browser/iconbrowserwin.c
@@ -173,6 +173,10 @@ add_context (IconBrowserWindow *win,
 
   gtk_list_box_insert (GTK_LIST_BOX (win->context_list), row, -1);
 
+  /* set the tooltip on the list box row */
+  row = gtk_widget_get_parent (row);
+  gtk_widget_set_tooltip_text (row, description);
+
   if (win->current_context == NULL)
     win->current_context = c;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]