mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 15:02:40 +00:00
Enable double-clicking a file in file chooser dialog
This commit is contained in:
parent
f21ca6638d
commit
8602b6ab63
1 changed files with 3 additions and 3 deletions
|
@ -964,11 +964,11 @@ class Window (object):
|
||||||
|
|
||||||
dialog = gtk.FileChooserDialog (None, self.gtk_window,
|
dialog = gtk.FileChooserDialog (None, self.gtk_window,
|
||||||
gtk.FILE_CHOOSER_ACTION_OPEN,
|
gtk.FILE_CHOOSER_ACTION_OPEN,
|
||||||
(gtk.STOCK_CANCEL, 1,
|
(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
|
||||||
gtk.STOCK_OPEN, 0,))
|
gtk.STOCK_OPEN, gtk.RESPONSE_ACCEPT,))
|
||||||
response = dialog.run ()
|
response = dialog.run ()
|
||||||
dialog.hide ()
|
dialog.hide ()
|
||||||
if response == 0:
|
if response == gtk.RESPONSE_ACCEPT:
|
||||||
self.set_log_file (dialog.get_filename ())
|
self.set_log_file (dialog.get_filename ())
|
||||||
dialog.destroy ()
|
dialog.destroy ()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue