menui = (GtkMenuItem*)glade_xml_get_widget(xml, "show_console1");
if (state) {
- gtk_widget_hide(glade_xml_get_widget(xml, "vbox13"));
- gtk_menu_item_set_label (menui, "Show Console");
+ gtk_widget_hide (glade_xml_get_widget(xml, "vbox13"));
+ gtk_widget_show (glade_xml_get_widget(xml, "show_console1"));
+ gtk_widget_hide (glade_xml_get_widget(xml, "hide_console1"));
state = 0;
}
else {
- gtk_widget_show(glade_xml_get_widget(xml, "vbox13"));
- gtk_menu_item_set_label (menui, "Hide Console");
+ gtk_widget_show (glade_xml_get_widget(xml, "vbox13"));
+ gtk_widget_hide (glade_xml_get_widget(xml, "show_console1"));
+ gtk_widget_show (glade_xml_get_widget(xml, "hide_console1"));
state = 1;
}
}
<signal name="activate" handler="mShowConsoleSlot" last_modification_time="Wed, 22 Jul 2009 16:17:32 GMT"/>
</widget>
</child>
+ <child>
+ <widget class="GtkMenuItem" id="hide_console1">
+ <property name="visible">False</property>
+ <property name="label" translatable="yes">Hide Console</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="mShowConsoleSlot" last_modification_time="Wed, 22 Jul 2009 16:17:32 GMT"/>
+ </widget>
+ </child>
<child>
<widget class="GtkMenuItem" id="view_selected_nodes1">