summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/styledialog.cpp
diff options
context:
space:
mode:
authorkamalpreetgrewal <grewalkamal005@gmail.com>2016-06-17 05:52:07 +0000
committerkamalpreetgrewal <grewalkamal005@gmail.com>2016-06-17 05:52:07 +0000
commit736149f0b6b617c2cf6f6bef55b4606cd70e416b (patch)
tree7391e528a9ac795f13ad936f00dc95647405a265 /src/ui/dialog/styledialog.cpp
parentMerge changes from trunk (diff)
downloadinkscape-736149f0b6b617c2cf6f6bef55b4606cd70e416b.tar.gz
inkscape-736149f0b6b617c2cf6f6bef55b4606cd70e416b.zip
Remove unwanted empty space at top in style dialog
(bzr r14949.1.21)
Diffstat (limited to 'src/ui/dialog/styledialog.cpp')
-rw-r--r--src/ui/dialog/styledialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/dialog/styledialog.cpp b/src/ui/dialog/styledialog.cpp
index a56277054..622bbcdb9 100644
--- a/src/ui/dialog/styledialog.cpp
+++ b/src/ui/dialog/styledialog.cpp
@@ -53,7 +53,6 @@ StyleDialog::StyleDialog() :
_desktop(0)
{
set_size_request(200, 200);
- add(_mainBox);
_mainBox.pack_start(_scrolledWindow, Gtk::PACK_EXPAND_WIDGET);
_treeView.set_headers_visible(false);
@@ -80,10 +79,13 @@ StyleDialog::StyleDialog() :
&StyleDialog::_delSelector));
del->set_sensitive(false);
- _mainBox.pack_start(_buttonBox, Gtk::PACK_SHRINK);
+ _mainBox.pack_end(_buttonBox, Gtk::PACK_SHRINK);
+
_buttonBox.pack_start(*create, Gtk::PACK_SHRINK);
_buttonBox.pack_start(*del, Gtk::PACK_SHRINK);
+ _getContents()->pack_start(_mainBox, Gtk::PACK_EXPAND_WIDGET);
+
_targetDesktop = getDesktop();
setDesktop(_targetDesktop);