+/*
+ * Copyright (C) 2008-2009 David Robillard <d@drobilla.net>
+ * Copyright (C) 2013-2015 Paul Davis <paul@linuxaudiosystems.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 2 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, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
#include <gtkmm.h>
#include <iostream>
switch (event->type) {
case GDK_BUTTON_PRESS:
- cerr << "Button press, button = "
+ cerr << "Button press, button = "
<< event->button.button
<< " state "
- << event->button.state
+ << event->button.state
<< endl;
break;
case GDK_BUTTON_RELEASE:
- cerr << "Button release, button = "
+ cerr << "Button release, button = "
<< event->button.button
<< " state "
- << event->button.state
+ << event->button.state
<< endl;
break;
case GDK_KEY_PRESS:
cerr << "Key press, keycode = "
<< event->key.keyval
- << " name "
+ << " name "
<< gdk_keyval_name (event->key.keyval)
<< " state = "
<< event->key.state
case GDK_KEY_RELEASE:
cerr << "Key release, keycode = "
<< event->key.keyval
- << " name "
+ << " name "
<< gdk_keyval_name (event->key.keyval)
<< " state = "
<< event->key.state
Gtk::Main app (&argc, &argv);
Gtk::Window window;
Gtk::EventBox eventbox;
-
+
window.add (eventbox);
window.set_size_request (250, 250);