Module: synfig Branch: genete_canvasview Commit: 99208b10adedccc74db37bb2ce9a5d9176ed5189 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=99208b10adedccc74db37bb2ce9a5d9176ed5189
Author: Carlos Lopez <car...@pcnuevo.(none)> Date: Sun Jun 28 18:36:52 2009 +0200 Add a separator between toggle ducks and low res dials --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index f67e22a..5f3e389 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -41,6 +41,7 @@ #include <gtkmm/messagedialog.h> #include <gtkmm/treemodelsort.h> #include <gtkmm/buttonbox.h> +#include <gtkmm/separator.h> #include <gtk/gtktreestore.h> #include <gtk/gtkversion.h> @@ -1099,7 +1100,7 @@ CanvasView::create_status_bar() Gtk::Widget* CanvasView::create_display_bar() { - displaybar = manage(new class Gtk::Table(1, 1, false)); + displaybar = manage(new class Gtk::Table(1, 3, false)); // Setup the ToggleDuckDial widget toggleducksdial = Gtk::manage(new class ToggleDucksDial()); @@ -1128,7 +1129,6 @@ CanvasView::create_display_bar() toggleducksdial->show(); // Set up the ResolutionDial widget - resolutiondial=Gtk::manage(new class ResolutionDial()); resolutiondial->update_lowres(work_area->get_low_resolution_flag()); @@ -1140,8 +1140,13 @@ CanvasView::create_display_bar() sigc::mem_fun(*this, &studio::CanvasView::toggle_low_res_pixel_flag)); resolutiondial->show(); - displaybar->attach(*resolutiondial, 1, 2, 0, 1, Gtk::SHRINK, Gtk::SHRINK); + // Set up a separator + Gtk::VSeparator *separator = Gtk::manage(new class Gtk::VSeparator()); + separator->show(); + + displaybar->attach(*resolutiondial, 2, 3, 0, 1, Gtk::SHRINK, Gtk::SHRINK); displaybar->attach(*toggleducksdial, 0, 1, 0, 1, Gtk::SHRINK, Gtk::SHRINK); + displaybar->attach(*separator, 1, 2, 0, 1, Gtk::FILL, Gtk::FILL); displaybar->show(); return displaybar; ------------------------------------------------------------------------------ _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl