summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69d270f)
raw | patch | inline | side by side (parent: 69d270f)
author | mental <mental@users.sourceforge.net> | |
Fri, 24 Feb 2006 20:51:22 +0000 (20:51 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Fri, 24 Feb 2006 20:51:22 +0000 (20:51 +0000) |
src/ui/dialog/dialog.cpp | patch | blob | history |
index 238c6d9f7675702cc5d71ed7c36e024c86dd3cd3..7cb360a43c24297a3f41f54dc36bcc4772228f70 100644 (file)
--- a/src/ui/dialog/dialog.cpp
+++ b/src/ui/dialog/dialog.cpp
# include <config.h>
#endif
-#include <typeinfo>
#include <gtkmm/stock.h>
#include <gtk/gtk.h>
void hideCallback(GtkObject *object, gpointer dlgPtr)
{
- Dialog* example;
- if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example))
- return;
+ g_return_if_fail( dlgPtr != NULL );
Dialog *dlg = (Dialog *)dlgPtr;
dlg->onHideF12();
void unhideCallback(GtkObject *object, gpointer dlgPtr)
{
- Dialog* example;
- if ((void*)dlgPtr == 0 || typeid(dlgPtr) != typeid(example))
- return;
+ g_return_if_fail( dlgPtr != NULL );
Dialog *dlg = (Dialog *)dlgPtr;
dlg->onShowF12();