summaryrefslogtreecommitdiff
path: root/src/gui/gtk/gui-gtk-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gtk/gui-gtk-main.c')
-rw-r--r--src/gui/gtk/gui-gtk-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gtk/gui-gtk-main.c b/src/gui/gtk/gui-gtk-main.c
index ca8403432..188c9a619 100644
--- a/src/gui/gtk/gui-gtk-main.c
+++ b/src/gui/gtk/gui-gtk-main.c
@@ -199,7 +199,7 @@ gui_main_init ()
but no window was created (GUI was not initialized) */
for (ptr_bar = gui_bars; ptr_bar; ptr_bar = ptr_bar->next_bar)
{
- if ((CONFIG_INTEGER(ptr_bar->type) == GUI_BAR_TYPE_ROOT)
+ if ((CONFIG_INTEGER(ptr_bar->options[GUI_BAR_OPTION_TYPE]) == GUI_BAR_TYPE_ROOT)
&& (!ptr_bar->bar_window))
{
gui_bar_window_new (ptr_bar, NULL);