summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/builder.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builder.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 6805f20cc5..f6adabe42f 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -1230,39 +1230,6 @@ class Builder(gtk.Window):
1230 self.update_config_async() 1230 self.update_config_async()
1231 dialog.destroy() 1231 dialog.destroy()
1232 1232
1233 def show_load_template_dialog(self):
1234 dialog = gtk.FileChooserDialog("Load Template Files", self,
1235 gtk.FILE_CHOOSER_ACTION_OPEN)
1236 button = dialog.add_button("Cancel", gtk.RESPONSE_NO)
1237 HobAltButton.style_button(button)
1238 button = dialog.add_button("Open", gtk.RESPONSE_YES)
1239 HobButton.style_button(button)
1240 filter = gtk.FileFilter()
1241 filter.set_name("Hob Files")
1242 filter.add_pattern("*.hob")
1243 dialog.add_filter(filter)
1244
1245 response = dialog.run()
1246 path = None
1247 if response == gtk.RESPONSE_YES:
1248 path = dialog.get_filename()
1249 dialog.destroy()
1250 return response == gtk.RESPONSE_YES, path
1251
1252 def show_save_template_dialog(self):
1253 dialog = gtk.FileChooserDialog("Save Template Files", self,
1254 gtk.FILE_CHOOSER_ACTION_SAVE)
1255 button = dialog.add_button("Cancel", gtk.RESPONSE_NO)
1256 HobAltButton.style_button(button)
1257 button = dialog.add_button("Save", gtk.RESPONSE_YES)
1258 HobButton.style_button(button)
1259 dialog.set_current_name("hob")
1260 response = dialog.run()
1261 if response == gtk.RESPONSE_YES:
1262 path = dialog.get_filename()
1263 self.save_template(path)
1264 dialog.destroy()
1265
1266 def get_image_extension(self): 1233 def get_image_extension(self):
1267 image_extension = {} 1234 image_extension = {}
1268 for type in self.parameters.image_types: 1235 for type in self.parameters.image_types: