RE: [sigc] Porting libsigc++-1.2 code to libsigc++2.0



Oddly enough, I found something in the glibmm CHANGES file that would seem
to help (always happens.  Post to the list only to find the answer in the
next few minutes!)

>From glibmm-2.4.7 CHANGES file:

Changes between glibmm 2.2 (previously part of gtkmm) and glibmm 2.4:

* glibmm is now a separate module, for use with non-GUI software.
  (Note that glibmm 2.4 and gtkmm 2.4 install in parallel with
   gtkmm 2.2 - so you can install and use both simultaneously and
   port to 2.4 whenever you are ready.) 
* glibmm now uses libsigc++ 2 rather than libsigc++ 1.2.
  There is a libsigc++ compatibility header. The new, undeprecated, API
  is slightly improved.
  - Connecting signal handlers:
      signal_something().connect( SigC::slot(*this,
&Something::on_something) );
    should become
      signal_something().connect( sigc::mem_fun(*this,
&Something::on_something) );
    or, for non-member methods:
      signal_something().connect( sigc::ptr_fun(&Something::on_something) );
  - Binding extra parameters:
      SigC::bind(...)
    should become
      sigc::bind(...)
  - Declaring signals:
      SigC::Signal1<void, int>
    should become
      sigc::signal<void, int>
  - Declaring slots:
      SigC::Slot1<void, int>
    should become
      sigc::slot<void,int>
  - Inheriting from the libsigc++ base class:
      class Something : public SigC::Object
    should become
      class Something : public sigc::trackable


> -----Original Message-----
> From: Jeff Simpson [mailto:llcooljeff gmail com]
> Sent: Wednesday, July 13, 2005 1:14 PM
> To: Ohrnberger, Erik
> Cc: libsigc-list gnome org
> Subject: Re: [sigc] Porting libsigc++-1.2 code to libsigc++2.0
> 
> 
> If you find anything, let me know. I've posted here before and
> couldn't get much information on it (afaict, there is no complete
> documentation or example/tutorial code for 2.0 yet)
> 
>  - Jeff
> 
> On 7/13/05, erik_ohrnberger dme net <erik_ohrnberger dme net> wrote:
> > I've been searching for information on what I have to 
> change in my code to
> > migrate it from ibsigc++-1.2 to libgigc++-2.0 (as part of 
> the move from
> > gtkmm-2.0 to gtkmm-2.4)
> > 
> > Any pointers or web references that I can use to help me 
> accomplish this
> > would be greatly appreciated.
> > 
> > Thanks in advance!
> > 
> > Erik.
> > _______________________________________________
> > libsigc-list mailing list
> > libsigc-list gnome org
> > http://mail.gnome.org/mailman/listinfo/libsigc-list
> >
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]