Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3157 in orxonox.OLD for orxonox


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

orxonox/trunk/gui: better signal-handling

Location:
orxonox/trunk/gui
Files:
3 edited

Legend:

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

    r3156 r3157  
    170170  if (widget->isOption >= 1)
    171171    static_cast<Option*>(widget)->redraw();// <<" is : " << static_cast<Option*>(this)->value <<endl;
     172}
     173
     174gint Widget::doNothingSignal (GtkWidget *widget, GdkEvent* event, void* nothing)
     175{
    172176}
    173177
  • orxonox/trunk/gui/orxonox_gui_gtk.h

    r3156 r3157  
    5050  static void listOptions (Widget* widget);
    5151  static void setOptions (Widget* widget);
    52 
     52 
     53  static gint doNothingSignal (GtkWidget *widget, GdkEvent* event, void* nothing);
    5354};
    5455
  • 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.