X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=contrib%2Fprtview%2FAboutDialog.cpp;h=4ac45ab8d75ccdb2092ac73878ca5d44e8c98eea;hb=bfc8a12a6b315ae261101a34db8ba1b682c67bb7;hp=3bb3a33aeb3778dc6ef302f50abe52332a816f74;hpb=33efc9089296fc4e5f54d43581a0db81576ba848;p=xonotic%2Fnetradiant.git diff --git a/contrib/prtview/AboutDialog.cpp b/contrib/prtview/AboutDialog.cpp index 3bb3a33a..4ac45ab8 100644 --- a/contrib/prtview/AboutDialog.cpp +++ b/contrib/prtview/AboutDialog.cpp @@ -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 +#include +#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) @@ -79,7 +72,7 @@ void DoAboutDlg () label = gtk_label_new ("Version 1.000\n\n" "Gtk port by Leonardo Zide\nleo@lokigames.com\n\n" "Written by Geoffrey DeWan\ngdewan@prairienet.org\n\n" - "Built against GtkRadiant " RADIANT_VERSION "\n" + "Built against NetRadiant " RADIANT_VERSION "\n" __DATE__ ); gtk_widget_show (label); @@ -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