diff options
author | waker <wakeroid@gmail.com> | 2012-12-01 16:01:29 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-12-01 16:01:29 +0100 |
commit | f635cbb6d02281070d45e3375c37cb67fe1fe99a (patch) | |
tree | c8117c55f1ea2ec674f423ba39537cfd16a40132 /plugins | |
parent | e496e7aac44ab305de2ca418eddd1ddb130a95fa (diff) |
gtkui: fixed w_splitter_replace logic
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/widgets.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/gtkui/widgets.c b/plugins/gtkui/widgets.c index e84ca90b..008c701f 100644 --- a/plugins/gtkui/widgets.c +++ b/plugins/gtkui/widgets.c @@ -30,7 +30,7 @@ #include "parser.h" #include "trkproperties.h" #include "coverart.h" -#undef USE_OPENGL +#define USE_OPENGL 1 #if USE_OPENGL #include "gtkuigl.h" #endif @@ -898,10 +898,14 @@ w_splitter_replace (ddb_gtkui_widget_t *cont, ddb_gtkui_widget_t *child, ddb_gtk cont->children = newchild; } newchild->parent = cont; + w_remove (cont, child); + w_destroy (child); GtkWidget *container = ((w_splitter_t *)cont)->locked ? ((w_splitter_t *)cont)->box : cont->widget; +#if 0 gtk_container_remove (GTK_CONTAINER(container), c->widget); c->widget = NULL; w_destroy (c); +#endif gtk_widget_show (newchild->widget); if (((w_splitter_t *)cont)->locked) { if (ntab == 0) { |