Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3154 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Dec 11, 2004, 8:12:01 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: gtk-fix if window gets closed by windowManager

Location:
orxonox/trunk/gui
Files:
4 edited

Legend:

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

    r3153 r3154  
    4040    bannerEventBox->connectSignal ("button_press_event", logoWindow, Window::windowOpen);
    4141
    42 
    4342  logoWindow->connectSignal("destroy", logoWindow, Window::windowClose);
    4443  logoWindow->connectSignal("delete_event", logoWindow, Window::windowClose);
  • orxonox/trunk/gui/orxonox_gui_gtk.cc

    r3153 r3154  
    292292  gtk_window_set_policy (GTK_WINDOW(widget), TRUE, TRUE, TRUE);
    293293#if !defined(__WIN32__)
    294   gtk_window_set_decorated (GTK_WINDOW (widget), FALSE);
     294  //  gtk_window_set_decorated (GTK_WINDOW (widget), FALSE);
    295295#endif
    296296  gtk_container_set_border_width (GTK_CONTAINER (widget), 3);
  • orxonox/trunk/gui/orxonox_gui_keys.cc

    r3153 r3154  
    5959
    6060  pKeyWindow = new Window("keys of player");
     61  pKeyFrame = new Frame ("keys");
    6162   pKeysBox = new Box('v');
    6263    pKeysBox->fill(addKey(UP, "up"));
     
    6869    closeButton = new Button("close");
    6970    closeButton->connectSignal("button_press_event", pKeyWindow, Window::windowClose);
     71
    7072    pKeysBox->fill(closeButton);
    71    pKeyWindow->fill(pKeysBox);
     73    pKeyFrame->fill(pKeysBox);
     74   pKeyWindow->fill(pKeyFrame);
    7275   //  Window::addWindow(pKeyWindow);
     76   pKeyWindow->connectSignal("destroy", pKeyWindow, Window::windowClose);
     77   pKeyWindow->connectSignal("delete_event", pKeyWindow, Window::windowClose);
    7378
    7479  openButton = new Button (player);
  • orxonox/trunk/gui/orxonox_gui_keys.h

    r3153 r3154  
    2323  Box* keysBox;
    2424  Player* player1;
    25   Player* player2;
     25  //  Player* player2;
    2626  Button* misc;
    2727
     
    3838 private:
    3939  Window* pKeyWindow;
     40  Frame* pKeyFrame;
    4041  Button* openButton;
    4142  Button* closeButton;
Note: See TracChangeset for help on using the changeset viewer.