ret = (int*)g_object_get_data (G_OBJECT (parent), "ret");
*loop = 0;
- *ret = (int)data;
+ *ret = gpointer_to_int (data);
}
gint dialog_delete_callback (GtkWidget *widget, GdkEvent* event, gpointer data)
ret = (int*)gtk_object_get_data (GTK_OBJECT (parent), "ret");
*loop = 0;
- *ret = (int)data;
+ *ret = gpointer_to_int (data);
}
static gint dialog_delete_callback (GtkWidget *widget, GdkEvent* event, gpointer data)
#include "AboutDialog.h"
#include <gtk/gtk.h>
+#include <gtkutil/pointer.h>
#include "version.h"
#include "gtkutil/pointer.h"
#include "LoadPortalFileDialog.h"
#include <gtk/gtk.h>
+#include <gtkutil/pointer.h>
#include "stream/stringstream.h"
#include "convert.h"
#include "gtkutil/pointer.h"
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)
CopiedString tmp(blockType);
if(!EntityClassDoom3_parseBlock(tokeniser, tmp.c_str()))
{
- globalErrorStream() << GlobalFileSystem().findFile(filename) << filename << ":" << tokeniser.getLine() << ": " << tmp.c_str() << " parse failed, skipping rest of file\n";
+ globalErrorStream() << GlobalFileSystem().findFile(filename) << filename << ":" << (unsigned int)tokeniser.getLine() << ": " << tmp.c_str() << " parse failed, skipping rest of file\n";
return false;
}
}