- Timestamp:
- Dec 11, 2004, 11:29:31 PM (20 years ago)
- Location:
- orxonox/trunk/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_gtk.cc
r3156 r3157 170 170 if (widget->isOption >= 1) 171 171 static_cast<Option*>(widget)->redraw();// <<" is : " << static_cast<Option*>(this)->value <<endl; 172 } 173 174 gint Widget::doNothingSignal (GtkWidget *widget, GdkEvent* event, void* nothing) 175 { 172 176 } 173 177 -
orxonox/trunk/gui/orxonox_gui_gtk.h
r3156 r3157 50 50 static void listOptions (Widget* widget); 51 51 static void setOptions (Widget* widget); 52 52 53 static gint doNothingSignal (GtkWidget *widget, GdkEvent* event, void* nothing); 53 54 }; 54 55 -
orxonox/trunk/gui/orxonox_gui_keys.cc
r3156 r3157 83 83 84 84 inputButton = new Button ("test"); 85 inputButton->connectSignal ("button_press_event", inputWindow, Window::windowClose);86 85 inputWindow->fill (inputButton); 87 inputWindow->connectSignal("destroy", inputWindow, Wi ndow::windowClose);88 inputWindow->connectSignal("delete_event", inputWindow, Wi ndow::windowClose);86 inputWindow->connectSignal("destroy", inputWindow, Widget::doNothingSignal); 87 inputWindow->connectSignal("delete_event", inputWindow, Widget::doNothingSignal); 89 88 90 89 } … … 123 122 gint Player::inputWindowEvent(GtkWidget* w, GdkEventKey* event, void* inputKey) 124 123 { 125 inputButton->setTitle(" teste");124 inputButton->setTitle("press a Key"); 126 125 keySignal = inputButton->connectSignal("key_press_event", inputKey, key_cb); 127 126 inputWindow->open(); 128 127 } 129 128 130 129 /** 131 130 \brief Function which gets keystrokes
Note: See TracChangeset
for help on using the changeset viewer.