Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3157 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_keys.cc


Ignore:
Timestamp:
Dec 11, 2004, 11:29:31 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: better signal-handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui_keys.cc

    r3156 r3157  
    8383
    8484  inputButton = new Button ("test");
    85   inputButton->connectSignal ("button_press_event", inputWindow, Window::windowClose);
    8685  inputWindow->fill (inputButton);
    87   inputWindow->connectSignal("destroy", inputWindow, Window::windowClose);
    88   inputWindow->connectSignal("delete_event", inputWindow, Window::windowClose);
     86  inputWindow->connectSignal("destroy", inputWindow, Widget::doNothingSignal);
     87  inputWindow->connectSignal("delete_event", inputWindow, Widget::doNothingSignal);
    8988
    9089}
     
    123122gint Player::inputWindowEvent(GtkWidget* w, GdkEventKey* event, void* inputKey)
    124123{
    125   inputButton->setTitle("teste");
     124  inputButton->setTitle("press a Key");
    126125  keySignal = inputButton->connectSignal("key_press_event", inputKey, key_cb);
    127126  inputWindow->open();
    128127}
    129 
     128 
    130129/**
    131130   \brief Function which gets keystrokes
Note: See TracChangeset for help on using the changeset viewer.