Display unknown image icon in ImageViews also.
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 30 Jan 2006 18:26:29 +0000 (18:26 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 30 Jan 2006 18:26:29 +0000 (18:26 +0000)
src/packages/kofoto/gkofoto/fullscreenwindow.py
src/packages/kofoto/gkofoto/singleobjectview.py

index e21af3b..caca16a 100644 (file)
@@ -36,6 +36,8 @@ class FullScreenWindow(gtk.Window):
         vbox = gtk.VBox()
         eventbox.add(vbox)
         self._image_view = ImageView()
+        self._image_view.set_error_pixbuf(
+            gtk.gdk.pixbuf_new_from_file(env.unknownImageIconFileName))
         vbox.pack_start(self._image_view)
         self._info_label = gtk.Label()
         self._info_label.set_text(
index 23342ef..cf4c7d4 100644 (file)
@@ -22,6 +22,8 @@ class SingleObjectView(ObjectCollectionView, gtk.HPaned):
         gtk.HPaned.__init__(self)
         self._viewWidget.add(self)
         self.__imageView = ImageView()
+        self.__imageView.set_error_pixbuf(
+            gtk.gdk.pixbuf_new_from_file(env.unknownImageIconFileName))
         self.__imageView.connect("button_press_event", self._mouse_button_pressed)
         self.pack1(self.__imageView, resize=True)
         self.__imageVersionsFrame = gtk.Frame("Image versions")