diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-03 20:22:54 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-03 20:22:54 +0100 |
commit | 07ce7c70e5162c96aca6a64cb20abf76bba3c4ad (patch) | |
tree | e75f0b55911d3c5c6771f14a0311649ae065428a /plugins | |
parent | ac2532d356f8fcbafc612e380627e0b8d9d43b94 (diff) |
gtkui: fixed vsplitter lock regression too
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/widgets.c | 4 |
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); } |