booh-classifier: properly change border color of last element, if changing its label
authorGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 20 Jun 2008 22:27:19 +0000 (00:27 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Fri, 20 Jun 2008 22:27:19 +0000 (00:27 +0200)
bin/booh-classifier

index 286dd90d5daec097c87f37d62873cfbdb5c6d91d..869ffca3da92b65336c71b74a2046d94a0fe27e1 100755 (executable)
@@ -634,7 +634,11 @@ class MainView < Gtk::DrawingArea
 
     def try_show_entry(entry)
         if entry && entry.button
-            entry.button.grab_focus
+            if entry.button.has_focus?
+                redraw
+            else
+                entry.button.grab_focus
+            end
         end
     end