Re-added toolbar with menu item to show or hide it
[projects/chimara/chimara.git] / player / callbacks.c
index 38629fe875da262df3d56369001eb85b2571103b..86e85b62a9e14c384134bee146c81f280d818276 100644 (file)
@@ -184,6 +184,17 @@ on_preferences_activate(GtkAction *action, ChimaraGlk *glk)
        gtk_window_present(GTK_WINDOW(prefswindow));
 }
 
+void
+on_toolbar_toggled(GtkToggleAction *action, ChimaraGlk *glk)
+{
+       extern GtkWidget *toolbar;
+       
+       if(gtk_toggle_action_get_active(action))
+               gtk_widget_show(toolbar);
+       else
+               gtk_widget_hide(toolbar);
+}
+
 void
 on_undo_activate(GtkAction *action, ChimaraGlk *glk)
 {