summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/layers.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-03-02 03:18:18 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-03-02 03:18:18 +0000
commit95ff1f8911e47c06b46572f1fc2a3e6c69a080a5 (patch)
tree0bd459f02a56a9f27f6c12f87f9e9be746d4db19 /src/ui/dialog/layers.cpp
parentFix for 927074 : Simplify Path Effects dialog (diff)
downloadinkscape-95ff1f8911e47c06b46572f1fc2a3e6c69a080a5.tar.gz
inkscape-95ff1f8911e47c06b46572f1fc2a3e6c69a080a5.zip
Fix for 944524 Layers - Group buttons and make style consistent
(bzr r11038)
Diffstat (limited to 'src/ui/dialog/layers.cpp')
-rw-r--r--src/ui/dialog/layers.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/dialog/layers.cpp b/src/ui/dialog/layers.cpp
index 66f0167aa..383874b28 100644
--- a/src/ui/dialog/layers.cpp
+++ b/src/ui/dialog/layers.cpp
@@ -81,6 +81,7 @@ void LayersPanel::_styleButton( Gtk::Button& btn, SPDesktop *desktop, unsigned i
GtkWidget *child = sp_icon_new( Inkscape::ICON_SIZE_SMALL_TOOLBAR, iconName );
gtk_widget_show( child );
btn.add( *manage(Glib::wrap(child)) );
+ btn.set_relief(Gtk::RELIEF_NONE);
set = true;
}
@@ -636,11 +637,13 @@ LayersPanel::LayersPanel() :
SPDesktop* targetDesktop = getDesktop();
_buttonsRow.set_child_min_width( 16 );
+ _buttonsRow.set_layout (Gtk::BUTTONBOX_END);
Gtk::Button* btn = manage( new Gtk::Button() );
_styleButton( *btn, targetDesktop, SP_VERB_LAYER_NEW, GTK_STOCK_ADD, C_("Layers", "New") );
btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_NEW) );
_buttonsRow.add( *btn );
+ _buttonsRow.set_child_secondary( *btn , true);
btn = manage( new Gtk::Button() );
_styleButton( *btn, targetDesktop, SP_VERB_LAYER_TO_TOP, GTK_STOCK_GOTO_TOP, C_("Layers", "Top") );
@@ -675,6 +678,7 @@ LayersPanel::LayersPanel() :
btn->signal_clicked().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_takeAction), (int)BUTTON_DELETE) );
_watching.push_back( btn );
_buttonsRow.add( *btn );
+ _buttonsRow.set_child_secondary( *btn , true);