Kamil Ignacak
2016-06-14 20:05:42 UTC
Hello,
I have noticed a small problem with toggling main menu visibility. From
vikwindow.c:
static void view_main_menu_cb ( GtkAction *a, VikWindow *vw )
{
[...]
if ( tbutton ) {
gboolean tb_state = gtk_toggle_tool_button_get_active ( tbutton );
if ( next_state != tb_state )
gtk_toggle_tool_button_set_active ( tbutton, next_state );
else
toggle_main_menu ( vw );
}
else
toggle_toolbar ( vw );
}
Calling toggle_toolbar() in this function is incorrect, it should be
toggle_main_menu() instead.
Best regards,
Kamil
I have noticed a small problem with toggling main menu visibility. From
vikwindow.c:
static void view_main_menu_cb ( GtkAction *a, VikWindow *vw )
{
[...]
if ( tbutton ) {
gboolean tb_state = gtk_toggle_tool_button_get_active ( tbutton );
if ( next_state != tb_state )
gtk_toggle_tool_button_set_active ( tbutton, next_state );
else
toggle_main_menu ( vw );
}
else
toggle_toolbar ( vw );
}
Calling toggle_toolbar() in this function is incorrect, it should be
toggle_main_menu() instead.
Best regards,
Kamil