Add deprecation info.

This commit is contained in:
Matthias Clasen
2002-12-08 01:03:03 +00:00
parent 60ba52f5d2
commit da9cd1c6f6
4 changed files with 51 additions and 95 deletions

View File

@ -1,5 +1,7 @@
2002-12-08 Matthias Clasen <maclas@gmx.de> 2002-12-08 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtkbbox.sgml:
* gtk/tmpl/gtkcontainer.sgml:
* gtk/tmpl/gtksignal.sgml: Add deprecation info. * gtk/tmpl/gtksignal.sgml: Add deprecation info.
* gdk-pixbuf/tmpl/module_interface.sgml: Add docs. * gdk-pixbuf/tmpl/module_interface.sgml: Add docs.

View File

@ -88,6 +88,8 @@ Retrieves the current width and height of all child widgets in a button box.
@widget: a #GtkButtonBox. @widget: a #GtkButtonBox.
@min_width: the width of the buttons contained by @widget. @min_width: the width of the buttons contained by @widget.
@min_height: the height of the buttons contained by @widget. @min_height: the height of the buttons contained by @widget.
@Deprecated: Use the style properties
<literal>"child-min-width/-height"</literal> instead.
<!-- ##### FUNCTION gtk_button_box_get_child_ipadding ##### --> <!-- ##### FUNCTION gtk_button_box_get_child_ipadding ##### -->
@ -98,6 +100,8 @@ Gets the default number of pixels that pad the buttons in a given button box.
@widget: a #GtkButtonBox. @widget: a #GtkButtonBox.
@ipad_x: the horizontal padding used by buttons in @widget. @ipad_x: the horizontal padding used by buttons in @widget.
@ipad_y: the vertical padding used by buttons in @widget. @ipad_y: the vertical padding used by buttons in @widget.
@Deprecated: Use the style properties
<literal>"child-internal-pad-x/-y"</literal> instead.
<!-- ##### MACRO gtk_button_box_set_spacing ##### --> <!-- ##### MACRO gtk_button_box_set_spacing ##### -->
@ -129,7 +133,8 @@ Sets a new default size for the children of a given button box.
@widget: a #GtkButtonBox. @widget: a #GtkButtonBox.
@min_width: a default width for buttons in @widget. @min_width: a default width for buttons in @widget.
@min_height: a default height for buttons in @widget. @min_height: a default height for buttons in @widget.
@Deprecated: Use the style properties
<literal>"child-min-width/-height"</literal> instead.
<!-- ##### FUNCTION gtk_button_box_set_child_ipadding ##### --> <!-- ##### FUNCTION gtk_button_box_set_child_ipadding ##### -->
<para> <para>
@ -140,7 +145,8 @@ box.
@widget: a #GtkButtonBox. @widget: a #GtkButtonBox.
@ipad_x: the horizontal padding that should be used by each button in @widget. @ipad_x: the horizontal padding that should be used by each button in @widget.
@ipad_y: the vertical padding that should be used by each button in @widget. @ipad_y: the vertical padding that should be used by each button in @widget.
@Deprecated: Use the style properties
<literal>"child-internal-pad-x/-y"</literal> instead.
<!-- ##### FUNCTION gtk_button_box_set_child_secondary ##### --> <!-- ##### FUNCTION gtk_button_box_set_child_secondary ##### -->
<para> <para>

View File

@ -43,6 +43,7 @@ Base class for widgets which contain other widgets
Does the same as gtk_container_get_border_width(). Does the same as gtk_container_get_border_width().
</para> </para>
@Deprecated: Use gtk_container_get_border_width() instead.
<!-- ##### FUNCTION gtk_container_add ##### --> <!-- ##### FUNCTION gtk_container_add ##### -->
@ -120,6 +121,7 @@ Does the same as gtk_container_get_border_width().
@marshal: @marshal:
@callback_data: @callback_data:
@notify: @notify:
@Deprecated: Use gtk_container_foreach() instead.
<!-- ##### MACRO gtk_container_children ##### --> <!-- ##### MACRO gtk_container_children ##### -->
@ -128,9 +130,7 @@ Does the same as gtk_container_get_children().
</para> </para>
@Returns: @Returns:
<!-- # Unused Parameters # --> @Deprecated: Use gtk_container_get_children() instead.
@container:
<!-- ##### FUNCTION gtk_container_get_children ##### --> <!-- ##### FUNCTION gtk_container_get_children ##### -->
<para> <para>

