tags 454829 + patch thanks Hi!
Please find attached a patch to fix this bug. I have based my changes on Cyril's changes, and added more changes to complete the work. HTH. Thanks. Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog glademm-2.6.0/src/Tag.cc glademm-2.6.0/src/Tag.cc
--- glademm-2.6.0/src/Tag.cc 2003-04-07 12:06:06.000000000 +0530
+++ glademm-2.6.0/src/Tag.cc 2008-03-24 00:23:51.000000000 +0530
@@ -23,6 +23,8 @@
#include <locale.h>
#include <iostream>
+#include <cstring>
+
const Tag *Tag::find(const std::string &tp) const
{ const_iterator i=find(begin(),tp);
if (i==end()) return 0;
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/TagStream.cc /tmp/QieVLDOyT3/glademm-2.6.0/src/TagStream.cc
--- glademm-2.6.0/src/TagStream.cc 2003-05-01 13:47:46.000000000 +0530
+++ glademm-2.6.0/src/TagStream.cc 2008-03-24 00:23:51.000000000 +0530
@@ -20,7 +20,8 @@
#include "TagStream.hh"
#include <cstring>
#include <unistd.h>
-#include <algo.h>
+#include <algorithm>
+#include <iostream>
//#define REMEMBER_EMPTY_SPACE
@@ -73,10 +74,10 @@
{ std::string ret;
std::string::const_iterator i(cont.begin());
while (i!=cont.end())
- { std::string::const_iterator verbatim(::find(i,cont.end(),'&'));
+ { std::string::const_iterator verbatim(std::find(i,cont.end(),'&'));
ret+=std::string(i,verbatim);
if (verbatim!=cont.end())
- { std::string::const_iterator endtag(::find(verbatim,cont.end(),';'));
+ { std::string::const_iterator endtag(std::find(verbatim,cont.end(),';'));
if (endtag!=cont.end()) ++endtag;
std::string tag(verbatim,endtag);
if (tag[1]=='#' && tag[2]=='x')
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/TagStream.hh /tmp/QieVLDOyT3/glademm-2.6.0/src/TagStream.hh
--- glademm-2.6.0/src/TagStream.hh 2002-12-19 16:31:35.000000000 +0530
+++ glademm-2.6.0/src/TagStream.hh 2008-03-24 00:23:51.000000000 +0530
@@ -26,6 +26,8 @@
#include <fstream>
#include <strstream>
+#include <cstring>
+
class TagStream : public Tag
{ // ---- for reading -----
// copied from _GbWidgetLoadData
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/writers/bonobo_dock.cc /tmp/QieVLDOyT3/glademm-2.6.0/src/writers/bonobo_dock.cc
--- glademm-2.6.0/src/writers/bonobo_dock.cc 2002-11-18 17:16:09.000000000 +0530
+++ glademm-2.6.0/src/writers/bonobo_dock.cc 2008-03-24 00:23:51.000000000 +0530
@@ -20,6 +20,8 @@
#include "container.hh"
+#include <cstring>
+
class Bonobo_Dock : public Gtk_Container
{public:
typedef Gtk_Container Parent;
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/writers/bonobo_dockitem.cc /tmp/QieVLDOyT3/glademm-2.6.0/src/writers/bonobo_dockitem.cc
--- glademm-2.6.0/src/writers/bonobo_dockitem.cc 2002-11-18 17:16:09.000000000 +0530
+++ glademm-2.6.0/src/writers/bonobo_dockitem.cc 2008-03-24 00:23:51.000000000 +0530
@@ -20,6 +20,8 @@
#include "bin.hh"
+#include <cstring>
+
class Bonobo_DockItem : public Gtk_Bin
{public:
typedef Gtk_Bin Parent;
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/writers/clist.cc /tmp/QieVLDOyT3/glademm-2.6.0/src/writers/clist.cc
--- glademm-2.6.0/src/writers/clist.cc 2003-01-06 12:57:14.000000000 +0530
+++ glademm-2.6.0/src/writers/clist.cc 2008-03-24 00:23:51.000000000 +0530
@@ -21,6 +21,8 @@
#include "clist.hh"
#include "../strsep.h"
+#include <cstring>
+
static Gtk_CList Gtk_CList(false);
const std::string Gtk_CList::TypeName(const Widget &w) const
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/writers/combo.cc /tmp/QieVLDOyT3/glademm-2.6.0/src/writers/combo.cc
--- glademm-2.6.0/src/writers/combo.cc 2003-03-05 15:03:34.000000000 +0530
+++ glademm-2.6.0/src/writers/combo.cc 2008-03-24 00:23:51.000000000 +0530
@@ -21,6 +21,8 @@
#include "combo.hh"
#include "../strsep.h"
+#include <cstring>
+
static Gtk_Combo Gtk_Combo(false);
const std::string Gtk_Combo::TypeName(const Widget &w) const
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/writers/ctree.cc /tmp/QieVLDOyT3/glademm-2.6.0/src/writers/ctree.cc
--- glademm-2.6.0/src/writers/ctree.cc 2003-01-06 12:57:14.000000000 +0530
+++ glademm-2.6.0/src/writers/ctree.cc 2008-03-24 00:23:51.000000000 +0530
@@ -21,6 +21,8 @@
#include "container.hh"
+#include <cstring>
+
class Gtk_CTree : public Gtk_Container
{public:
typedef Gtk_Container Parent;
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/writers/gnome_about.cc /tmp/QieVLDOyT3/glademm-2.6.0/src/writers/gnome_about.cc
--- glademm-2.6.0/src/writers/gnome_about.cc 2003-01-06 12:57:14.000000000 +0530
+++ glademm-2.6.0/src/writers/gnome_about.cc 2008-03-24 00:23:51.000000000 +0530
@@ -21,6 +21,8 @@
#include "gnome_dialog.hh"
#include "../strsep.h"
+#include <cstring>
+
class Gnome_About : public Gnome_Dialog
{public:
typedef Gnome_Dialog Parent;
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/writers/optionmenu.cc /tmp/QieVLDOyT3/glademm-2.6.0/src/writers/optionmenu.cc
--- glademm-2.6.0/src/writers/optionmenu.cc 2004-05-12 16:44:42.000000000 +0530
+++ glademm-2.6.0/src/writers/optionmenu.cc 2008-03-24 00:23:51.000000000 +0530
@@ -21,6 +21,8 @@
#include "button.hh"
#include "../strsep.h"
+#include <cstring>
+
class Gtk_OptionMenu : public Gtk_Button
{ static const char * const MenuTags;
static Tag menu;
diff -Nru --exclude config.sub --exclude config.guess --exclude changelog /tmp/pIyW2havy2/glademm-2.6.0/src/writers/xpmname.cc /tmp/QieVLDOyT3/glademm-2.6.0/src/writers/xpmname.cc
--- glademm-2.6.0/src/writers/xpmname.cc 2002-06-06 12:58:58.000000000 +0530
+++ glademm-2.6.0/src/writers/xpmname.cc 2008-03-24 00:23:51.000000000 +0530
@@ -2,6 +2,8 @@
#include <string>
#include <Configuration.hh>
+#include <cstring>
+
// parts taken from
/* xpmtoppm.c - read an X11 pixmap file and produce a portable pixmap
**
signature.asc
Description: Digital signature

