[9890] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] gtkmm: can't use Signal1

daemon@ATHENA.MIT.EDU (Christof Petig)
Thu Nov 5 12:11:46 1998

Date: Thu, 05 Nov 1998 17:32:14 +0100
From: Christof Petig <christof.petig@wtal.de>
To: Gtk-List <gtk-list@redhat.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

This is a multi-part message in MIME format.
--------------B60B933046C54062B563D893
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

Guess it - I'm really stress testing gtkmm for my new widget
(A combo box which fills in idle time, you can give initials. Needed for
decent database access).
Soon available under GPL (any interest?) (Not ported to gtk-1.1)

Now I think I really found a bug! But whether it's the compiler's fault
or gtkmm's I don't know.

the appended micro program doesn't compile -
   class string != class basic_string<char, ...>
while
   typedef basic_string<char,...> string

Really puzzling, isn't it.

    Christof


--------------B60B933046C54062B563D893
Content-Type: text/plain; charset=us-ascii; name="sigtest.cc"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="sigtest.cc"

/*
g++ -g -Wall -DBE_CAREFUL -DDEBUG -I. -I/usr/local/lib/Gtk--/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include   -c sigtest.cc -o sigtest.o
sigtest.cc: In method 'y::y()':
sigtest.cc:9: no matching function for call to 'connect_to_method (Signal1<const basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > > &, y *, void (y::*)(string))'
*/
#include <gtk--sigcpp.h>
#include <string>

class y : public Gtk_Signal_Base
{  Signal1<const string> test;
 public:
   void function(const string y);
   y()
   {  connect_to_method(test,this,&function);
   }
};


--------------B60B933046C54062B563D893--

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post