View File

@ -265,12 +265,10 @@ for example, gtk_marshal_BOOL__STRING() describes a marshaller
which takes a string and returns a boolean value. which takes a string and returns a boolean value.
@return_val: the type of return value, or #GTK_TYPE_NONE for a signal @return_val: the type of return value, or #GTK_TYPE_NONE for a signal
without a return value. without a return value.
@n_args: @n_args: the number of parameter the handlers may take.
@Varargs: a list of #GTK_TYPE_*, one for each parameter. @Varargs: a list of #GTK_TYPE_*, one for each parameter.
@Returns: the signal id. @Returns: the signal id.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_new() instead.
@nparams: the number of parameter the handlers may take.
<!-- ##### FUNCTION gtk_signal_newv ##### --> <!-- ##### FUNCTION gtk_signal_newv ##### -->
<para> <para>
@ -290,13 +288,11 @@ the class structure for this type.
@marshaller: @marshaller:
@return_val: the type of the return value, or #GTK_TYPE_NONE if @return_val: the type of the return value, or #GTK_TYPE_NONE if
you don't want a return value. you don't want a return value.
@n_args: @n_args: the number of parameters to the user-defined handlers.
@args: @args: an array of #GtkType<!---->s, describing the prototype to
@Returns: the signal id.
<!-- # Unused Parameters # -->
@nparams: the number of parameters to the user-defined handlers.
@params: an array of GtkTypes, describing the prototype to
the callbacks. the callbacks.
@Returns: the signal id.
@Deprecated: Use g_signal_newv() instead.
<!-- ##### MACRO gtk_signal_lookup ##### --> <!-- ##### MACRO gtk_signal_lookup ##### -->
@ -312,6 +308,7 @@ It also tries the ancestors of the given type.
@name: the signal's name, e.g. clicked. @name: the signal's name, e.g. clicked.
@object_type: the type that the signal operates on, e.g. #GTK_TYPE_BUTTON. @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. @Returns: the signal's identifying number, or 0 if no signal was found.
@Deprecated: Use g_signal_lookup() instead.
<!-- ##### MACRO gtk_signal_name ##### --> <!-- ##### MACRO gtk_signal_name ##### -->
@ -324,7 +321,7 @@ Two different signals may have the same name, if they have differing types.
@signal_id: the signal's identifying number. @signal_id: the signal's identifying number.
@Returns: the signal name, or %NULL if the signal number was invalid. @Returns: the signal name, or %NULL if the signal number was invalid.
@Deprecated: Use g_signal_name() instead.
<!-- ##### FUNCTION gtk_signal_emit ##### --> <!-- ##### FUNCTION gtk_signal_emit ##### -->
<para> <para>
@ -347,6 +344,7 @@ The default handler will be called first if
@signal_id: the signal identifier. @signal_id: the signal identifier.
@Varargs: the parameters to the function, followed @Varargs: the parameters to the function, followed
by a pointer to the return type, if any. by a pointer to the return type, if any.
@Deprecated: Use g_signal_emit() instead.
<!-- ##### FUNCTION gtk_signal_emit_by_name ##### --> <!-- ##### FUNCTION gtk_signal_emit_by_name ##### -->
@ -359,6 +357,7 @@ handlers to be run.
@name: the name of the signal. @name: the name of the signal.
@Varargs: the parameters to the function, followed @Varargs: the parameters to the function, followed
by a pointer to the return type, if any. by a pointer to the return type, if any.
@Deprecated: Use g_signal_emit_by_name() instead.
<!-- ##### FUNCTION gtk_signal_emitv ##### --> <!-- ##### FUNCTION gtk_signal_emitv ##### -->
@ -370,10 +369,9 @@ an array of GtkArgs instead of using C's varargs mechanism.
@object: the object to emit the signal to. @object: the object to emit the signal to.
@signal_id: the signal identifier. @signal_id: the signal identifier.
@args: @args: an array of GtkArgs, one for each parameter,
<!-- # Unused Parameters # -->
@params: an array of GtkArgs, one for each parameter,
followed by one which is a pointer to the return type. followed by one which is a pointer to the return type.
@Deprecated: Use g_signal_emitv() instead.
<!-- ##### FUNCTION gtk_signal_emitv_by_name ##### --> <!-- ##### FUNCTION gtk_signal_emitv_by_name ##### -->
@ -385,10 +383,9 @@ an array of GtkArgs instead of using C's varargs mechanism.
@object: the object to emit the signal to. @object: the object to emit the signal to.
@name: the name of the signal. @name: the name of the signal.
@args: @args: an array of GtkArgs, one for each parameter,
<!-- # Unused Parameters # -->
@params: an array of GtkArgs, one for each parameter,
followed by one which is a pointer to the return type. followed by one which is a pointer to the return type.
@Deprecated: Use g_signal_emitv() and g_signal_lookup() instead.
<!-- ##### MACRO gtk_signal_emit_stop ##### --> <!-- ##### MACRO gtk_signal_emit_stop ##### -->
@ -407,22 +404,21 @@ isn't being emitted.
@object: the object whose signal handlers you wish to stop. @object: the object whose signal handlers you wish to stop.
@signal_id: the signal identifier, as returned by g_signal_lookup(). @signal_id: the signal identifier, as returned by g_signal_lookup().
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_stop_emission() instead.
@i:
@s:
<!-- ##### FUNCTION gtk_signal_emit_stop_by_name ##### --> <!-- ##### FUNCTION gtk_signal_emit_stop_by_name ##### -->
<para> <para>
This function aborts a signal's current emission. This function aborts a signal's current emission.
</para> </para>
<para>It is just like <para>
gtk_signal_emit_stop() It is just like gtk_signal_emit_stop()
except it will lookup the signal id for you. except it will lookup the signal id for you.
</para> </para>
@object: the object whose signal handlers you wish to stop. @object: the object whose signal handlers you wish to stop.
@name: the name of the signal you wish to stop. @name: the name of the signal you wish to stop.
@Deprecated: Use g_signal_stop_emission_by_name() instead.
<!-- ##### MACRO gtk_signal_connect ##### --> <!-- ##### MACRO gtk_signal_connect ##### -->
@ -470,11 +466,7 @@ is getting pressed, this is that button.
@func: function pointer to attach to the signal. @func: function pointer to attach to the signal.
@func_data: value to pass as to your function (through the marshaller). @func_data: value to pass as to your function (through the marshaller).
@Returns: the connection id. @Returns: the connection id.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_connect() instead.
@o:
@s:
@f:
@d:
<!-- ##### MACRO gtk_signal_connect_after ##### --> <!-- ##### MACRO gtk_signal_connect_after ##### -->
@ -488,11 +480,7 @@ so that this handler will be called after the other handlers.
@func: function pointer to attach to the signal. @func: function pointer to attach to the signal.
@func_data: value to pass as to your function (through the marshaller). @func_data: value to pass as to your function (through the marshaller).
@Returns: the unique identifier for this attachment: the connection id. @Returns: the unique identifier for this attachment: the connection id.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_connect_after() instead.
@o:
@s:
@f:
@d:
<!-- ##### MACRO gtk_signal_connect_object ##### --> <!-- ##### MACRO gtk_signal_connect_object ##### -->
@ -523,12 +511,7 @@ gtk_signal_connect_object (button, "clicked", gtk_widget_show, window);
(Though it pretends to take an object, you can (Though it pretends to take an object, you can
really pass any gpointer as the #slot_object .) really pass any gpointer as the #slot_object .)
@Returns: the connection id. @Returns: the connection id.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_connect_swapped() instead.
@o:
@s:
@f:
@d:
<!-- ##### MACRO gtk_signal_connect_object_after ##### --> <!-- ##### MACRO gtk_signal_connect_object_after ##### -->
<para> <para>
@ -543,11 +526,8 @@ handlers are called first.
@func: function pointer to attach to the signal. @func: function pointer to attach to the signal.
@slot_object: the object to pass as the first parameter to #func. @slot_object: the object to pass as the first parameter to #func.
@Returns: the connection id. @Returns: the connection id.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_connect_data() instead, passing
@o: <literal>G_CONNECT_AFTER|G_CONNECT_SWAPPED</literal> as @connect_flags.
@s:
@f:
@d:
<!-- ##### FUNCTION gtk_signal_connect_full ##### --> <!-- ##### FUNCTION gtk_signal_connect_full ##### -->
@ -572,16 +552,7 @@ object primarily.
the signal's default behavior preside (i.e. depending on #GTK_RUN_FIRST the signal's default behavior preside (i.e. depending on #GTK_RUN_FIRST
and #GTK_RUN_LAST). and #GTK_RUN_LAST).
@Returns: the connection id. @Returns: the connection id.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_connect_data() instead.
@marshal: the function marshal, see the gtkmarshall documentation for
more details, but briefly: the marshaller is a function which takes
the #GtkObject which emits the signal, the user data, the number of the
arguments, and the array of arguments. It is responsible for
calling the function in the appropriate calling convention.
gtk_signal_default_marshaller is usually fine.
(This shows up, for example, when worrying about matching
c++ or other languages' calling conventions.)
<!-- ##### FUNCTION gtk_signal_connect_while_alive ##### --> <!-- ##### FUNCTION gtk_signal_connect_while_alive ##### -->
<para> <para>
@ -607,9 +578,7 @@ with an integer masquerading as a pointer (through GINT_TO_POINTER()).)
@func_data: pointer to pass to func. @func_data: pointer to pass to func.
@alive_object: object whose death should cause the handler connection @alive_object: object whose death should cause the handler connection
to be destroyed. to be destroyed.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_connect_object() instead.
@signal:
<!-- ##### FUNCTION gtk_signal_connect_object_while_alive ##### --> <!-- ##### FUNCTION gtk_signal_connect_object_while_alive ##### -->
<para> <para>
@ -632,8 +601,8 @@ clean up the handler.
@func: function pointer to attach to the signal. @func: function pointer to attach to the signal.
@alive_object: the user data, which must be an object, whose destruction @alive_object: the user data, which must be an object, whose destruction
should signal the removal of this signal. should signal the removal of this signal.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_connect_object() instead, passing
@signal: <literal>G_CONNECT_SWAPPED</literal> as @connect_flags.
<!-- ##### MACRO gtk_signal_disconnect ##### --> <!-- ##### MACRO gtk_signal_disconnect ##### -->
@ -643,7 +612,7 @@ Destroys a user-defined handler connection.
@object: the object which the handler pertains to. @object: the object which the handler pertains to.
@handler_id: the connection id. @handler_id: the connection id.
@Deprecated: Use g_signal_handler_disconnect() instead.
<!-- ##### MACRO gtk_signal_disconnect_by_func ##### --> <!-- ##### MACRO gtk_signal_disconnect_by_func ##### -->
<para> <para>
@ -654,10 +623,7 @@ the given function-pointer and user-data.
@object: the object which emits the signal. @object: the object which emits the signal.
@func: the function pointer to search for. @func: the function pointer to search for.
@data: the user data to search for. @data: the user data to search for.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_handlers_disconnect_by_func() instead.
@o:
@f:
@d:
<!-- ##### MACRO gtk_signal_disconnect_by_data ##### --> <!-- ##### MACRO gtk_signal_disconnect_by_data ##### -->
@ -668,9 +634,7 @@ the given user-data.
@object: the object which emits the signal. @object: the object which emits the signal.
@data: the user data to search for. @data: the user data to search for.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_handlers_disconnect_matched() instead.
@o:
@d:
<!-- ##### MACRO gtk_signal_handler_block ##### --> <!-- ##### MACRO gtk_signal_handler_block ##### -->
@ -682,6 +646,7 @@ handler will ignore it.
@object: the object which emits the signal to block. @object: the object which emits the signal to block.
@handler_id: the connection id. @handler_id: the connection id.
@Deprecated: Use g_signal_handler_block() instead.
<!-- ##### MACRO gtk_signal_handler_block_by_func ##### --> <!-- ##### MACRO gtk_signal_handler_block_by_func ##### -->
@ -694,10 +659,7 @@ multiple hooks being blocked, if you've called connect multiple times.)
@object: the object which emits the signal to block. @object: the object which emits the signal to block.
@func: the function pointer of the handler to block. @func: the function pointer of the handler to block.
@data: the user data of the handler to block. @data: the user data of the handler to block.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_handlers_block_by_func() instead.
@o:
@f:
@d:
<!-- ##### MACRO gtk_signal_handler_block_by_data ##### --> <!-- ##### MACRO gtk_signal_handler_block_by_data ##### -->
@ -707,9 +669,7 @@ Prevents all user-defined handlers with a certain user data from being invoked.
@object: the object which emits the signal we want to block. @object: the object which emits the signal we want to block.
@data: the user data of the handlers to block. @data: the user data of the handlers to block.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_handlers_block_matched() instead.
@o:
@d:
<!-- ##### MACRO gtk_signal_handler_unblock ##### --> <!-- ##### MACRO gtk_signal_handler_unblock ##### -->
@ -722,6 +682,7 @@ hook twice, you must unblock it twice.
@object: the object which emits the signal we want to unblock. @object: the object which emits the signal we want to unblock.
@handler_id: the emission handler identifier, as returned by @handler_id: the emission handler identifier, as returned by
gtk_signal_connect(), etc. gtk_signal_connect(), etc.
@Deprecated: Use g_signal_handler_unblock() instead.
<!-- ##### MACRO gtk_signal_handler_unblock_by_func ##### --> <!-- ##### MACRO gtk_signal_handler_unblock_by_func ##### -->
@ -735,10 +696,7 @@ hook twice, you must unblock it twice.
@object: the object which emits the signal we want to unblock. @object: the object which emits the signal we want to unblock.
@func: the function pointer to search for. @func: the function pointer to search for.
@data: the user data to search for. @data: the user data to search for.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_handlers_unblock_by_func() instead.
@o:
@f:
@d:
<!-- ##### MACRO gtk_signal_handler_unblock_by_data ##### --> <!-- ##### MACRO gtk_signal_handler_unblock_by_data ##### -->
@ -749,9 +707,7 @@ with a particular user-data pointer
@object: the object which emits the signal we want to unblock. @object: the object which emits the signal we want to unblock.
@data: the user data to search for. @data: the user data to search for.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_handlers_unblock_matched() instead.
@o:
@d:
<!-- ##### MACRO gtk_signal_handler_pending ##### --> <!-- ##### MACRO gtk_signal_handler_pending ##### -->
@ -770,10 +726,7 @@ thus saving the cost of building the arguments.
@may_be_blocked: whether it is acceptable to return a blocked @may_be_blocked: whether it is acceptable to return a blocked
handler. handler.
@Returns: the connection id, if a connection was found. 0 otherwise. @Returns: the connection id, if a connection was found. 0 otherwise.
<!-- # Unused Parameters # --> @Deprecated: Use g_signal_has_handler_pending() instead.
@i:
@s:
@b:
<!-- ##### MACRO gtk_signal_handler_pending_by_func ##### --> <!-- ##### MACRO gtk_signal_handler_pending_by_func ##### -->
@ -789,12 +742,6 @@ handler.
@func: the function pointer to search for. @func: the function pointer to search for.
@data: the user data to search for. @data: the user data to search for.
@Returns: the connection id, if a handler was found. 0 otherwise. @Returns: the connection id, if a handler was found. 0 otherwise.
<!-- # Unused Parameters # -->
@o:
@s:
@b:
@f:
@d:
<!-- ##### MACRO gtk_signal_default_marshaller ##### --> <!-- ##### MACRO gtk_signal_default_marshaller ##### -->
@ -804,3 +751,4 @@ A marshaller that returns void and takes no extra parameters.