Fixed a subtle focus-related bug.
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 31 Jul 2004 09:40:13 +0000 (09:40 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 31 Jul 2004 09:40:13 +0000 (09:40 +0000)
src/gkofoto/albums.py
src/gkofoto/mainwindow.py

index 213c30d..c1daf65 100644 (file)
@@ -38,9 +38,10 @@ class Albums:
         albumSelection.connect("changed", self._albumSelectionUpdated)
         albumSelection.set_select_function(self._isSelectable, self.__albumModel)
         self.__contextMenu = self.__createContextMenu()
-        self._albumSelectionUpdated()
         self.__albumView.connect("button_press_event", self._button_pressed)
         self.loadAlbumTree()
+        iterator = self.__albumModel.get_iter_first()
+        albumSelection.select_iter(iterator)
         self._connectedOids = []
 
     def loadAlbumTree(self):
index c0e3f6b..0b766a7 100644 (file)
@@ -67,13 +67,12 @@ class MainWindow(gtk.Window):
 
         env.shelf.registerModificationCallback(self._shelfModificationChangedCallback)
 
-        self.__albums = Albums(self)
+        self.__factory = ObjectCollectionFactory()
         self.__categories = Categories(self)
+        self.__albums = Albums(self)
         self.__thumbnailView = ThumbnailView()
         self.__tableView = TableView()
         self.__singleObjectView = SingleObjectView()
-        self.__factory = ObjectCollectionFactory()
-        self.loadQuery("/" + env.shelf.getRootAlbum().getTag())
         self.__showTableView()
 
     def _sourceEntryActivated(self, widget):