Skip to content

Commit

Permalink
FilterDialog: add buttons after initializing the template
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Apr 28, 2017
1 parent 1855213 commit 1c9b223
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xlgui/widgets/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ def __init__(self, title, parent, criteria):
- criteria: possible criteria; see FilterWindow
"""

Gtk.Dialog.__init__(self, title=title, transient_for=parent, add_buttons=(
Gtk.STOCK_CANCEL, Gtk.ResponseType.REJECT,
Gtk.STOCK_OK, Gtk.ResponseType.ACCEPT))
Gtk.Dialog.__init__(self, title=title, transient_for=parent)
self.init_template()

self.add_buttons(Gtk.STOCK_CANCEL, Gtk.ResponseType.REJECT,
Gtk.STOCK_OK, Gtk.ResponseType.ACCEPT)

f = FilterWidget(sorted(criteria, key=lambda k: _(k[0])))
f.add_criteria_row()
Expand Down

0 comments on commit 1c9b223

Please sign in to comment.