diff options
author | Tim Janik <timj@gtk.org> | 2001-03-08 16:36:17 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2001-03-08 16:36:17 +0000 |
commit | 06718ecfed1751854486e5c4fbc3d1e0c3d37e00 (patch) | |
tree | 0ad1633064fa415789e235ea6877867f7f20a9c3 | |
parent | 23f37e311dd112b8eaaaaf1a563d239fb8817d62 (diff) | |
download | gdk-pixbuf-06718ecfed1751854486e5c4fbc3d1e0c3d37e00.tar.gz |
added accumulator data argument to g_signal_newc() functions.
Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org>
* *.c: added accumulator data argument to g_signal_newc()
functions.
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model):
* gtk/gtktreeview.c (gtk_tree_view_setup_model):
* gtk/treestoretest.c (make_window):
s/g_signal_connect/g_signal_connectc/.
* gtk/gtktextbuffer.c: completed signal arg fixups,
they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 13 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 13 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 13 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 13 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 13 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 13 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtk-unused.sgml | 6 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtksignal.sgml | 203 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtktypeutils.sgml | 20 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtkwidget.sgml | 22 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-loader.c | 10 | ||||
-rw-r--r-- | gtk/gtkoptionmenu.c | 2 | ||||
-rw-r--r-- | gtk/gtksignal.c | 2 | ||||
-rw-r--r-- | gtk/gtktextbuffer.c | 36 | ||||
-rw-r--r-- | gtk/gtktextlayout.c | 12 | ||||
-rw-r--r-- | gtk/gtktexttag.c | 4 | ||||
-rw-r--r-- | gtk/gtktexttagtable.c | 12 | ||||
-rw-r--r-- | gtk/gtktreemodel.c | 8 | ||||
-rw-r--r-- | gtk/gtktreemodelsort.c | 32 | ||||
-rw-r--r-- | gtk/gtktreeview.c | 40 | ||||
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 4 | ||||
-rw-r--r-- | gtk/treestoretest.c | 24 | ||||
-rw-r--r-- | tests/treestoretest.c | 24 |
24 files changed, 325 insertions, 227 deletions
@@ -1,3 +1,16 @@ +Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org> + + * *.c: added accumulator data argument to g_signal_newc() + functions. + + * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): + * gtk/gtktreeview.c (gtk_tree_view_setup_model): + * gtk/treestoretest.c (make_window): + s/g_signal_connect/g_signal_connectc/. + + * gtk/gtktextbuffer.c: completed signal arg fixups, + they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag. + Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 0bd1cbdef..16d6d0557 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,16 @@ +Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org> + + * *.c: added accumulator data argument to g_signal_newc() + functions. + + * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): + * gtk/gtktreeview.c (gtk_tree_view_setup_model): + * gtk/treestoretest.c (make_window): + s/g_signal_connect/g_signal_connectc/. + + * gtk/gtktextbuffer.c: completed signal arg fixups, + they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag. + Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 0bd1cbdef..16d6d0557 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,16 @@ +Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org> + + * *.c: added accumulator data argument to g_signal_newc() + functions. + + * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): + * gtk/gtktreeview.c (gtk_tree_view_setup_model): + * gtk/treestoretest.c (make_window): + s/g_signal_connect/g_signal_connectc/. + + * gtk/gtktextbuffer.c: completed signal arg fixups, + they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag. + Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 0bd1cbdef..16d6d0557 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,16 @@ +Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org> + + * *.c: added accumulator data argument to g_signal_newc() + functions. + + * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): + * gtk/gtktreeview.c (gtk_tree_view_setup_model): + * gtk/treestoretest.c (make_window): + s/g_signal_connect/g_signal_connectc/. + + * gtk/gtktextbuffer.c: completed signal arg fixups, + they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag. + Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 0bd1cbdef..16d6d0557 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,16 @@ +Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org> + + * *.c: added accumulator data argument to g_signal_newc() + functions. + + * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): + * gtk/gtktreeview.c (gtk_tree_view_setup_model): + * gtk/treestoretest.c (make_window): + s/g_signal_connect/g_signal_connectc/. + + * gtk/gtktextbuffer.c: completed signal arg fixups, + they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag. + Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 0bd1cbdef..16d6d0557 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,16 @@ +Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org> + + * *.c: added accumulator data argument to g_signal_newc() + functions. + + * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): + * gtk/gtktreeview.c (gtk_tree_view_setup_model): + * gtk/treestoretest.c (make_window): + s/g_signal_connect/g_signal_connectc/. + + * gtk/gtktextbuffer.c: completed signal arg fixups, + they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag. + Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 0bd1cbdef..16d6d0557 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,16 @@ +Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org> + + * *.c: added accumulator data argument to g_signal_newc() + functions. + + * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): + * gtk/gtktreeview.c (gtk_tree_view_setup_model): + * gtk/treestoretest.c (make_window): + s/g_signal_connect/g_signal_connectc/. + + * gtk/gtktextbuffer.c: completed signal arg fixups, + they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag. + Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make diff --git a/docs/reference/gtk/tmpl/gtk-unused.sgml b/docs/reference/gtk/tmpl/gtk-unused.sgml index 84e9b4c67..5d0526cc1 100644 --- a/docs/reference/gtk/tmpl/gtk-unused.sgml +++ b/docs/reference/gtk/tmpl/gtk-unused.sgml @@ -1009,12 +1009,6 @@ This function is labeled private. @object: the object whose signal handlers should be destroyed. -<!-- ##### FUNCTION gtk_signal_init ##### --> -<para> - -</para> - - <!-- ##### FUNCTION gtk_signal_n_emissions ##### --> <para> Find out the recursion depth of emissions for a particular type diff --git a/docs/reference/gtk/tmpl/gtksignal.sgml b/docs/reference/gtk/tmpl/gtksignal.sgml index c3696cb03..11705206f 100644 --- a/docs/reference/gtk/tmpl/gtksignal.sgml +++ b/docs/reference/gtk/tmpl/gtksignal.sgml @@ -157,7 +157,7 @@ you might have to write a marshaller. @field: -<!-- ##### TYPEDEF GtkEmissionHook ##### --> +<!-- ##### USER_FUNCTION GtkEmissionHook ##### --> <para> A simple function pointer to get invoked when the signal is emitted. This allows you tie a hook to the signal type, @@ -168,6 +168,13 @@ You may not attach these to signals created with the #GTK_RUN_NO_HOOKS flag. </para> +@object: +@signal_id: +@n_params: +@params: +@data: +@Returns: + <!-- ##### ENUM GtkSignalRunType ##### --> <para> @@ -244,6 +251,13 @@ to the signal. @GTK_RUN_ACTION: @GTK_RUN_NO_HOOKS: +<!-- ##### FUNCTION gtk_signal_init ##### --> +<para> + +</para> + + + <!-- ##### FUNCTION gtk_signal_new ##### --> <para> Create a new signal type. (This is usually done in the @@ -301,7 +315,7 @@ you don't want a return value. the callbacks. -<!-- ##### MACRO gtk_signal_lookup ##### --> +<!-- ##### FUNCTION gtk_signal_lookup ##### --> <para> Given the name of the signal and the type of object it connects to, get the signal's identifying integer. Emitting the signal @@ -311,13 +325,12 @@ by number is somewhat faster than using the name each time. It also tries the ancestors of the given type. </para> -@Returns: the signal's identifying number, or 0 if no signal was found. -<!-- # Unused Parameters # --> @name: the signal's name, e.g. clicked. @object_type: the type that the signal operates on, e.g. #GTK_TYPE_BUTTON. +@Returns: the signal's identifying number, or 0 if no signal was found. -<!-- ##### MACRO gtk_signal_name ##### --> +<!-- ##### FUNCTION gtk_signal_name ##### --> <para> Given the signal's identifier, find its name. </para> @@ -325,9 +338,8 @@ Given the signal's identifier, find its name. Two different signals may have the same name, if they have differing types. </para> -@Returns: the signal name, or NULL if the signal number was invalid. -<!-- # Unused Parameters # --> @signal_id: the signal's identifying number. +@Returns: the signal name, or NULL if the signal number was invalid. <!-- ##### FUNCTION gtk_signal_emit ##### --> @@ -395,7 +407,7 @@ an array of GtkArgs instead of using C's varargs mechanism. followed by one which is a pointer to the return type. -<!-- ##### MACRO gtk_signal_emit_stop ##### --> +<!-- ##### FUNCTION gtk_signal_emit_stop ##### --> <para> This function aborts a signal's current emission. </para> @@ -409,11 +421,11 @@ It will print a warning if used on a signal which isn't being emitted. </para> -@i: -@s: -<!-- # Unused Parameters # --> @object: the object whose signal handlers you wish to stop. @signal_id: the signal identifier, as returned by gtk_signal_lookup(). +<!-- # Unused Parameters # --> +@i: +@s: <!-- ##### FUNCTION gtk_signal_emit_stop_by_name ##### --> @@ -429,7 +441,7 @@ except it will lookup the signal id for you. @name: the name of the signal you wish to stop. -<!-- ##### MACRO gtk_signal_connect ##### --> +<!-- ##### FUNCTION gtk_signal_connect ##### --> <para> Attach a function pointer and user data to a signal for a particular object. @@ -468,38 +480,38 @@ static void attach_print_signal(GtkButton* button, gint to_print) </programlisting> </informalexample> -@o: -@s: -@f: -@d: -@Returns: the connection id. -<!-- # Unused Parameters # --> @object: the object associated with the signal, e.g. if a button is getting pressed, this is that button. @name: name of the signal. @func: function pointer to attach to the signal. @func_data: value to pass as to your function (through the marshaller). +@Returns: the connection id. +<!-- # Unused Parameters # --> +@o: +@s: +@f: +@d: -<!-- ##### MACRO gtk_signal_connect_after ##### --> +<!-- ##### FUNCTION gtk_signal_connect_after ##### --> <para> Attach a function pointer and user data to a signal so that this handler will be called after the other handlers. </para> -@o: -@s: -@f: -@d: -@Returns: the unique identifier for this attachment: the connection id. -<!-- # Unused Parameters # --> @object: the object associated with the signal. @name: name of the signal. @func: function pointer to attach to the signal. @func_data: value to pass as to your function (through the marshaller). +@Returns: the unique identifier for this attachment: the connection id. +<!-- # Unused Parameters # --> +@o: +@s: +@f: +@d: -<!-- ##### MACRO gtk_signal_connect_object ##### --> +<!-- ##### FUNCTION gtk_signal_connect_object ##### --> <para> This function is for registering a callback that will call another object's callback. That is, @@ -520,21 +532,21 @@ gtk_signal_connect_object(button, "clicked", gtk_widget_show, window); </programlisting> </informalexample> -@o: -@s: -@f: -@d: -@Returns: the connection id. -<!-- # Unused Parameters # --> @object: the object which emits the signal. @name: the name of the signal. @func: the function to callback. @slot_object: the object to pass as the first parameter to func. (Though it pretends to take an object, you can really pass any gpointer as the #slot_object .) +@Returns: the connection id. +<!-- # Unused Parameters # --> +@o: +@s: +@f: +@d: -<!-- ##### MACRO gtk_signal_connect_object_after ##### --> +<!-- ##### FUNCTION gtk_signal_connect_object_after ##### --> <para> Attach a signal hook to a signal, passing in an alternate object as the first parameter, and guaranteeing @@ -542,16 +554,16 @@ that the default handler and all normal handlers are called first. </para> -@o: -@s: -@f: -@d: -@Returns: the connection id. -<!-- # Unused Parameters # --> @object: the object associated with the signal. @name: name of the signal. @func: function pointer to attach to the signal. @slot_object: the object to pass as the first parameter to #func. +@Returns: the connection id. +<!-- # Unused Parameters # --> +@o: +@s: +@f: +@d: <!-- ##### FUNCTION gtk_signal_connect_full ##### --> @@ -640,98 +652,95 @@ should signal the removal of this signal. @name: name of the signal. -<!-- ##### MACRO gtk_signal_disconnect ##### --> +<!-- ##### FUNCTION gtk_signal_disconnect ##### --> <para> Destroy a user-defined handler connection. </para> -<!-- # Unused Parameters # --> @object: the object which the handler pertains to. @handler_id: the connection id. -<!-- ##### MACRO gtk_signal_disconnect_by_func ##### --> +<!-- ##### FUNCTION gtk_signal_disconnect_by_func ##### --> <para> Destroy all connections for a particular object, with the given function-pointer and user-data. </para> -@o: -@f: -@d: -<!-- # Unused Parameters # --> @object: the object which emits the signal. @func: the function pointer to search for. @data: the user data to search for. +<!-- # Unused Parameters # --> +@o: +@f: +@d: -<!-- ##### MACRO gtk_signal_disconnect_by_data ##### --> +<!-- ##### FUNCTION gtk_signal_disconnect_by_data ##### --> <para> Destroy all connections for a particular object, with the given user-data. </para> -@o: -@d: -<!-- # Unused Parameters # --> @object: the object which emits the signal. @data: the user data to search for. +<!-- # Unused Parameters # --> +@o: +@d: -<!-- ##### MACRO gtk_signal_handler_block ##### --> +<!-- ##### FUNCTION gtk_signal_handler_block ##### --> <para> Prevent an user-defined handler from being invoked. All other signal processing will go on as normal, but this particular handler will ignore it. </para> -<!-- # Unused Parameters # --> @object: the object which emits the signal to block. @handler_id: the connection id. -<!-- ##### MACRO gtk_signal_handler_block_by_func ##### --> +<!-- ##### FUNCTION gtk_signal_handler_block_by_func ##### --> <para> Prevent a user-defined handler from being invoked, by reference to the user-defined handler's function pointer and user data. (It may result in multiple hooks being blocked, if you've called connect multiple times.) </para> -@o: -@f: -@d: -<!-- # Unused Parameters # --> @object: the object which emits the signal to block. @func: the function pointer of the handler to block. @data: the user data of the handler to block. +<!-- # Unused Parameters # --> +@o: +@f: +@d: -<!-- ##### MACRO gtk_signal_handler_block_by_data ##### --> +<!-- ##### FUNCTION gtk_signal_handler_block_by_data ##### --> <para> Prevent all user-defined handlers with a certain user data from being invoked. </para> -@o: -@d: -<!-- # Unused Parameters # --> @object: the object which emits the signal we want to block. @data: the user data of the handlers to block. +<!-- # Unused Parameters # --> +@o: +@d: -<!-- ##### MACRO gtk_signal_handler_unblock ##### --> +<!-- ##### FUNCTION gtk_signal_handler_unblock ##### --> <para> Undo a block, by connection id. Note that undoing a block doesn't necessarily make the hook callable, because if you block a hook twice, you must unblock it twice. </para> -<!-- # Unused Parameters # --> @object: the object which emits the signal we want to unblock. @handler_id: the emission handler identifier, as returned by gtk_signal_connect(), etc. -<!-- ##### MACRO gtk_signal_handler_unblock_by_func ##### --> +<!-- ##### FUNCTION gtk_signal_handler_unblock_by_func ##### --> <para> Undo a block, by function pointer and data. Note that undoing a block doesn't @@ -739,29 +748,29 @@ necessarily make the hook callable, because if you block a hook twice, you must unblock it twice. </para> -@o: -@f: -@d: -<!-- # Unused Parameters # --> @object: the object which emits the signal we want to unblock. @func: the function pointer to search for. @data: the user data to search for. +<!-- # Unused Parameters # --> +@o: +@f: +@d: -<!-- ##### MACRO gtk_signal_handler_unblock_by_data ##### --> +<!-- ##### FUNCTION gtk_signal_handler_unblock_by_data ##### --> <para> Undo block(s), to all signals for a particular object with a particular user-data pointer </para> -@o: -@d: -<!-- # Unused Parameters # --> @object: the object which emits the signal we want to unblock. @data: the user data to search for. +<!-- # Unused Parameters # --> +@o: +@d: -<!-- ##### MACRO gtk_signal_handler_pending ##### --> +<!-- ##### FUNCTION gtk_signal_handler_pending ##### --> <para> Returns a connection id corresponding to a given signal id and object. </para> @@ -772,64 +781,64 @@ may opt to not emit the signal if no one is attached anyway, thus saving the cost of building the arguments. </para> -@i: -@s: -@b: -@Returns: the connection id, if a connection was found. 0 otherwise. -<!-- # Unused Parameters # --> @object: the object to search for the desired user-defined handler. @signal_id: the number of the signal to search for. @may_be_blocked: whether it is acceptable to return a blocked handler. +@Returns: the connection id, if a connection was found. 0 otherwise. +<!-- # Unused Parameters # --> +@i: +@s: +@b: -<!-- ##### MACRO gtk_signal_handler_pending_by_func ##### --> +<!-- ##### FUNCTION gtk_signal_handler_pending_by_func ##### --> <para> Returns a connection id corresponding to a given signal id, object, function pointer and user data. </para> -@o: -@s: -@b: -@f: -@d: -@Returns: the connection id, if a handler was found. 0 otherwise. -<!-- # Unused Parameters # --> @object: the object to search for the desired handler. @signal_id: the number of the signal to search for. @may_be_blocked: whether it is acceptable to return a blocked handler. @func: the function pointer to search for. @data: the user data to search for. +@Returns: the connection id, if a handler was found. 0 otherwise. +<!-- # Unused Parameters # --> +@o: +@s: +@b: +@f: +@d: -<!-- ##### MACRO gtk_signal_add_emission_hook ##### --> +<!-- ##### FUNCTION gtk_signal_add_emission_hook ##### --> <para> Add an emission hook for a type of signal, for any object. </para> -@i: -@h: -@d: -@Returns: the id (that you may pass as a parameter -to gtk_signal_remove_emission_hook()). -<!-- # Unused Parameters # --> @signal_id: the type of signal to hook for. @hook_func: the function to invoke to handle the emission hook. @data: the user data passed in to hook_func. +@Returns: the id (that you may pass as a parameter +to gtk_signal_remove_emission_hook()). +<!-- # Unused Parameters # --> +@i: +@h: +@d: -<!-- ##### MACRO gtk_signal_remove_emission_hook ##### --> +<!-- ##### FUNCTION gtk_signal_remove_emission_hook ##### --> <para> Delete an emission hook. (see gtk_signal_add_emission_hook()) </para> -@i: -@h: -<!-- # Unused Parameters # --> @signal_id: the id of the signal type. @hook_id: the id of the emission handler, returned by add_emission_hook(). +<!-- # Unused Parameters # --> +@i: +@h: <!-- ##### MACRO gtk_signal_default_marshaller ##### --> diff --git a/docs/reference/gtk/tmpl/gtktypeutils.sgml b/docs/reference/gtk/tmpl/gtktypeutils.sgml index 16a7e543f..6295e2dfa 100644 --- a/docs/reference/gtk/tmpl/gtktypeutils.sgml +++ b/docs/reference/gtk/tmpl/gtktypeutils.sgml @@ -560,33 +560,30 @@ Create a new, unique type. @type_info: must not be null, and @type_info->type_name must also not be null. -<!-- ##### MACRO gtk_type_name ##### --> +<!-- ##### FUNCTION gtk_type_name ##### --> <para> </para> -@Returns: a pointer to the name of a type, or NULL if it has none. -<!-- # Unused Parameters # --> @type: a GtkType +@Returns: a pointer to the name of a type, or NULL if it has none. -<!-- ##### MACRO gtk_type_from_name ##### --> +<!-- ##### FUNCTION gtk_type_from_name ##### --> <para> Get the internal representation of a type given its name. </para> -@Returns: a GtkType -<!-- # Unused Parameters # --> @name: the name of a gtk type +@Returns: a GtkType -<!-- ##### MACRO gtk_type_parent ##### --> +<!-- ##### FUNCTION gtk_type_parent ##### --> <para> </para> -@Returns: the GtkType of the parent -<!-- # Unused Parameters # --> @type: a GtkType +@Returns: the GtkType of the parent <!-- ##### FUNCTION gtk_type_class ##### --> @@ -611,16 +608,15 @@ has all the proper initializers called. @Returns: gpointer to a GtkTypeObject -<!-- ##### MACRO gtk_type_is_a ##### --> +<!-- ##### FUNCTION gtk_type_is_a ##### --> <para> Look in the type hierarchy to see if @type has @is_a_type among its ancestors. Do so with a simple lookup, not a loop. </para> -@Returns: -<!-- # Unused Parameters # --> @type: GtkType @is_a_type: GtkType +@Returns: <!-- ##### FUNCTION gtk_type_enum_get_values ##### --> diff --git a/docs/reference/gtk/tmpl/gtkwidget.sgml b/docs/reference/gtk/tmpl/gtkwidget.sgml index 6efab9196..6f1e03319 100644 --- a/docs/reference/gtk/tmpl/gtkwidget.sgml +++ b/docs/reference/gtk/tmpl/gtkwidget.sgml @@ -1461,6 +1461,17 @@ GtkWidget @widget: the object which received the signal. +<!-- ##### SIGNAL GtkWidget::hierarchy-changed ##### --> +<para> +Emitted when there is a chance in the hierarchy to +which a widget belong. More precisely, a widget is +<firstterm>anchored</firstterm> when its toplevel +ancestor is a #GtkWindow. This signal is emitted when +a widget changes from un-anchored to anchored or vice-versa. +</para> + +@widget: the object which received the signal. + <!-- ##### SIGNAL GtkWidget::key-press-event ##### --> <para> @@ -1530,17 +1541,6 @@ GtkWidget @widget: the object which received the signal. @old_parent: -<!-- ##### SIGNAL GtkWidget::hierarchy-changed ##### --> -<para> -Emitted when there is a chance in the hierarchy to -which a widget belong. More precisely, a widget is -<firstterm>anchored</firstterm> when its toplevel -ancestor is a #GtkWindow. This signal is emitted when -a widget changes from un-anchored to anchored or vice-versa. -</para> - -@widget: the object which received the signal. - <!-- ##### SIGNAL GtkWidget::property-notify-event ##### --> <para> diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index c21f42f8c..2a8d2658e 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -119,7 +119,7 @@ gdk_pixbuf_loader_class_init (GdkPixbufLoaderClass *class) G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GdkPixbufLoaderClass, area_prepared), - NULL, + NULL, NULL, gdk_pixbuf_marshal_VOID__VOID, G_TYPE_NONE, 0); @@ -128,7 +128,7 @@ gdk_pixbuf_loader_class_init (GdkPixbufLoaderClass *class) G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GdkPixbufLoaderClass, area_updated), - NULL, + NULL, NULL, gdk_pixbuf_marshal_VOID__INT_INT_INT_INT, G_TYPE_NONE, 4, G_TYPE_INT, @@ -141,7 +141,7 @@ gdk_pixbuf_loader_class_init (GdkPixbufLoaderClass *class) G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GdkPixbufLoaderClass, frame_done), - NULL, + NULL, NULL, gdk_pixbuf_marshal_VOID__POINTER, G_TYPE_NONE, 1, GDK_TYPE_PIXBUF_FRAME); @@ -151,7 +151,7 @@ gdk_pixbuf_loader_class_init (GdkPixbufLoaderClass *class) G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GdkPixbufLoaderClass, animation_done), - NULL, + NULL, NULL, gdk_pixbuf_marshal_VOID__VOID, G_TYPE_NONE, 0); @@ -160,7 +160,7 @@ gdk_pixbuf_loader_class_init (GdkPixbufLoaderClass *class) G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GdkPixbufLoaderClass, closed), - NULL, + NULL, NULL, gdk_pixbuf_marshal_VOID__VOID, G_TYPE_NONE, 0); } diff --git a/gtk/gtkoptionmenu.c b/gtk/gtkoptionmenu.c index 402739421..2a5115a05 100644 --- a/gtk/gtkoptionmenu.c +++ b/gtk/gtkoptionmenu.c @@ -124,7 +124,7 @@ gtk_option_menu_class_init (GtkOptionMenuClass *class) G_OBJECT_CLASS_TYPE (class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkOptionMenuClass, changed), - NULL, + NULL, NULL, gtk_marshal_VOID__VOID, G_TYPE_NONE, 0); diff --git a/gtk/gtksignal.c b/gtk/gtksignal.c index c1dc0e62e..54a6c14f3 100644 --- a/gtk/gtksignal.c +++ b/gtk/gtksignal.c @@ -46,7 +46,7 @@ gtk_signal_newv (const gchar *name, closure = g_signal_type_cclosure_new (object_type, function_offset); - return g_signal_newv (name, object_type, signal_flags, closure, NULL, marshaller, return_val, n_params, params); + return g_signal_newv (name, object_type, signal_flags, closure, NULL, NULL, marshaller, return_val, n_params, params); } guint diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c index 5f51dd9ed..669ef5b21 100644 --- a/gtk/gtktextbuffer.c +++ b/gtk/gtktextbuffer.c @@ -161,12 +161,12 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, insert_text), - NULL, + NULL, NULL, gtk_marshal_VOID__BOXED_STRING_INT, GTK_TYPE_NONE, 3, - GTK_TYPE_TEXT_ITER, - GTK_TYPE_STRING, + GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE, + GTK_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE, GTK_TYPE_INT); signals[INSERT_PIXBUF] = @@ -174,11 +174,11 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, insert_pixbuf), - NULL, + NULL, NULL, gtk_marshal_VOID__BOXED_OBJECT, GTK_TYPE_NONE, 2, - GTK_TYPE_TEXT_ITER, + GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE, GDK_TYPE_PIXBUF); signals[INSERT_CHILD_ANCHOR] = @@ -186,11 +186,11 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, insert_child_anchor), - NULL, + NULL, NULL, gtk_marshal_VOID__BOXED_OBJECT, GTK_TYPE_NONE, 2, - GTK_TYPE_TEXT_ITER, + GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE, GTK_TYPE_TEXT_CHILD_ANCHOR); signals[DELETE_RANGE] = @@ -198,19 +198,19 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, delete_range), - NULL, + NULL, NULL, gtk_marshal_VOID__BOXED_BOXED, GTK_TYPE_NONE, 2, - GTK_TYPE_TEXT_ITER, - GTK_TYPE_TEXT_ITER); + GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE, + GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE); signals[CHANGED] = g_signal_newc ("changed", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, changed), - NULL, + NULL, NULL, gtk_marshal_VOID__VOID, GTK_TYPE_NONE, 0); @@ -220,7 +220,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, modified_changed), - NULL, + NULL, NULL, gtk_marshal_VOID__VOID, GTK_TYPE_NONE, 0); @@ -230,7 +230,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, mark_set), - NULL, + NULL, NULL, gtk_marshal_VOID__BOXED_OBJECT, GTK_TYPE_NONE, 2, @@ -242,7 +242,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, mark_deleted), - NULL, + NULL, NULL, gtk_marshal_VOID__OBJECT, GTK_TYPE_NONE, 1, @@ -253,7 +253,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, apply_tag), - NULL, + NULL, NULL, gtk_marshal_VOID__OBJECT_BOXED_BOXED, GTK_TYPE_NONE, 3, @@ -266,7 +266,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, remove_tag), - NULL, + NULL, NULL, gtk_marshal_VOID__OBJECT_BOXED_BOXED, GTK_TYPE_NONE, 3, @@ -279,7 +279,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, begin_user_action), - NULL, + NULL, NULL, gtk_marshal_VOID__VOID, GTK_TYPE_NONE, 0); @@ -289,7 +289,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextBufferClass, end_user_action), - NULL, + NULL, NULL, gtk_marshal_VOID__VOID, GTK_TYPE_NONE, 0); diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 70198f7dc..dad06d319 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -176,8 +176,8 @@ gtk_text_layout_class_init (GtkTextLayoutClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextLayoutClass, invalidated), - NULL, - gtk_marshal_VOID__VOID, + NULL, NULL, + gtk_marshal_VOID__VOID, GTK_TYPE_NONE, 0); @@ -186,8 +186,8 @@ gtk_text_layout_class_init (GtkTextLayoutClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextLayoutClass, changed), - NULL, - gtk_marshal_VOID__INT_INT_INT, + NULL, NULL, + gtk_marshal_VOID__INT_INT_INT, GTK_TYPE_NONE, 3, GTK_TYPE_INT, @@ -199,8 +199,8 @@ gtk_text_layout_class_init (GtkTextLayoutClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextLayoutClass, allocate_child), - NULL, - gtk_marshal_VOID__OBJECT_INT_INT, + NULL, NULL, + gtk_marshal_VOID__OBJECT_INT_INT, GTK_TYPE_NONE, 3, GTK_TYPE_OBJECT, diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c index 7d5a0c267..ecdbf1cb8 100644 --- a/gtk/gtktexttag.c +++ b/gtk/gtktexttag.c @@ -604,8 +604,8 @@ gtk_text_tag_class_init (GtkTextTagClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, GTK_SIGNAL_OFFSET (GtkTextTagClass, event), - NULL, - gtk_marshal_INT__OBJECT_BOXED_BOXED, + NULL, NULL, + gtk_marshal_INT__OBJECT_BOXED_BOXED, GTK_TYPE_INT, 3, G_TYPE_OBJECT, diff --git a/gtk/gtktexttagtable.c b/gtk/gtktexttagtable.c index 8f456e10f..710ac8dfa 100644 --- a/gtk/gtktexttagtable.c +++ b/gtk/gtktexttagtable.c @@ -76,8 +76,8 @@ gtk_text_tag_table_class_init (GtkTextTagTableClass *klass) G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextTagTableClass, tag_changed), - NULL, - gtk_marshal_VOID__OBJECT_BOOLEAN, + NULL, NULL, + gtk_marshal_VOID__OBJECT_BOOLEAN, G_TYPE_NONE, 2, G_TYPE_OBJECT, @@ -88,8 +88,8 @@ gtk_text_tag_table_class_init (GtkTextTagTableClass *klass) GTK_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextTagTableClass, tag_added), - NULL, - gtk_marshal_VOID__OBJECT, + NULL, NULL, + gtk_marshal_VOID__OBJECT, GTK_TYPE_NONE, 1, G_TYPE_OBJECT); @@ -99,8 +99,8 @@ gtk_text_tag_table_class_init (GtkTextTagTableClass *klass) GTK_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTextTagTableClass, tag_removed), - NULL, - gtk_marshal_VOID__OBJECT, + NULL, NULL, + gtk_marshal_VOID__OBJECT, GTK_TYPE_NONE, 1, G_TYPE_OBJECT); diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 14f4625dd..beab330d6 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -75,7 +75,7 @@ gtk_tree_model_base_init (gpointer g_class) GTK_TYPE_TREE_MODEL, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTreeModelIface, changed), - NULL, + NULL, NULL, gtk_marshal_VOID__BOXED_BOXED, G_TYPE_NONE, 2, GTK_TYPE_TREE_PATH, @@ -84,7 +84,7 @@ gtk_tree_model_base_init (gpointer g_class) GTK_TYPE_TREE_MODEL, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTreeModelIface, inserted), - NULL, + NULL, NULL, gtk_marshal_VOID__BOXED_BOXED, G_TYPE_NONE, 2, GTK_TYPE_TREE_PATH, @@ -93,7 +93,7 @@ gtk_tree_model_base_init (gpointer g_class) GTK_TYPE_TREE_MODEL, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTreeModelIface, has_child_toggled), - NULL, + NULL, NULL, gtk_marshal_VOID__BOXED_BOXED, G_TYPE_NONE, 2, GTK_TYPE_TREE_PATH, @@ -102,7 +102,7 @@ gtk_tree_model_base_init (gpointer g_class) GTK_TYPE_TREE_MODEL, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTreeModelIface, deleted), - NULL, + NULL, NULL, gtk_marshal_VOID__BOXED, G_TYPE_NONE, 1, GTK_TYPE_TREE_PATH); diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c index d5a248170..1a1e7d924 100644 --- a/gtk/gtktreemodelsort.c +++ b/gtk/gtktreemodelsort.c @@ -252,25 +252,29 @@ gtk_tree_model_sort_set_model (GtkTreeModelSort *tree_model_sort, if (child_model) { tree_model_sort->changed_id = - g_signal_connect (child_model, - "changed", - gtk_tree_model_sort_changed, - tree_model_sort); + g_signal_connectc (child_model, + "changed", + gtk_tree_model_sort_changed, + tree_model_sort, + FALSE); tree_model_sort->inserted_id = - g_signal_connect (child_model, + g_signal_connectc (child_model, "inserted", gtk_tree_model_sort_inserted, - tree_model_sort); + tree_model_sort, + FALSE); tree_model_sort->has_child_toggled_id = - g_signal_connect (child_model, - "has_child_toggled", - gtk_tree_model_sort_has_child_toggled, - tree_model_sort); + g_signal_connectc (child_model, + "has_child_toggled", + gtk_tree_model_sort_has_child_toggled, + tree_model_sort, + FALSE); tree_model_sort->deleted_id = - g_signal_connect (child_model, - "deleted", - gtk_tree_model_sort_deleted, - tree_model_sort); + g_signal_connectc (child_model, + "deleted", + gtk_tree_model_sort_deleted, + tree_model_sort, + FALSE); tree_model_sort->flags = gtk_tree_model_get_flags (child_model); } } diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index cfe9f9c3e..04563be65 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -3664,24 +3664,28 @@ gtk_tree_view_setup_model (GtkTreeView *tree_view) GtkTreeIter iter; tree_view->priv->tree = _gtk_rbtree_new (); - - g_signal_connect (tree_view->priv->model, - "changed", - gtk_tree_view_changed, - tree_view); - g_signal_connect (tree_view->priv->model, - "inserted", - gtk_tree_view_inserted, - tree_view); - g_signal_connect (tree_view->priv->model, - "has_child_toggled", - gtk_tree_view_has_child_toggled, - tree_view); - g_signal_connect (tree_view->priv->model, - "deleted", - gtk_tree_view_deleted, - tree_view); - + + g_signal_connectc (tree_view->priv->model, + "changed", + gtk_tree_view_changed, + tree_view, + FALSE); + g_signal_connectc (tree_view->priv->model, + "inserted", + gtk_tree_view_inserted, + tree_view, + FALSE); + g_signal_connectc (tree_view->priv->model, + "has_child_toggled", + gtk_tree_view_has_child_toggled, + tree_view, + FALSE); + g_signal_connectc (tree_view->priv->model, + "deleted", + gtk_tree_view_deleted, + tree_view, + FALSE); + if (tree_view->priv->columns == NULL) return; diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index c5badb27e..09e510455 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -119,8 +119,8 @@ gtk_tree_view_column_class_init (GtkTreeViewColumnClass *class) GTK_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkTreeViewColumnClass, clicked), - NULL, - gtk_marshal_VOID__VOID, + NULL, NULL, + gtk_marshal_VOID__VOID, GTK_TYPE_NONE, 0); g_object_class_install_property (object_class, diff --git a/gtk/treestoretest.c b/gtk/treestoretest.c index 688054ba3..710954ba5 100644 --- a/gtk/treestoretest.c +++ b/gtk/treestoretest.c @@ -273,10 +273,10 @@ make_window (gint view_type) /* buttons */ button = gtk_button_new_with_label ("gtk_tree_store_remove"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); - g_signal_connect (G_OBJECT (selection), - "selection_changed", - selection_changed, - button); + g_signal_connectc (G_OBJECT (selection), + "selection_changed", + selection_changed, + button, FALSE); gtk_signal_connect (GTK_OBJECT (button), "clicked", iter_remove, tree_view); gtk_widget_set_sensitive (button, FALSE); @@ -293,19 +293,19 @@ make_window (gint view_type) button = gtk_button_new_with_label ("gtk_tree_store_insert_before"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", iter_insert_before, tree_view); - g_signal_connect (G_OBJECT (selection), - "selection_changed", - selection_changed, - button); + g_signal_connectc (G_OBJECT (selection), + "selection_changed", + selection_changed, + button, FALSE); gtk_widget_set_sensitive (button, FALSE); button = gtk_button_new_with_label ("gtk_tree_store_insert_after"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", iter_insert_after, tree_view); - g_signal_connect (GTK_OBJECT (selection), - "selection_changed", - selection_changed, - button); + g_signal_connectc (GTK_OBJECT (selection), + "selection_changed", + selection_changed, + button, FALSE); gtk_widget_set_sensitive (button, FALSE); button = gtk_button_new_with_label ("gtk_tree_store_prepend"); diff --git a/tests/treestoretest.c b/tests/treestoretest.c index 688054ba3..710954ba5 100644 --- a/tests/treestoretest.c +++ b/tests/treestoretest.c @@ -273,10 +273,10 @@ make_window (gint view_type) /* buttons */ button = gtk_button_new_with_label ("gtk_tree_store_remove"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); - g_signal_connect (G_OBJECT (selection), - "selection_changed", - selection_changed, - button); + g_signal_connectc (G_OBJECT (selection), + "selection_changed", + selection_changed, + button, FALSE); gtk_signal_connect (GTK_OBJECT (button), "clicked", iter_remove, tree_view); gtk_widget_set_sensitive (button, FALSE); @@ -293,19 +293,19 @@ make_window (gint view_type) button = gtk_button_new_with_label ("gtk_tree_store_insert_before"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", iter_insert_before, tree_view); - g_signal_connect (G_OBJECT (selection), - "selection_changed", - selection_changed, - button); + g_signal_connectc (G_OBJECT (selection), + "selection_changed", + selection_changed, + button, FALSE); gtk_widget_set_sensitive (button, FALSE); button = gtk_button_new_with_label ("gtk_tree_store_insert_after"); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", iter_insert_after, tree_view); - g_signal_connect (GTK_OBJECT (selection), - "selection_changed", - selection_changed, - button); + g_signal_connectc (GTK_OBJECT (selection), + "selection_changed", + selection_changed, + button, FALSE); gtk_widget_set_sensitive (button, FALSE); button = gtk_button_new_with_label ("gtk_tree_store_prepend"); |