parent
457722811d
commit
62aaa65958
@ -254,7 +254,6 @@ class BookmarksDialog(ManagedWindow):
|
|||||||
self.setup_configs('interface.bookmarksdialog', 400, 350)
|
self.setup_configs('interface.bookmarksdialog', 400, 350)
|
||||||
self.show()
|
self.show()
|
||||||
self.edit()
|
self.edit()
|
||||||
self.close()
|
|
||||||
|
|
||||||
def draw_window(self):
|
def draw_window(self):
|
||||||
"""Draw the bookmark dialog box."""
|
"""Draw the bookmark dialog box."""
|
||||||
@ -286,7 +285,6 @@ class BookmarksDialog(ManagedWindow):
|
|||||||
delete.connect('clicked', self.delete_clicked)
|
delete.connect('clicked', self.delete_clicked)
|
||||||
self.top.add_button(_('_Close'), Gtk.ResponseType.CLOSE)
|
self.top.add_button(_('_Close'), Gtk.ResponseType.CLOSE)
|
||||||
self.top.add_button(_('_Help'), Gtk.ResponseType.HELP)
|
self.top.add_button(_('_Help'), Gtk.ResponseType.HELP)
|
||||||
self.top.connect('delete-event', self.close)
|
|
||||||
bbox.add(up)
|
bbox.add(up)
|
||||||
bbox.add(down)
|
bbox.add(down)
|
||||||
bbox.add(delete)
|
bbox.add(delete)
|
||||||
@ -318,6 +316,10 @@ class BookmarksDialog(ManagedWindow):
|
|||||||
elif self.response == Gtk.ResponseType.CLOSE:
|
elif self.response == Gtk.ResponseType.CLOSE:
|
||||||
if self.modified:
|
if self.modified:
|
||||||
self.bm_class.redraw_and_report_change()
|
self.bm_class.redraw_and_report_change()
|
||||||
|
self.close()
|
||||||
|
break
|
||||||
|
elif self.response == Gtk.ResponseType.DELETE_EVENT:
|
||||||
|
# ManagedWindow already handles the delete-event signal
|
||||||
break
|
break
|
||||||
|
|
||||||
def delete_clicked(self, obj):
|
def delete_clicked(self, obj):
|
||||||
|
Loading…
Reference in New Issue
Block a user