summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/dock.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-06-29 15:40:49 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-06-29 15:40:49 +0000
commitf36f7edc837b86a229f17fa03e94d6e0706e00c1 (patch)
treec1a685af6629ecdd936c5d6fb5022b6a3a483d81 /src/ui/widget/dock.cpp
parentMerge branch 'master' of gitlab.com:inkscape/inkscape (diff)
parentMerge branch 'master' of gitlab.com:inkscape/inkscape (diff)
downloadinkscape-f36f7edc837b86a229f17fa03e94d6e0706e00c1.tar.gz
inkscape-f36f7edc837b86a229f17fa03e94d6e0706e00c1.zip
Merge branch 'master' of gitlab.com:inkscape/inkscape
Diffstat (limited to 'src/ui/widget/dock.cpp')
-rw-r--r--src/ui/widget/dock.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/widget/dock.cpp b/src/ui/widget/dock.cpp
index b2dec401f..7dfad9582 100644
--- a/src/ui/widget/dock.cpp
+++ b/src/ui/widget/dock.cpp
@@ -124,12 +124,13 @@ Dock::~Dock()
g_free(_gdl_dock_bar);
}
-void Dock::addItem(DockItem& item, DockItem::Placement placement)
+void Dock::addItem(DockItem& item, GdlDockPlacement placement)
{
_dock_items.push_back(&item);
+
gdl_dock_add_item(GDL_DOCK(_gdl_dock),
GDL_DOCK_ITEM(item.gobj()),
- (GdlDockPlacement)placement);
+ placement);
// FIXME: This is a hack to prevent the dock from expanding the main window, this can't be done
// initially as the paned doesn't exist.