Beispiel #1
0
 def rename_selected(self, action, param):
     """Rename selected file."""
     obj = self.get_selected_document()
     response, name = input_dialog(self.main_window, "Rename", "Name:",
                                   "Rename", obj.name)
     if response == Gtk.ResponseType.OK and name != '':
         obj.rename(name)
Beispiel #2
0
 def ask_name(self, title):
     return util.input_dialog(self.window, "New " + title, "Name:",
                              "Create")