Update of /cvsroot/playerstage/code/stage/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21888/src
Modified Files:
gui_menus.c model.c
Log Message:
backported gui_disable fix from HEAD
Index: gui_menus.c
===================================================================
RCS file: /cvsroot/playerstage/code/stage/src/gui_menus.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -d -r1.72 -r1.73
*** gui_menus.c 11 Sep 2007 01:14:19 -0000 1.72
--- gui_menus.c 11 Dec 2007 19:42:18 -0000 1.73
***************
*** 7,10 ****
--- 7,12 ----
#define TOGGLE_PATH "/Main/View"
+ extern int _stg_disable_gui;
+
extern stg_rtk_fig_t* fig_debug_geom;
extern stg_rtk_fig_t* fig_debug_rays;
***************
*** 685,688 ****
--- 687,693 ----
gboolean enabled )
{
+ if (_stg_disable_gui)
+ return;
+
stg_property_toggle_args_t* args =
calloc(sizeof(stg_property_toggle_args_t),1);
Index: model.c
===================================================================
RCS file: /cvsroot/playerstage/code/stage/src/model.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -C2 -d -r1.155 -r1.156
*** model.c 21 Nov 2006 01:30:47 -0000 1.155
--- model.c 11 Dec 2007 19:42:18 -0000 1.156
***************
*** 45,49 ****
extern stg_type_record_t typetable[];
! //extern int _stg_disable_gui;
/** @ingroup stage
--- 45,49 ----
extern stg_type_record_t typetable[];
! extern int _stg_disable_gui;
/** @ingroup stage
***************
*** 424,427 ****
--- 424,430 ----
/* mod->lines_count = 1; */
+ if (!_stg_disable_gui)
+ {
+
// now it's safe to create the GUI components
if( mod->world->win )
***************
*** 477,480 ****
--- 480,484 ----
// exterimental: creates a menu of models
// gui_add_tree_item( mod );
+ }
PRINT_DEBUG3( "finished model %d.%d(%s)",
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit