Skip to content
Snippets Groups Projects
Commit 33c848bd authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Add close menu item in main menu

Action associated : minimize the main widget
Click on the status icon in the systen tray to show it again
parent 7d918460
No related branches found
No related tags found
No related merge requests found
......@@ -48,25 +48,17 @@ main_widget_minimized()
void
show_hide (void)
{
/*if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(show_menu_item)))
if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(show_menu_item)))
{
gtk_widget_show(GTK_WIDGET(get_main_window()));
set_minimized( MAIN_WINDOW_SHOW );
}
else
{
gtk_widget_hide(GTK_WIDGET(get_main_window()));
}*/
if( main_widget_minimized() )
{
gtk_widget_show(GTK_WIDGET(get_main_window()));
set_minimized(MAIN_WINDOW_SHOW) ;
}
else
{
gtk_widget_hide(GTK_WIDGET(get_main_window()));
set_minimized(!MAIN_WINDOW_SHOW) ;
set_minimized( !MAIN_WINDOW_SHOW );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment