rem: GtkWidget *item; item = glade_xml_get_widget (totem->xml, "tmw_show_controls_menu_item"); if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (item))) { totem->controls_visibility = TOTEM_CONTROLS_VISIBLE; show_controls (totem, TRUE, TRUE); } else { totem->controls_visibility = TOTEM_CONTROLS_HIDDEN; show_controls (totem, FALSE, TRUE); }
add: totem->controls_visibility = TOTEM_CONTROLS_VISIBLE; show_controls (totem, TRUE); } else { totem->controls_visibility = TOTEM_CONTROLS_HIDDEN; show_controls (totem, TRUE);
context: totem_action_fullscreen_toggle (Totem *totem){	if (totem->controls_visibility == TOTEM_CONTROLS_FULLSCREEN)	{		popup_hide (totem);		bacon_video_widget_set_fullscreen (totem->bvw, FALSE);		gtk_window_unfullscreen (GTK_WINDOW(totem->win));		bacon_video_widget_set_show_cursor (totem->bvw, TRUE);		totem_scrsaver_enable (totem->scr);		if (totem->controls_visibility != TOTEM_CONTROLS_VISIBLE)		{			GtkWidget *item;			item = glade_xml_get_widget				(totem->xml, "tmw_show_controls_menu_item");			if (gtk_check_menu_item_get_active					(GTK_CHECK_MENU_ITEM (item)))			{				totem->controls_visibility =					TOTEM_CONTROLS_VISIBLE;				show_controls (totem, TRUE, TRUE);			} else {				totem->controls_visibility =					TOTEM_CONTROLS_HIDDEN;				show_controls (totem, FALSE, TRUE);			}		}	} else {		totem_action_save_size (totem);		update_fullscreen_size (totem);		bacon_video_widget_set_fullscreen (totem->bvw, TRUE);		bacon_video_widget_set_show_cursor (totem->bvw, FALSE);		gtk_window_fullscreen (GTK_WINDOW(totem->win));		totem_scrsaver_disable (totem->scr);		totem->controls_visibility = TOTEM_CONTROLS_FULLSCREEN;		show_controls (totem, FALSE, TRUE);	}}