]> Pileus Git - grits/blobdiff - examples/shader/shader.c
Switch to GDK_KEY_*
[grits] / examples / shader / shader.c
index 3d6d3d42942af6c3eca3f0ba0732f5acbabd761b..3063c2641a3e085a5a657735698bbb88408f093c 100644 (file)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 #define GL_GLEXT_PROTOTYPES
 #include <gtk/gtk.h>
 #include <gtk/gtkgl.h>
@@ -22,7 +39,7 @@ gchar *gl_program_log(guint program, int *_len)
 void on_key_press(GtkWidget *widget, GdkEventKey *event, gpointer user_data)
 {
        g_message("key-press");
-       if (event->keyval == GDK_q)
+       if (event->keyval == GDK_KEY_q)
                gtk_main_quit();
 }