[gtkmm] Gtk::Window doesn't receive GDK_space
- From: Silviu D Minut <minutsil cse msu edu>
- To: <gtkmm-list gnome org>
- Subject: [gtkmm] Gtk::Window doesn't receive GDK_space
- Date: Thu, 9 Oct 2003 22:21:01 -0400 (EDT)
I'm building this gui in glade-2, and I have this Gtk::Window which does
receive keyboard input. It receives all (well, I haven't checked all),
except GDK_space. Since it does get some/most of the keyboard, I would
believe I did set the right flags. Does anybody know what's wrong?
This is the (one and only) callback:
bool window1::on_window1_key_press_event(GdkEventKey *ev)
{
std::cout << __FUNCTION__ << ": " << ev->keyval << std::endl;
return 0;
}
And this is the glade-2 file
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="window1">
<property name="visible">True</property>
<property name="title" translatable="yes">window1</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<signal name="key_press_event" handler="on_window1_key_press_event"
last_modification_time="Fri, 10 Oct 2003 01:55:12 GMT"/>
<child>
<placeholder/>
</child>
</widget>
</glade-interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]