From 6b3915d8f2996d56190dd831f662af0c77e4d328 Mon Sep 17 00:00:00 2001 From: jdolan Date: Sun, 7 Jul 2013 09:28:31 -0400 Subject: [PATCH] Fully conditionalize the prefab path preference. Fixes the last compiler warning in preferences.cpp. --- radiant/preferences.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index 31b6603..de86a87 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -514,6 +514,8 @@ static void OnBtnBrowseEditor( GtkWidget *widget, gpointer data ){ } #endif +#define PREFERENCES_HAVE_PREFAB_PATH 0 +#if PREFERENCES_HAVE_PREFAB_PATH static void OnBtnBrowseprefab( GtkWidget *widget, gpointer data ){ PrefsDlg *dlg = (PrefsDlg*)data; char *path = dlg->m_strPrefabPath; @@ -532,6 +534,7 @@ static void OnBtnBrowseprefab( GtkWidget *widget, gpointer data ){ free( dir ); } } +#endif static void OnBtnBrowseuserini( GtkWidget *widget, gpointer data ){ PrefsDlg *dlg = (PrefsDlg*)data; @@ -2503,7 +2506,7 @@ void PrefsDlg::BuildDialog(){ (GtkAttachOptions) ( 0 ), 1, 0 ); AddDialogData( entry, &m_strPrefabPath, DLG_ENTRY_TEXT ); -#if 0 +#if PREFERENCES_HAVE_PREFAB_PATH // browse button button = gtk_button_new_with_label( "..." ); gtk_widget_show( button );