Re: Gtk 1.2 "gtk_object_class_add_signals" in Gtk 2



Earle Robert Nietzel <earlero mi madritel es> writes:
Hi,

In the Gtk 1.2 API there exists this function:

void        gtk_object_class_add_signals 
<http://developer.gnome.org/doc/API/gtk/gtkobject.html#GTK-OBJECT-CLASS-ADD-SIGNALS>    (GtkObjectClass 
*klass,
                                             guint 
<http://developer.gnome.org/doc/API/glib/glib-basic-types.html#GUINT> *signals,
                                             guint 
<http://developer.gnome.org/doc/API/glib/glib-basic-types.html#GUINT> nsignals);


When porting this too Gtk 2.0 is there an equivalent function?


When you do g_signal_new(), the signal is automatically added to the
class, so you don't need that function anymore - just delete your call
to it and stuff should work.

Havoc



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