|
2 | 2 | # Gramps - a GTK+/GNOME based genealogy program |
3 | 3 | # |
4 | 4 | # Copyright (C) 2009-2015 Nick Hall |
| 5 | +# Copyright (C) 2019 Steve Youngs |
5 | 6 | # |
6 | 7 | # This program is free software; you can redistribute it and/or modify |
7 | 8 | # it under the terms of the GNU General Public License as published by |
@@ -130,6 +131,10 @@ def __create_gui(self): |
130 | 131 | edit.connect("clicked", self.__edit_form, view.get_selection()) |
131 | 132 | button_box.add(edit) |
132 | 133 |
|
| 134 | + actions = Gtk.Button(label=_('_Actions'), use_underline=True) |
| 135 | + actions.connect("clicked", self.__form_actions, view.get_selection()) |
| 136 | + button_box.add(actions) |
| 137 | + |
133 | 138 | vbox.pack_start(view, expand=True, fill=True, padding=0) |
134 | 139 | vbox.pack_end(button_box, expand=False, fill=True, padding=4) |
135 | 140 |
|
@@ -170,6 +175,18 @@ def __edit_form(self, widget, selection): |
170 | 175 | except WindowActiveError: |
171 | 176 | pass |
172 | 177 |
|
| 178 | + def __form_actions(self, widget, selection): |
| 179 | + """ |
| 180 | + Display actions for the selected form. |
| 181 | + """ |
| 182 | + model, iter_ = selection.get_selected() |
| 183 | + if iter_: |
| 184 | + citation = model.get_value(iter_, 0) |
| 185 | + try: |
| 186 | + pass |
| 187 | + except WindowActiveError: |
| 188 | + pass |
| 189 | + |
173 | 190 | def main(self): |
174 | 191 | """ |
175 | 192 | Called to update the display. |
|
0 commit comments