From: mattn Date: Sun, 16 Mar 2008 19:09:40 +0000 (+0000) Subject: * allow the setting of the orientation and the gametype in the gtkgensurf plugin... X-Git-Tag: xonotic-v0.7.0~16^2~12^2~112^2~37 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=071aff8554d5f4d85c5d4f241b5c5f4ede39384b;p=xonotic%2Fnetradiant.git * allow the setting of the orientation and the gametype in the gtkgensurf plugin (they were set to insensitive before and thus didn't allow the changing of the values) git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@218 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- diff --git a/contrib/gtkgensurf/gendlgs.cpp b/contrib/gtkgensurf/gendlgs.cpp index a89db46e..6476b5dc 100644 --- a/contrib/gtkgensurf/gendlgs.cpp +++ b/contrib/gtkgensurf/gendlgs.cpp @@ -270,6 +270,8 @@ static void SetDlgValues (int tab) switch (tab) { case GENERAL_TAB: + // mattn: Deactivated because one wasn't able to switch the gametype or orientation +#if 0 // Hell if I know why, but in the release build the 2nd pass thru the // set_sensitive loop for game_radios crashes. No need to do this more // than once anyhow. @@ -280,6 +282,7 @@ static void SetDlgValues (int tab) for (i = 0; i < 6; i++) gtk_widget_set_sensitive (plane_radios[i], (i == Plane ? TRUE : FALSE)); } +#endif gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (game_radios[Game]), TRUE); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (plane_radios[Plane]), TRUE); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wave_radios[WaveType]), TRUE);