GNOME Bugzilla – Bug 605186
Use G_DEFINE_INTERFACE macro
Last modified: 2010-08-25 22:47:41 UTC
Use the new gobject G_DEFINE_INTERFACE macro, see http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-DEFINE-INTERFACE
Created attachment 150213 [details] [review] gtkcelleditable Here a patch for GtkCellEditable interface.
Created attachment 158246 [details] [review] gtkcelleditable.v2 This is the correct patch; It's a GTK_TYPE_WIDGET, not G_TYPE_OBJECT
Created attachment 158247 [details] [review] gtkorientable
Created attachment 158248 [details] [review] gtkbuildable
Created attachment 158249 [details] [review] gtkbuildable.v2
These need some careful checking wrt. to inheritance of superclass implementations of the interface. From what I recall, changing from base_init to class_init can change the behaviour, and all these interfaces have implementations that are ancestors of each other.
I don't remember the details of this any more, but assuming my comments in bug 320482 comment 5 were correct, then there is only a difference when the interface init method fills in vtable entries, which none of these classes do.
Ok then. Go ahead. If there happens to be breakage, we'll learn about it soon enough...
Comment on attachment 158246 [details] [review] gtkcelleditable.v2 commit e53489721644bf8b267edf2b2a665c75c5008423
Comment on attachment 158247 [details] [review] gtkorientable commit 9f6e03f2310762f437e298208182098e0fdad86d
Comment on attachment 158249 [details] [review] gtkbuildable.v2 commit af0a7aea5f6fc508ef0f5dd83babc39dc61225c6
Created attachment 158719 [details] [review] gtkactivatable
Review of attachment 158719 [details] [review]: Looks ok
Comment on attachment 158719 [details] [review] gtkactivatable commit 45e217668377cfb8bb0de23edf8c66549ec1b634
Created attachment 168762 [details] [review] gtkfilechooser
Created attachment 168763 [details] [review] gtkrecentchooser
Created attachment 168765 [details] [review] gtkcelllayout
Created attachment 168766 [details] [review] gtktoolshell
Created attachment 168767 [details] [review] gtksizerequest The last one, I think
Review of attachment 168762 [details] [review]: Looks ok
Review of attachment 168763 [details] [review]: Looks ok
Review of attachment 168765 [details] [review]: Looks ok
Review of attachment 168766 [details] [review]: Looks ok
Review of attachment 168767 [details] [review]: Looks ok
Comment on attachment 168762 [details] [review] gtkfilechooser commit c1476c951ec81e883ff8e9c287855320ae54580c
Comment on attachment 168763 [details] [review] gtkrecentchooser commit 208e548ab1d3cb5662d83cc0bb0033756456df49
Comment on attachment 168765 [details] [review] gtkcelllayout commit 24fedeccaccae59a8dc1b8c6e33cd8a3f9a4a32f
Comment on attachment 168766 [details] [review] gtktoolshell commit 523ea1c65614bed598a4d8e52e2981e7fe098f09
Comment on attachment 168767 [details] [review] gtksizerequest commit 1b77e36a5943491d27a1991c30f9e79659b1db94
All committed to the master branch, thanks for the reviews.