add: item = glade_xml_get_widget (totem->xml, "tmw_sidebar_menu_item"); totem_signal_block_by_data (G_OBJECT (item), totem); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), state); totem_signal_unblock_by_data (G_OBJECT (item), totem);
context: on_sidebar_button_toggled (GtkToggleButton *button, Totem *totem){	gboolean state;	state = gtk_toggle_button_get_active (button);	if (state != FALSE)		gtk_widget_show (GTK_WIDGET (totem->sidebar));	else		gtk_widget_hide (GTK_WIDGET (totem->sidebar));	gconf_client_set_bool (totem->gc,				GCONF_PREFIX"/sidebar_shown",				state,				NULL);	totem->sidebar_shown = state;}