first.c compilet en draait!
[rodin/chimara.git] / src / callbacks.c
index 34cd66ec2b20752b38fe971355adb36cc2adcfa0..6067526bde9fab7ed7848d83b90a7508d58d8e91 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <gtk/gtk.h>
-#include "error.h"
-
 #include "callbacks.h"
 
-
 void on_save_tool_button_clicked(GtkToolButton *toolbutton, gpointer user_data) {
        error_dialog( GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(toolbutton))), NULL, "Not implemented yet" );
 }
+
+gboolean on_window_delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_data) {
+       gtk_main_quit();
+       return TRUE;
+}
+
+void on_file_quit_activate(GtkMenuItem *menuitem, gpointer user_data) {
+       gtk_main_quit();
+}
+