openbsd-ports/net/gabber/patches/patch-src_GladeHelper_hh
2004-01-05 02:04:54 +00:00

29 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_GladeHelper_hh,v 1.1 2004/01/05 02:04:54 espie Exp $
--- src/GladeHelper.hh.orig 2004-01-05 02:50:43.000000000 +0100
+++ src/GladeHelper.hh 2004-01-05 02:53:26.000000000 +0100
@@ -24,13 +24,14 @@
#include <glade/glade-xml.h>
#include <gtk/gtkobject.h>
#include <gtk--/base.h>
+#include <iostream>
template<class T> T* getWidgetPtr(GladeXML* g, const char* name)
{
T* result = static_cast<T*>(Gtk::wrap_auto((GtkObject*)glade_xml_get_widget(g, name)));
if (result == NULL)
{
- cerr << "** ERROR **: unable to load widget: " << name << endl;
+ std::cerr << "** ERROR **: unable to load widget: " << name << std::endl;
g_assert(result != NULL);
}
return result;
@@ -41,7 +42,7 @@ template<class T> T* getWidgetPtr_GTK(Gl
T* result = (T*)glade_xml_get_widget(g, name);
if (result == NULL)
{
- cerr << "** ERROR **: unable to load widget: " << name << endl;
+ std::cerr << "** ERROR **: unable to load widget: " << name << std::endl;
g_assert(result != NULL);
}
return result;