summaryrefslogtreecommitdiffhomepage
path: root/mixgtk/mixgtk_mixal.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixgtk/mixgtk_mixal.c')
-rw-r--r--mixgtk/mixgtk_mixal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mixgtk/mixgtk_mixal.c b/mixgtk/mixgtk_mixal.c
index d79e601..eb8c60d 100644
--- a/mixgtk/mixgtk_mixal.c
+++ b/mixgtk/mixgtk_mixal.c
@@ -130,9 +130,11 @@ init_color_ (GdkColor *c, const gchar *name)
gboolean
mixgtk_mixal_init (mix_vm_t *vm, mixgtk_dialog_id_t top)
{
+ static gboolean restart = FALSE;
int i,j;
g_return_val_if_fail (vm != NULL, FALSE);
+ vm_ = vm;
clist_ = GTK_CLIST (mixgtk_widget_factory_get (top, MIXGTK_WIDGET_MIXAL));
g_return_val_if_fail (clist_ != NULL, FALSE);
@@ -162,10 +164,8 @@ mixgtk_mixal_init (mix_vm_t *vm, mixgtk_dialog_id_t top)
}
}
- if (!vm_)
- vm_ = vm;
- else
- mixgtk_mixal_load_file ();
+ if (restart) mixgtk_mixal_load_file ();
+ else restart = TRUE;
return TRUE;
}