Fixed some GTK+ warnings.
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 21 Jul 2004 16:19:55 +0000 (16:19 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 21 Jul 2004 16:19:55 +0000 (16:19 +0000)
src/gkofoto/mainwindow.py
src/gkofoto/registerimagesdialog.py

index be2e9b4..b4816bf 100644 (file)
@@ -95,6 +95,7 @@ class MainWindow(gtk.Window):
     def registerImages(self, widget, data):
         dialog = RegisterImagesDialog()
         dialog.run()
+        dialog.destroy()
 
     def getIconImage(self, name):
         pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.join(env.iconDir, name))
index 1529e45..56568de 100644 (file)
@@ -10,7 +10,6 @@ class RegisterImagesDialog(gtk.FileSelection):
         self.__albumToAddTo = albumToAddTo
         self.set_select_multiple(True)
         self.ok_button.connect("clicked", self._ok)
-        self.cancel_button.connect("clicked", self._cancel)
 
     def _ok(self, widget):
         images = []
@@ -23,7 +22,3 @@ class RegisterImagesDialog(gtk.FileSelection):
         if self.__albumToAddTo:
             children = list(self.__albumToAddTo.getChildren())
             self.__albumToAddTo.setChildren(children + images)
-        self.destroy()
-
-    def _cancel(self, widget):
-        self.destroy()