summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hig.py
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-02-29 22:15:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-01 15:51:33 +0000
commit1f57d6c180d01ecba4a4dd840168986fac9a4734 (patch)
tree77b52fd992e1061022539a05882c99ae66426eeb /bitbake/lib/bb/ui/crumbs/hig.py
parent7ccdd2007b57628a25a28f8f69310b246bf539bb (diff)
downloadpoky-1f57d6c180d01ecba4a4dd840168986fac9a4734.tar.gz
crumbs: fix button order in several dialogues
GNOME HIG and Gtk+ convention is for the buttons to be ordered <secondary action> <primary action> so that the primary action can be selected easily by navigating to the bottom right of the dialogue. We should try and match the convention and the HIG standard so that we aren't contrasting the rest of the users applications. (Bitbake rev: e90828680e3bc655db54ed2797cad4587e8796d0) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hig.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig.py12
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()