[tracker/tst-ui-fixes] t-s-t: Have insensitive link buttons when no item is selected.



commit f1f7e343d9bd66e5763d38d81a76222ba3dbbf83
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Mar 24 11:37:22 2010 +0100

    t-s-t: Have insensitive link buttons when no item is selected.

 src/tracker-search-tool/tracker-metadata-tile.gs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-search-tool/tracker-metadata-tile.gs b/src/tracker-search-tool/tracker-metadata-tile.gs
index 7b54ea7..97ab158 100644
--- a/src/tracker-search-tool/tracker-metadata-tile.gs
+++ b/src/tracker-search-tool/tracker-metadata-tile.gs
@@ -150,6 +150,8 @@ class TrackerMetadataTile : EventBox
         
         sparql = "SELECT ?mimetype WHERE {<%s> nie:mimeType ?mimetype.}"
 
+        ClearLabels ()
+
 
     def private expose (e : Gdk.EventExpose) : bool
     
@@ -230,7 +232,9 @@ class TrackerMetadataTile : EventBox
         path_link.uri = ""
         path_link.label = ""
 
-     
+        name_link.set_sensitive (false)
+        path_link.set_sensitive (false);
+
     def SetLabelValue (label : Label, val : string)
         var val1 = "<b>%s</b>".printf (val)
         label.set_markup (val1)
@@ -371,6 +375,9 @@ class TrackerMetadataTile : EventBox
             image.set_from_icon_name ("text-x-generic", IconSize.DIALOG)
             return
 
+        name_link.set_sensitive (true)
+        path_link.set_sensitive (true);
+
         iter : TreeIter
         id, uri, mime: weak string
         icon : Gdk.Pixbuf



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