diff options
| author | gustav_b <gustav_b@users.sourceforge.net> | 2007-09-06 19:41:20 +0000 |
|---|---|---|
| committer | gustav_b <gustav_b@users.sourceforge.net> | 2007-09-06 19:41:20 +0000 |
| commit | eb9c881636b979a7c811aa413f9a1c0c3ab08f4e (patch) | |
| tree | db4a21faf4e77afd1d0eb33b17236c4950664a3e /src/ui/widget/dock.cpp | |
| parent | various updates (diff) | |
| download | inkscape-eb9c881636b979a7c811aa413f9a1c0c3ab08f4e.tar.gz inkscape-eb9c881636b979a7c811aa413f9a1c0c3ab08f4e.zip | |
Group dock related prefs, add hidden prefs for dock bar and switcher appearance.
(bzr r3699)
Diffstat (limited to 'src/ui/widget/dock.cpp')
| -rw-r--r-- | src/ui/widget/dock.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ui/widget/dock.cpp b/src/ui/widget/dock.cpp index 828b70451..0f92f7217 100644 --- a/src/ui/widget/dock.cpp +++ b/src/ui/widget/dock.cpp @@ -10,6 +10,7 @@ */ #include "inkscape.h" +#include "prefs-utils.h" #include "desktop.h" #include "dock.h" @@ -71,10 +72,20 @@ Dock::Dock(Gtk::Orientation orientation) _scrolled_window->set_size_request(0); + GdlSwitcherStyle gdl_switcher_style = + static_cast<GdlSwitcherStyle>(prefs_get_int_attribute_limited("options.dock", "switcherstyle", + GDL_SWITCHER_STYLE_BOTH, 0, 4)); + g_object_set (GDL_DOCK_OBJECT(_gdl_dock)->master, - "switcher-style", GDL_SWITCHER_STYLE_BOTH, + "switcher-style", gdl_switcher_style, NULL); + GdlDockBarStyle gdl_dock_bar_style = + static_cast<GdlDockBarStyle>(prefs_get_int_attribute_limited("options.dock", "dockbarstyle", + GDL_DOCK_BAR_BOTH, 0, 3)); + + gdl_dock_bar_set_style(_gdl_dock_bar, gdl_dock_bar_style); + g_signal_connect(G_OBJECT(INKSCAPE), "dialogs_hide", G_CALLBACK(hideCallback), (void *)this); g_signal_connect(G_OBJECT(INKSCAPE), "dialogs_unhide", G_CALLBACK(unhideCallback), (void *)this); |
