Re: How can be signal_remove() used on Winodw?



According to the documentation, the signal_remove() callback should have a Widget* parameter:

Glib::SignalProxy1<void,Widget*> Gtk::Container::signal_remove ()

Prototype:
    void on_my_remove(Widget* widget)

http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Container.html#aa57f374a6196337e325ec17d79d1981

----- Original Message -----
From: Dimitri Holz <d holz innoventis de>
To: gtkmm-list gnome org
Sent: Thu, Jan 22, 2009 11:57:06 AM +0100
Subject: How can be signal_remove() used on Winodw?

It is a big project whit about 30 files but here is a method that should processing when signal_remove() will be emmitted and few signal bindings:

this->signal_check_resize().connect(sigc::mem_fun(*this, &MainView::MyChangeToolbarSettings)); //compilable

this->signal_remove().connect(sigc::mem_fun(*this,&MainView::OnRemoveWindow)); //not compileable


void MainView::OnRemoveWindow()
{
   int iX, iY;
   this->get_position(iX, iY);
   cout<<iX<<"              "<<iY<<endl;
   if(iX != m_iMainPosX || iY != m_iMainPosY)
   {
       int iSettingsY,iSettingsX;
       int iTrafficY,iTrafficX,iMessageY,iMessageX;
       m_oDiaModeTrafficWindow.get_position(iTrafficX, iTrafficY);
m_oDiaModeTrafficWindow.move(iTrafficX+iX-m_iMainPosX,iTrafficY+iY-m_iMainPosY);
       m_oDiaModeSettingsWindow.get_position(iSettingsX, iSettingsY);
m_oDiaModeSettingsWindow.move(iSettingsX+iX-m_iMainPosX,iSettingsY+iY-m_iMainPosY);
       m_oDiaModeMessageWindow.get_position(iMessageX, iMessageY);
m_oDiaModeMessageWindow.move(iMessageX+iX-m_iMainPosX,iMessageY+iY-m_iMainPosY);
       m_iMainPosX  = iX;
       m_iMainPosY  = iY;
   }
}
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



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