diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hig.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index fdff10b522..ec9dbec64c 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py | |||
@@ -162,8 +162,8 @@ class AdvancedSettingDialog (CrumbsDialog): | |||
162 | def entry_widget_select_path_cb(self, action, parent, entry): | 162 | def entry_widget_select_path_cb(self, action, parent, entry): |
163 | dialog = gtk.FileChooserDialog("", parent, | 163 | dialog = gtk.FileChooserDialog("", parent, |
164 | gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, | 164 | gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, |
165 | (gtk.STOCK_OK, gtk.RESPONSE_YES, | 165 | (gtk.STOCK_CANCEL, gtk.RESPONSE_NO, |
166 | gtk.STOCK_CANCEL, gtk.RESPONSE_NO)) | 166 | gtk.STOCK_OPEN, gtk.RESPONSE_YES)) |
167 | response = dialog.run() | 167 | response = dialog.run() |
168 | if response == gtk.RESPONSE_YES: | 168 | if response == gtk.RESPONSE_YES: |
169 | path = dialog.get_filename() | 169 | path = dialog.get_filename() |
@@ -823,8 +823,8 @@ class LayerSelectionDialog (CrumbsDialog): | |||
823 | def layer_widget_add_clicked_cb(self, action, layer_store, parent): | 823 | def layer_widget_add_clicked_cb(self, action, layer_store, parent): |
824 | dialog = gtk.FileChooserDialog("Add new layer", parent, | 824 | dialog = gtk.FileChooserDialog("Add new layer", parent, |
825 | gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, | 825 | gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, |
826 | (gtk.STOCK_OK, gtk.RESPONSE_YES, | 826 | (gtk.STOCK_CANCEL, gtk.RESPONSE_NO, |
827 | gtk.STOCK_CANCEL, gtk.RESPONSE_NO)) | 827 | gtk.STOCK_OPEN, gtk.RESPONSE_YES)) |
828 | label = gtk.Label("Select the layer you wish to add") | 828 | label = gtk.Label("Select the layer you wish to add") |
829 | label.show() | 829 | label.show() |
830 | dialog.set_extra_widget(label) | 830 | dialog.set_extra_widget(label) |
@@ -1068,8 +1068,8 @@ class ImageSelectionDialog (CrumbsDialog): | |||
1068 | def select_path_cb(self, action, parent, entry): | 1068 | def select_path_cb(self, action, parent, entry): |
1069 | dialog = gtk.FileChooserDialog("", parent, | 1069 | dialog = gtk.FileChooserDialog("", parent, |
1070 | gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, | 1070 | gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, |
1071 | (gtk.STOCK_OK, gtk.RESPONSE_YES, | 1071 | (gtk.STOCK_CANCEL, gtk.RESPONSE_NO, |
1072 | gtk.STOCK_CANCEL, gtk.RESPONSE_NO)) | 1072 | gtk.STOCK_OPEN, gtk.RESPONSE_YES)) |
1073 | response = dialog.run() | 1073 | response = dialog.run() |
1074 | if response == gtk.RESPONSE_YES: | 1074 | if response == gtk.RESPONSE_YES: |
1075 | path = dialog.get_filename() | 1075 | path = dialog.get_filename() |