[ocrfeeder] Force icon view to always have a selected item



commit 2e4bf0ad670b8cd3dc1e9bc4049c6b8e4c50e256
Author: Joaquim Rocha <jrocha igalia com>
Date:   Wed Mar 10 15:20:10 2010 +0100

    Force icon view to always have a selected item

 studio/widgetModeler.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/studio/widgetModeler.py b/studio/widgetModeler.py
index 27819f5..44b2089 100644
--- a/studio/widgetModeler.py
+++ b/studio/widgetModeler.py
@@ -126,6 +126,7 @@ class SourceImagesSelectorIconView(gtk.IconView):
         self.set_columns(1)
         self.set_reorderable(True)
         self.add_events(gtk.gdk.BUTTON_PRESS_MASK)
+        self.set_selection_mode(gtk.SELECTION_BROWSE)
         self.connect('button-press-event', self.pressedRightButton)
     
     def pressedRightButton(self, target, event):



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