Commit 33c848bd authored by Emmanuel Milou's avatar Emmanuel Milou

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
......@@ -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 );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment