Changeset 2581 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui.cc
- Timestamp:
- Oct 15, 2004, 10:05:13 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui.cc
r2580 r2581 1 /* 2 orxonox - the future of 3D-vertical-scrollers 3 4 Copyright (C) 2004 orx 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software Foundation, 18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 20 21 ### File Specific: 22 main-programmer: Benjamin Grauer 23 24 */ 25 1 26 #include <iostream.h> 2 27 … … 88 113 * Connect a signal with additionally passing the whole Object 89 114 */ 90 g_signal_connect (G_OBJECT (this->widget), event, G_CALLBACK (signal), this); 91 } 92 115 g_signal_connect (G_OBJECT (this->widget), event, G_CALLBACK (signal), this); 116 } 117 118 void Widget::connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, GdkEvent*, void *)) 119 { 120 /** 121 * Connect a signal with additionally passing a whole external Object 122 */ 123 g_signal_connect (G_OBJECT (this->widget), event, G_CALLBACK (signal), extObj); 124 } 93 125 void Widget::show() 94 126 { … … 187 219 gtk_window_set_policy (GTK_WINDOW (widget), TRUE, TRUE, TRUE); 188 220 gtk_container_set_border_width (GTK_CONTAINER (widget), 3); 189 //gtk_window_set_decorated (GTK_WINDOW (widget), FALSE);221 gtk_window_set_decorated (GTK_WINDOW (widget), FALSE); 190 222 this->setTitle (windowName); 191 223 } … … 194 226 { 195 227 /** 196 * Destoying a Window (not implemented) 197 */ 228 * Destoying a Window (very BAD implemented) 229 */ 230 gtk_widget_hide (widget); 231 198 232 } 199 233
Note: See TracChangeset
for help on using the changeset viewer.