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
Branches
Tags
No related merge requests found
......@@ -48,16 +48,7 @@ main_widget_minimized()
void
show_hide (void)
{
/*if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(show_menu_item)))
{
gtk_widget_show(GTK_WIDGET(get_main_window()));
}
else
{
gtk_widget_hide(GTK_WIDGET(get_main_window()));
}*/
if( main_widget_minimized() )
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 );
......@@ -67,6 +58,7 @@ show_hide (void)
gtk_widget_hide(GTK_WIDGET(get_main_window()));
set_minimized( !MAIN_WINDOW_SHOW );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment