Custom signal emission

View: New views
4 Messages — Rating Filter:   Alert me  

Custom signal emission

by Renato Merli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


 I want to run on_size_allocate() by emiting the corresponding signal. how to do that ?

 
 thanks in advance, Mauro.



      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Custom signal emission

by Галымжан Кожаев :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If i understand you correctly, you need to run
someWidget.signal_size_allocate().emit(p); where someWidget is an
instance of your widget and p is a Gtk::Allocation object.

2009/10/15, Renato Merli <nmc_br@...>:

>
>  I want to run on_size_allocate() by emiting the corresponding signal. how
> to do that ?
>
>
>  thanks in advance, Mauro.
>
>
>
>
> ____________________________________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@...
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Custom signal emission

by Renato Merli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- Em qui, 15/10/09, Галымжан Кожаев <kozhayev@...> escreveu:

> If i understand you correctly, you
> need to run
> someWidget.signal_size_allocate().emit(p); where someWidget
> is an
> instance of your widget and p is a Gtk::Allocation object.
 

When i try what you told, i get the following error message:

'class Glib::SignalProxy1<void, Gtk::Allocation&>' has no member named 'emit'


> >  I want to run on_size_allocate() by emiting the
> corresponding signal. how
> > to do that ?
> >
> >
> >
> ____________________________________________________________________________________
> > Veja quais são os assuntos do momento no Yahoo!
> +Buscados
> > http://br.maisbuscados.yahoo.com
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list@...
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list
> >
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list@...
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>


      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Custom signal emission

by Murray Cumming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-10-15 at 17:38 -0700, Renato Merli wrote:

> --- Em qui, 15/10/09, Галымжан Кожаев <kozhayev@...> escreveu:
>
> > If i understand you correctly, you
> > need to run
> > someWidget.signal_size_allocate().emit(p); where someWidget
> > is an
> > instance of your widget and p is a Gtk::Allocation object.
>  
>
> When i try what you told, i get the following error message:
>
> 'class Glib::SignalProxy1<void, Gtk::Allocation&>' has no member named 'emit'

Standard gtkmm signals wrap existing GTK+ signals. They don't offer a
way to emit them because this is generaly not a good idea.

If you must then you can use the regular C API to emit the underlying C
signal. Sometimes there is a C function that emits the specific signal,
sometimes doing extra checks.  

It's generally impossible to say if emitting a particular GTK+ signal is
a good idea without knowing more about what you are doing.

> > >  I want to run on_size_allocate() by emiting the
> > corresponding signal. how
> > > to do that ?


--
murrayc@...
www.murrayc.com
www.openismus.com

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list