2012/1/28  <r...@synfig.org>:
> Author: Yu Chen <jco...@gmail.com>
> Date:   Thu Jan 26 09:52:30 2012 +0800
>
> Add extra sapce between diff button groups for a more clear UI layout
>
> ---
>
>  synfig-studio/src/gui/canvasview.cpp |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/synfig-studio/src/gui/canvasview.cpp 
> b/synfig-studio/src/gui/canvasview.cpp
> index 4dd81a8..fceb7be 100644
> --- a/synfig-studio/src/gui/canvasview.cpp
> +++ b/synfig-studio/src/gui/canvasview.cpp
> @@ -1267,18 +1267,18 @@ CanvasView::create_display_bar()
>
>
>        displaybar->attach(*toggleducksdial, 0, 1, 0, 1, Gtk::SHRINK, 
> Gtk::SHRINK);
> -       displaybar->attach(*separator1, 1, 2, 0, 1, Gtk::FILL, Gtk::FILL);
> +       displaybar->attach(*separator1, 1, 2, 0, 1, Gtk::FILL, Gtk::FILL, 8);
>        displaybar->attach(*resolutiondial, 2, 3, 0, 1, Gtk::SHRINK, 
> Gtk::SHRINK);
> -       displaybar->attach(*separator2, 3, 4, 0, 1, Gtk::FILL, Gtk::FILL);
> +       displaybar->attach(*separator2, 3, 4, 0, 1, Gtk::FILL, Gtk::FILL, 8);
>        displaybar->attach(*quality_spin, 4, 5, 0, 1, Gtk::SHRINK, 
> Gtk::SHRINK);
> -       displaybar->attach(*separator3, 5, 6, 0, 1, Gtk::FILL, Gtk::FILL);
> +       displaybar->attach(*separator3, 5, 6, 0, 1, Gtk::FILL, Gtk::FILL, 8);
>        displaybar->attach(*show_grid, 6, 7, 0, 1, Gtk::SHRINK, Gtk::SHRINK);
>        displaybar->attach(*snap_grid, 7, 8, 0, 1, Gtk::SHRINK, Gtk::SHRINK);
> -       displaybar->attach(*separator4, 8, 9, 0, 1, Gtk::FILL, Gtk::FILL);
> +       displaybar->attach(*separator4, 8, 9, 0, 1, Gtk::FILL, Gtk::FILL, 8);
>        displaybar->attach(*past_onion_spin, 9, 10, 0, 1, Gtk::SHRINK, 
> Gtk::SHRINK);
>        displaybar->attach(*onion_skin, 10, 11, 0, 1, Gtk::SHRINK, 
> Gtk::SHRINK);
>        displaybar->attach(*future_onion_spin, 11, 12, 0, 1, Gtk::SHRINK, 
> Gtk::SHRINK);
> -       displaybar->attach(*separator5, 12, 13, 0, 1, Gtk::FILL, Gtk::FILL);
> +       displaybar->attach(*separator5, 12, 13, 0, 1, Gtk::FILL, Gtk::FILL, 
> 8);
>        displaybar->attach(*render_options_button, 13, 14, 0, 1, Gtk::SHRINK, 
> Gtk::SHRINK);
>        displaybar->attach(*preview_options_button, 14, 15, 0, 1, Gtk::SHRINK, 
> Gtk::SHRINK);
>
>

Hi, Yu!
This commit worries me, because it makes the top toolbar even wider.
That prevents the user from resizing canvas window to smaller size.
To workaround the issue it is possible to replace Gtk::HBox with
Gtk::Toolbar widget (it allows cropping for button layout).
The best solution (but requiring more work) is to move toolbar from
canvas window to the Toolbox window.
What do you think on that?
K.



-- 
http://morevnaproject.org/

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to