Re: [Synfig-devl] widgets on toolbars (actions)

2014-06-25 Thread Yu Chen
2014-06-11 1:00 GMT+08:00 Konstantin Dmitriev ksee.zelga...@gmail.com:

 AFAIK, gtk 2 (and 3) have a special widget to pack the toolbar buttons
 - https://developer.gnome.org/gtkmm/stable/classGtk_1_1Toolbar.html
 So it should be used instead of regular HBox widget.


Maybe I was wrong. The toolitems for toolbar can not adopt xml to structure
UI layout(tool buttons layout), hence we can not apply actions to canvas
window toolbar as other panels do (toolbar of layer panel for example). If
we implement the canvas window toolbar by using C++ code instead of gtk
actions(xml), It will lose flexibility and consistence.


http://fossies.org/dox/inkscape-0.48.5/ege-adjustment-action_8h.html


just my thoughts

~ yu
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl


Re: [Synfig-devl] widgets on toolbars (actions)

2014-06-25 Thread Konstantin Dmitriev
2014-06-25 16:25 GMT+07:00 Yu Chen jco...@gmail.com:

 2014-06-11 1:00 GMT+08:00 Konstantin Dmitriev ksee.zelga...@gmail.com:

 AFAIK, gtk 2 (and 3) have a special widget to pack the toolbar buttons
 - https://developer.gnome.org/gtkmm/stable/classGtk_1_1Toolbar.html
 So it should be used instead of regular HBox widget.


 Maybe I was wrong. The toolitems for toolbar can not adopt xml to structure
 UI layout(tool buttons layout), hence we can not apply actions to canvas
 window toolbar as other panels do (toolbar of layer panel for example). If
 we implement the canvas window toolbar by using C++ code instead of gtk
 actions(xml), It will lose flexibility and consistence.


 http://fossies.org/dox/inkscape-0.48.5/ege-adjustment-action_8h.html


 just my thoughts

Sorry, I have a lack of knowledge here. What is a real advantage of using XML?

K.

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl