diff options
| -rw-r--r-- | bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | 12 | ||||
| -rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 11 | ||||
| -rwxr-xr-x | bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 11 | ||||
| -rwxr-xr-x | bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 11 |
4 files changed, 7 insertions, 38 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py index 836bd0a798..da758a3e0d 100644 --- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py +++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py | |||
| @@ -223,19 +223,9 @@ class ImageConfigurationPage (HobPage): | |||
| 223 | button_box = gtk.HBox(False, 6) | 223 | button_box = gtk.HBox(False, 6) |
| 224 | 224 | ||
| 225 | # create button "Just bake" | 225 | # create button "Just bake" |
| 226 | just_bake_button = gtk.Button() | 226 | just_bake_button = HobButton("Just bake") |
| 227 | label = gtk.Label() | ||
| 228 | mark = "<span %s>Just bake</span>" % self.span_tag('24px', 'bold') | ||
| 229 | label.set_markup(mark) | ||
| 230 | |||
| 231 | just_bake_button.set_image(label) | ||
| 232 | just_bake_button.set_size_request(205, 49) | 227 | just_bake_button.set_size_request(205, 49) |
| 233 | just_bake_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 234 | just_bake_button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 235 | just_bake_button.modify_bg(gtk.STATE_SELECTED, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 236 | just_bake_button.set_tooltip_text("Build image to get your target image") | 228 | just_bake_button.set_tooltip_text("Build image to get your target image") |
| 237 | just_bake_button.set_flags(gtk.CAN_DEFAULT) | ||
| 238 | just_bake_button.grab_default() | ||
| 239 | just_bake_button.connect("clicked", self.just_bake_button_clicked_cb) | 229 | just_bake_button.connect("clicked", self.just_bake_button_clicked_cb) |
| 240 | button_box.pack_end(just_bake_button, expand=False, fill=False) | 230 | button_box.pack_end(just_bake_button, expand=False, fill=False) |
| 241 | 231 | ||
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 9213255265..07a6eb0b52 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | import gobject | 23 | import gobject |
| 24 | import gtk | 24 | import gtk |
| 25 | from bb.ui.crumbs.hobcolor import HobColors | 25 | from bb.ui.crumbs.hobcolor import HobColors |
| 26 | from bb.ui.crumbs.hobwidget import hic, HobViewTable, HobAltButton | 26 | from bb.ui.crumbs.hobwidget import hic, HobViewTable, HobAltButton, HobButton |
| 27 | from bb.ui.crumbs.hobpages import HobPage | 27 | from bb.ui.crumbs.hobpages import HobPage |
| 28 | 28 | ||
| 29 | # | 29 | # |
| @@ -264,15 +264,8 @@ class ImageDetailsPage (HobPage): | |||
| 264 | # create button "Deploy image" | 264 | # create button "Deploy image" |
| 265 | name = "Deploy image" | 265 | name = "Deploy image" |
| 266 | if name in buttonlist: | 266 | if name in buttonlist: |
| 267 | deploy_button = gtk.Button() | 267 | deploy_button = HobButton('Deploy image') |
| 268 | label = gtk.Label() | ||
| 269 | mark = "<span %s>Deploy image</span>" % self.span_tag('24px', 'bold') | ||
| 270 | label.set_markup(mark) | ||
| 271 | deploy_button.set_image(label) | ||
| 272 | deploy_button.set_size_request(205, 49) | 268 | deploy_button.set_size_request(205, 49) |
| 273 | deploy_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 274 | deploy_button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 275 | deploy_button.modify_bg(gtk.STATE_SELECTED, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 276 | deploy_button.set_tooltip_text("Deploy image to get your target board") | 269 | deploy_button.set_tooltip_text("Deploy image to get your target board") |
| 277 | deploy_button.set_flags(gtk.CAN_DEFAULT) | 270 | deploy_button.set_flags(gtk.CAN_DEFAULT) |
| 278 | deploy_button.grab_default() | 271 | deploy_button.grab_default() |
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py index cfec6d4920..67ae5d14e5 100755 --- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | import gtk | 23 | import gtk |
| 24 | import glib | 24 | import glib |
| 25 | from bb.ui.crumbs.hobcolor import HobColors | 25 | from bb.ui.crumbs.hobcolor import HobColors |
| 26 | from bb.ui.crumbs.hobwidget import HobViewTable, HobNotebook, HobAltButton | 26 | from bb.ui.crumbs.hobwidget import HobViewTable, HobNotebook, HobAltButton, HobButton |
| 27 | from bb.ui.crumbs.hoblistmodel import PackageListModel | 27 | from bb.ui.crumbs.hoblistmodel import PackageListModel |
| 28 | from bb.ui.crumbs.hobpages import HobPage | 28 | from bb.ui.crumbs.hobpages import HobPage |
| 29 | 29 | ||
| @@ -129,15 +129,8 @@ class PackageSelectionPage (HobPage): | |||
| 129 | button_box = gtk.HBox(False, 6) | 129 | button_box = gtk.HBox(False, 6) |
| 130 | self.box_group_area.pack_start(button_box, expand=False, fill=False) | 130 | self.box_group_area.pack_start(button_box, expand=False, fill=False) |
| 131 | 131 | ||
| 132 | self.build_image_button = gtk.Button() | 132 | self.build_image_button = HobButton('Build image') |
| 133 | label = gtk.Label() | ||
| 134 | mark = "<span %s>Build image</span>" % self.span_tag('24px', 'bold') | ||
| 135 | label.set_markup(mark) | ||
| 136 | self.build_image_button.set_image(label) | ||
| 137 | self.build_image_button.set_size_request(205, 49) | 133 | self.build_image_button.set_size_request(205, 49) |
| 138 | self.build_image_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 139 | self.build_image_button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 140 | self.build_image_button.modify_bg(gtk.STATE_SELECTED, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 141 | self.build_image_button.set_tooltip_text("Build image to get your target image") | 134 | self.build_image_button.set_tooltip_text("Build image to get your target image") |
| 142 | self.build_image_button.set_flags(gtk.CAN_DEFAULT) | 135 | self.build_image_button.set_flags(gtk.CAN_DEFAULT) |
| 143 | self.build_image_button.grab_default() | 136 | self.build_image_button.grab_default() |
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py index 348dfec947..881b2ecb55 100755 --- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | import gtk | 23 | import gtk |
| 24 | import glib | 24 | import glib |
| 25 | from bb.ui.crumbs.hobcolor import HobColors | 25 | from bb.ui.crumbs.hobcolor import HobColors |
| 26 | from bb.ui.crumbs.hobwidget import HobViewTable, HobNotebook, HobAltButton | 26 | from bb.ui.crumbs.hobwidget import HobViewTable, HobNotebook, HobAltButton, HobButton |
| 27 | from bb.ui.crumbs.hoblistmodel import RecipeListModel | 27 | from bb.ui.crumbs.hoblistmodel import RecipeListModel |
| 28 | from bb.ui.crumbs.hobpages import HobPage | 28 | from bb.ui.crumbs.hobpages import HobPage |
| 29 | 29 | ||
| @@ -151,15 +151,8 @@ class RecipeSelectionPage (HobPage): | |||
| 151 | button_box = gtk.HBox(False, 6) | 151 | button_box = gtk.HBox(False, 6) |
| 152 | self.box_group_area.pack_end(button_box, expand=False, fill=False) | 152 | self.box_group_area.pack_end(button_box, expand=False, fill=False) |
| 153 | 153 | ||
| 154 | self.build_packages_button = gtk.Button() | 154 | self.build_packages_button = HobButton('Build packages') |
| 155 | label = gtk.Label() | ||
| 156 | mark = "<span %s>Build packages</span>" % self.span_tag('24px', 'bold') | ||
| 157 | label.set_markup(mark) | ||
| 158 | self.build_packages_button.set_image(label) | ||
| 159 | self.build_packages_button.set_size_request(205, 49) | 155 | self.build_packages_button.set_size_request(205, 49) |
| 160 | self.build_packages_button.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 161 | self.build_packages_button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 162 | self.build_packages_button.modify_bg(gtk.STATE_SELECTED, gtk.gdk.Color(HobColors.ORANGE)) | ||
| 163 | self.build_packages_button.set_tooltip_text("Build packages for customization") | 156 | self.build_packages_button.set_tooltip_text("Build packages for customization") |
| 164 | self.build_packages_button.set_flags(gtk.CAN_DEFAULT) | 157 | self.build_packages_button.set_flags(gtk.CAN_DEFAULT) |
| 165 | self.build_packages_button.grab_default() | 158 | self.build_packages_button.grab_default() |
