]> Pileus Git - ~andy/gtk/blobdiff - tests/testinput.c
Added notice to look in AUTHORS and ChangeLog files for a list of changes.
[~andy/gtk] / tests / testinput.c
index 218e5ca769cb1f9b9de3551f68ad2d05bad62a97..b2e9e17df8be9953572b07ae7bb7da97c1724e4c 100644 (file)
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
  */
 
+/*
+ * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
+ * file for a list of people on the GTK+ Team.  See the ChangeLog
+ * files for a list of changes.  These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ */
+
+#include <stdio.h>
 #include "gtk.h"
 
 /* Backing pixmap for drawing area */
@@ -34,7 +43,7 @@ static guint32 current_device = GDK_CORE_POINTER;
 
 /* Check to see if we need to draw a cursor for current device */
 static void
-check_cursor ()
+check_cursor (void)
 {
   GList *tmp_list;
 
@@ -270,7 +279,7 @@ input_dialog_destroy (GtkWidget *w, gpointer data)
 }
 
 void
-create_input_dialog ()
+create_input_dialog (void)
 {
   static GtkWidget *inputd = NULL;
 
@@ -300,7 +309,7 @@ create_input_dialog ()
 }
 
 void
-quit ()
+quit (void)
 {
   gtk_exit (0);
 }
@@ -367,6 +376,7 @@ main (int argc, char *argv[])
      events for the drawing area */
   gtk_widget_set_extension_events (drawing_area, GDK_EXTENSION_EVENTS_ALL);
 
+  GTK_WIDGET_SET_FLAGS (drawing_area, GTK_CAN_FOCUS);
   gtk_widget_grab_focus (drawing_area);
 
   /* .. And create some buttons */