Changeset 3165 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_keys.cc
- Timestamp:
- Dec 13, 2004, 2:17:30 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_keys.cc
r3164 r3165 68 68 69 69 closeButton = new Button("close"); 70 #ifdef HAVE_GTK2 70 71 closeButton->connectSignal("button_press_event", pKeyWindow, Window::windowClose); 72 #endif /* HAVE_GTK2 */ 71 73 72 74 pKeysBox->fill(closeButton); … … 74 76 pKeyWindow->fill(pKeyFrame); 75 77 Window::addWindow(pKeyWindow); 78 #ifdef HAVE_GTK2 76 79 pKeyWindow->connectSignal("destroy", pKeyWindow, Window::windowClose); 77 80 pKeyWindow->connectSignal("delete_event", pKeyWindow, Window::windowClose); 81 #endif /* HAVE_GTK2 */ 78 82 79 83 openButton = new Button (player); 84 #ifdef HAVE_GTK2 80 85 openButton->connectSignal("button_press_event", pKeyWindow, Window::windowOpen); 86 #endif /* HAVE_GTK2 */ 81 87 82 88 inputWindow = new Window("inputWindow"); … … 84 90 inputButton = new Button ("test"); 85 91 inputWindow->fill (inputButton); 92 #ifdef HAVE_GTK2 86 93 inputWindow->connectSignal("destroy", Widget::doNothingSignal); 87 94 inputWindow->connectSignal("delete_event", Widget::doNothingSignal); 95 #endif /* HAVE_GTK2 */ 88 96 89 97 } … … 96 104 inputKey[key]->pKeyOLabel = new OptionLabel (name, name); 97 105 inputKey[key]->pKeyOLabel->saveable = true; 98 106 107 #ifdef HAVE_GTK2 99 108 //inputKey[key]->pKeyButton->connectSignal("key_press_event", inputKey[key]->pKeyButton, key_cb); 100 109 inputKey[key]->pKeyButton->connectSignal("button_press_event", inputKey[key], inputWindowEvent); 110 #endif /* HAVE_GTK2 */ 101 111 102 112 inputKey[key]->pKeyBox->fill(inputKey[key]->pKeyButton); … … 120 130 long Player::keySignal = 0; 121 131 132 #ifdef HAVE_GTK2 122 133 gint Player::inputWindowEvent(GtkWidget* w, GdkEventKey* event, void* inputKey) 123 134 { … … 264 275 inputWindow->close(); 265 276 } 277 #endif /* HAVE_GTK2 */
Note: See TracChangeset
for help on using the changeset viewer.