[Gimp-developer] PATCH: Selector only shows default item

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

 



The Selector class (in gimpui.py) only calls show() for the default item 
in the list of items it is trying to present. The cause is some bad 
indentation, which leads to item.show() appearing in the wrong scope.

The attached patch corrects this and I would be grateful if someone 
could apply this to cvs.

Cheers,

Dave
--- /home/dave/devel/gimp/gimp-1.3.15/plug-ins/pygimp/gimpui.py	2003-06-21 00:52:57.000000000 +0100
+++ gimpui.py	2003-06-21 15:37:50.000000000 +0100
@@ -198,10 +198,10 @@ class _Selector(gtk.HBox):
 	self.entry.set_text(self.selected)
 	items.sort()
 	for s in items:
-	    item = gtk.ListItem(s)
-	    list.add(item)
-	    if s == self.selected:
-		list.select_child(item)
+		item = gtk.ListItem(s)
+		list.add(item)
+		if s == self.selected:
+			list.select_child(item)
 		item.show()
 	swin.add_with_viewport(list)
 	list.show()

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux