Changes

Jump to navigation Jump to search
Line 19: Line 19:  
I use a collection of toolbar helper methods in all of my activities. It is proposed to make these utils part of the toolkit. It makes it easier for me both to manage the details of creating toolbar items and for managing the slight differences between primary and secondary toolbars. Also, since it is only in the utils that I directly reference the GTK classes, the conversion from GTK2 to GTK3 can be made essentially transparent to my activities from at least the toolbar perspective. And it makes my code much more compact (and arguably easier to read).
 
I use a collection of toolbar helper methods in all of my activities. It is proposed to make these utils part of the toolkit. It makes it easier for me both to manage the details of creating toolbar items and for managing the slight differences between primary and secondary toolbars. Also, since it is only in the utils that I directly reference the GTK classes, the conversion from GTK2 to GTK3 can be made essentially transparent to my activities from at least the toolbar perspective. And it makes my code much more compact (and arguably easier to read).
   −
I am no programmer, so I would expect someone to have a better idea how to implement all of this, but that is exactly my point: by unburdening the activity developer from worrying about these repetitive details, we'll have a more robust, more easily maintained platform.
+
The last 10%: I am no programmer, so I would expect someone to have a better idea how to implement all of this, but that is exactly my point: by unburdening the activity developer from worrying about these repetitive details, we'll have a more robust, more easily maintained platform.
    
See [http://git.sugarlabs.org/portfolio/portfolio/blobs/master/toolbar_utils.py] for the current version of the utilities.
 
See [http://git.sugarlabs.org/portfolio/portfolio/blobs/master/toolbar_utils.py] for the current version of the utilities.

Navigation menu