summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-03 20:22:54 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-03 20:22:54 +0100
commit07ce7c70e5162c96aca6a64cb20abf76bba3c4ad (patch)
treee75f0b55911d3c5c6771f14a0311649ae065428a /plugins
parentac2532d356f8fcbafc612e380627e0b8d9d43b94 (diff)
gtkui: fixed vsplitter lock regression too
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/widgets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtkui/widgets.c b/plugins/gtkui/widgets.c
index 7bf3a11e..025d7c3d 100644
--- a/plugins/gtkui/widgets.c
+++ b/plugins/gtkui/widgets.c
@@ -1123,11 +1123,11 @@ void
w_vsplitter_init (ddb_gtkui_widget_t *base) {
w_splitter_t *w = (w_splitter_t *)base;
int pos = ((w_splitter_t *)w)->position; // prevent lock/unlock from overwriting position
- if (w->locked && !w->box) {
+ if (w->locked && !GTK_IS_BOX(w->box)) {
w->locked = 0;
w_splitter_lock (w);
}
- else if (!w->locked && w->box) {
+ if (!w->locked && GTK_IS_BOX(w->box)) {
w->locked = 1;
w_splitter_unlock (w);
}