~sschuhmann/scratch/gtk-stack

« back to all changes in this revision

Viewing changes to plugins/folder-manager/FolderManagerPlugin.vala

  • Committer: Steffen Schuhmann
  • Date: 2014-08-04 23:29:01 UTC
  • mfrom: (1253.2.90 scratch)
  • Revision ID: schuhmannsteffen+launchpad@mailbox.org-20140804232901-7nxhyvay51wqg0m5
MergedĀ againstĀ upstreamĀ 

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
            tool_button = new Gtk.ToolButton (icon, _("Open a folder"));
90
90
            tool_button.tooltip_text = _("Open a folder");
91
91
            tool_button.clicked.connect (() => {
 
92
                Gtk.Window window = plugins.manager.window;
92
93
                Gtk.FileChooserDialog chooser = new Gtk.FileChooserDialog (
93
 
                    "Select a folder.", null, Gtk.FileChooserAction.SELECT_FOLDER,
94
 
                    Gtk.Stock.CANCEL, Gtk.ResponseType.CANCEL,
95
 
                    Gtk.Stock.OPEN, Gtk.ResponseType.ACCEPT);
 
94
                    "Select a folder.", window, Gtk.FileChooserAction.SELECT_FOLDER,
 
95
                    _("_Cancel"), Gtk.ResponseType.CANCEL,
 
96
                    _("_Open"), Gtk.ResponseType.ACCEPT);
96
97
                chooser.select_multiple = true;
97
98
 
98
99
                if (chooser.run () == Gtk.ResponseType.ACCEPT) {