All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Replace HobNotebook with gtk.Notebook, comments invited
@ 2012-04-13 23:24 Joshua Lock
  2012-04-13 23:24 ` [PATCH 1/4] lib/bb/ui/crumbs/: replace custom HobNotebook Joshua Lock
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Joshua Lock @ 2012-04-13 23:24 UTC (permalink / raw)
  To: bitbake-devel

*** This series prevents users of distros with old Gtk+ releases using Hob ***

This is a follow-on from my RFC of yesterday with a similar title. Sadly I 
hadn't realised that one of the API calls I am using is not available in the
version of gtk+ shipped with CentOS 6 (gtk.Notebook.set_action_widget).

This change will prevent CentOS 6 users from being able to use Hob.

I spent some time in Gtk+ internals trying to figure out if we can emulate the
behaviour on older versions but the GtkNotebook widget internals were enhanced
significantly to support the set_action_widget API.

I've submitted the change as an RFC regardless, it's ready to merge if we're
willing to make the sacrifice.

The primary motivation for making this change, and making it so late in the
cycle, is maintainability. The diffstat says it all - we're replacing an ~400LOC
custom widget with a ~100LOC set of 3 widgets which subclass standard toolkit
widgets.

An added benefit is that standard toolkit widgets generally integrate better
into the users OS thanks to inheriting their standard theme.

Tested on: 
Fedora 16 (x86_64) - PASS
CentOS 6.2 (x86_64) - FAIL: Gtk+ version too old
Ubuntu 10.04 (x86_64) - Fail: pygtk version too old
Ubuntu 12.04 Beta (x86_64) - PASS

Per the final patch in the series the changes here require gtk+-2.20 or newer
and pygtk 2.22 or newer.

Cheers,
Joshua

The following changes since commit 434fdb3913cc78e2e9cdeede4c4fa7f1c8ef8892:

  Hob: Added required packages for toolchain. (2012-04-13 12:00:12 +0100)

are available in the git repository at:
  git://github.com/incandescant/bitbake gtk2.20
  https://github.com/incandescant/bitbake/tree/gtk2.20

Joshua Lock (4):
  lib/bb/ui/crumbs/: replace custom HobNotebook
  lib/bb/ui/crumbs/hobwidget: use light text in HobIndicator
  lib/bb/ui/crumbs/imageconfiguration: fix combo boxes drop-down width
  hob: update required pygtk to 2.22.0 and gtk+ to 2.20.0

 lib/bb/ui/crumbs/builddetailspage.py       |    6 +-
 lib/bb/ui/crumbs/hobwidget.py              |  499 +++++++---------------------
 lib/bb/ui/crumbs/imageconfigurationpage.py |    2 -
 lib/bb/ui/crumbs/packageselectionpage.py   |    3 +-
 lib/bb/ui/crumbs/recipeselectionpage.py    |    5 +-
 lib/bb/ui/hob.py                           |    2 +-
 6 files changed, 120 insertions(+), 397 deletions(-)

-- 
1.7.7.6




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-05-23 17:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-13 23:24 [PATCH 0/4] Replace HobNotebook with gtk.Notebook, comments invited Joshua Lock
2012-04-13 23:24 ` [PATCH 1/4] lib/bb/ui/crumbs/: replace custom HobNotebook Joshua Lock
2012-04-13 23:24 ` [PATCH 2/4] lib/bb/ui/crumbs/hobwidget: use light text in HobIndicator Joshua Lock
2012-04-13 23:24 ` [PATCH 3/4] lib/bb/ui/crumbs/imageconfiguration: fix combo boxes drop-down width Joshua Lock
2012-04-13 23:24 ` [PATCH 4/4] hob: update required pygtk to 2.22.0 and gtk+ to 2.20.0 Joshua Lock
2012-04-14 10:23 ` [PATCH 0/4] Replace HobNotebook with gtk.Notebook, comments invited Richard Purdie
2012-04-14 19:43   ` Joshua Lock
2012-05-16  8:24     ` An, LimingX L
2012-05-10  6:31   ` An, LimingX L
2012-05-20  8:33     ` Richard Purdie
2012-05-20  7:08   ` Richard Purdie
2012-05-23  1:35 ` Wang, Shane
2012-05-23 17:20   ` Joshua Lock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.