From: Carlos Lopez Date: Sun, 28 Jun 2009 16:36:52 +0000 (+0200) Subject: Add a separator between toggle ducks and low res dials X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fb20cf41b1fa50d2c1dad398f23431e3dd719638;p=synfig.git Add a separator between toggle ducks and low res dials --- 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 #include #include +#include #include #include @@ -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;