+4
-12
lines changedFilter options
+4
-12
lines changed Original file line number Diff line number Diff line change
@@ -216,14 +216,10 @@ def import_theme_from_path(self, path, new_name):
216
216
def import_themix_colors(self):
217
217
self.ask_unsaved_changes()
218
218
219
-
filechooser_dialog = Gtk.FileChooserDialog(
219
+
filechooser_dialog = Gtk.FileChooserNative.new(
220
220
_("Please choose a file with oomox colors"),
221
221
self,
222
-
Gtk.FileChooserAction.OPEN,
223
-
(
224
-
Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
225
-
Gtk.STOCK_OPEN, Gtk.ResponseType.OK
226
-
)
222
+
Gtk.FileChooserAction.OPEN
227
223
)
228
224
filechooser_response = filechooser_dialog.run()
229
225
if filechooser_response in (
@@ -249,14 +245,10 @@ def import_themix_colors(self):
249
245
250
246
def import_from_plugin(self, plugin):
251
247
self.ask_unsaved_changes()
252
-
filechooser_dialog = Gtk.FileChooserDialog(
248
+
filechooser_dialog = Gtk.FileChooserNative.new(
253
249
_("Please choose an image file"),
254
250
self,
255
-
Gtk.FileChooserAction.OPEN,
256
-
(
257
-
Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
258
-
Gtk.STOCK_OPEN, Gtk.ResponseType.OK
259
-
)
251
+
Gtk.FileChooserAction.OPEN
260
252
)
261
253
filechooser_response = filechooser_dialog.run()
262
254
if filechooser_response in (
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4