]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/prtview/AboutDialog.cpp
64bit compile fixes
[xonotic/netradiant.git] / contrib / prtview / AboutDialog.cpp
index 3bb3a33aeb3778dc6ef302f50abe52332a816f74..1c6b735f5dd32c618e52d2cd20a41ef9c129ed7e 100644 (file)
@@ -17,21 +17,14 @@ License along with this library; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-// AboutDialog.cpp : implementation file
-//
+#include "AboutDialog.h"
+#include <gtk/gtk.h>
+#include <gtkutil/pointer.h>
+#include "version.h"
+#include "gtkutil/pointer.h"
 
-#include "stdafx.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-//static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CAboutDialog dialog
-
-#ifdef GTK_PLUGIN
+#include "prtview.h"
+#include "ConfigDialog.h"
 
 static void dialog_button_callback (GtkWidget *widget, gpointer data)
 {
@@ -43,7 +36,7 @@ static void dialog_button_callback (GtkWidget *widget, gpointer data)
   ret = (int*)g_object_get_data (G_OBJECT (parent), "ret");
 
   *loop = 0;
-  *ret = (int)data;
+  *ret = gpointer_to_int(data);
 }
 
 static gint dialog_delete_callback (GtkWidget *widget, GdkEvent* event, gpointer data)
@@ -107,33 +100,6 @@ void DoAboutDlg ()
   gtk_widget_destroy (dlg);
 }
 
-#else // GTK_PLUGIN
-
-CAboutDialog::CAboutDialog(CWnd* pParent /*=NULL*/)
-       : CDialog(CAboutDialog::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(CAboutDialog)
-               // NOTE: the ClassWizard will add member initialization here
-       //}}AFX_DATA_INIT
-}
-
-
-void CAboutDialog::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CAboutDialog)
-               // NOTE: the ClassWizard will add DDX and DDV calls here
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CAboutDialog, CDialog)
-       //{{AFX_MSG_MAP(CAboutDialog)
-               // NOTE: the ClassWizard will add message map macros here
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-#endif // GTK_PLUGIN
 
 /////////////////////////////////////////////////////////////////////////////
 // CAboutDialog message handlers