summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/styledialog.cpp
diff options
context:
space:
mode:
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);