fix and improve the game selection and game configuration dialogs - added dir dialog, using GtkComboBox (added support for GtkComboBox too)

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@248 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
TTimo
2008-04-12 23:01:39 +00:00
parent 1b2e521898
commit 3e38eae740
11 changed files with 152 additions and 304 deletions

View File

@@ -58,20 +58,21 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define __StrDup Q_StrDup
inline char* Q_StrDup(char* pStr)
{
if (pStr == NULL)
pStr = "";
inline char* Q_StrDup( char* _pStr ) {
const char* pStr = _pStr;
if ( pStr == NULL ) {
pStr = "";
}
return strcpy(new char[strlen(pStr)+1], pStr);
return strcpy( new char[ strlen( pStr ) + 1 ], pStr );
}
inline char* Q_StrDup(const char* pStr)
{
if (pStr == NULL)
pStr = "";
inline char* Q_StrDup( const char* pStr ) {
if ( pStr == NULL ) {
pStr = "";
}
return strcpy(new char[strlen(pStr)+1], pStr);
return strcpy( new char[strlen(pStr)+1], pStr );
}
#if defined (__linux__) || defined (__APPLE__)
@@ -286,7 +287,6 @@ public:
}
else
{
g_pStrWork = "";
g_pStrWork = new char[1];
g_pStrWork[0] = '\0';
}
@@ -327,7 +327,6 @@ public:
}
else
{
g_pStrWork = "";
g_pStrWork = new char[1];
g_pStrWork[0] = '\0';
}