forked from AuroraMiddleware/gtk
Fix GtkIconInfo docs
gtk_icon_info_copy and gtk_icon_info_free are deprecated for the corresponding GObject methods. We set correct transfer markup for the GtkIconInfo returning methods to fix the introspection of them. gtk_icon_info_load_symbolic_for_context_async had the wrong method name in its documentation block.
This commit is contained in:
parent
233b0385fa
commit
19784959e0
@ -1778,9 +1778,8 @@ choose_icon (GtkIconTheme *icon_theme,
|
|||||||
* gtk_icon_info_load_icon(). (gtk_icon_theme_load_icon()
|
* gtk_icon_info_load_icon(). (gtk_icon_theme_load_icon()
|
||||||
* combines these two steps if all you need is the pixbuf.)
|
* combines these two steps if all you need is the pixbuf.)
|
||||||
*
|
*
|
||||||
* Return value: a #GtkIconInfo structure containing information
|
* Return value: (transfer full): a #GtkIconInfo object containing information
|
||||||
* about the icon, or %NULL if the icon wasn't found. Free with
|
* about the icon, or %NULL if the icon wasn't found.
|
||||||
* gtk_icon_info_free()
|
|
||||||
*
|
*
|
||||||
* Since: 2.4
|
* Since: 2.4
|
||||||
*/
|
*/
|
||||||
@ -1856,9 +1855,8 @@ gtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme,
|
|||||||
* tries them all in the given order before falling back to
|
* tries them all in the given order before falling back to
|
||||||
* inherited icon themes.
|
* inherited icon themes.
|
||||||
*
|
*
|
||||||
* Return value: a #GtkIconInfo structure containing information
|
* Return value: (transfer full): a #GtkIconInfo object containing information
|
||||||
* about the icon, or %NULL if the icon wasn't found. Free with
|
* about the icon, or %NULL if the icon wasn't found.
|
||||||
* gtk_icon_info_free()
|
|
||||||
*
|
*
|
||||||
* Since: 2.12
|
* Since: 2.12
|
||||||
*/
|
*/
|
||||||
@ -3074,6 +3072,8 @@ icon_info_new_builtin (BuiltinIcon *icon)
|
|||||||
* Return value: the new GtkIconInfo
|
* Return value: the new GtkIconInfo
|
||||||
*
|
*
|
||||||
* Since: 2.4
|
* Since: 2.4
|
||||||
|
*
|
||||||
|
* Deprecated: 3.8: Use g_object_ref()
|
||||||
**/
|
**/
|
||||||
GtkIconInfo *
|
GtkIconInfo *
|
||||||
gtk_icon_info_copy (GtkIconInfo *icon_info)
|
gtk_icon_info_copy (GtkIconInfo *icon_info)
|
||||||
@ -3091,6 +3091,8 @@ gtk_icon_info_copy (GtkIconInfo *icon_info)
|
|||||||
* Free a #GtkIconInfo and associated information
|
* Free a #GtkIconInfo and associated information
|
||||||
*
|
*
|
||||||
* Since: 2.4
|
* Since: 2.4
|
||||||
|
*
|
||||||
|
* Deprecated: 3.8: Use g_object_unref()
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_icon_info_free (GtkIconInfo *icon_info)
|
gtk_icon_info_free (GtkIconInfo *icon_info)
|
||||||
@ -4290,7 +4292,7 @@ gtk_icon_info_load_symbolic_finish (GtkIconInfo *icon_info,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_icon_info_load_symbolic_async:
|
* gtk_icon_info_load_symbolic_for_context_async:
|
||||||
* @icon_info: a #GtkIconInfo structure from gtk_icon_theme_lookup_icon()
|
* @icon_info: a #GtkIconInfo structure from gtk_icon_theme_lookup_icon()
|
||||||
* @context: a #GtkStyleContext
|
* @context: a #GtkStyleContext
|
||||||
* @cancellable: (allow-none): optional #GCancellable object,
|
* @cancellable: (allow-none): optional #GCancellable object,
|
||||||
@ -4830,7 +4832,7 @@ _gtk_icon_theme_check_reload (GdkDisplay *display)
|
|||||||
* The icon can then be rendered into a pixbuf using
|
* The icon can then be rendered into a pixbuf using
|
||||||
* gtk_icon_info_load_icon().
|
* gtk_icon_info_load_icon().
|
||||||
*
|
*
|
||||||
* Return value: a #GtkIconInfo structure containing
|
* Return value: (transfer full): a #GtkIconInfo structure containing
|
||||||
* information about the icon, or %NULL if the icon
|
* information about the icon, or %NULL if the icon
|
||||||
* wasn't found. Free with gtk_icon_info_free()
|
* wasn't found. Free with gtk_icon_info_free()
|
||||||
*
|
*
|
||||||
@ -4949,7 +4951,7 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme *icon_theme,
|
|||||||
*
|
*
|
||||||
* Creates a #GtkIconInfo for a #GdkPixbuf.
|
* Creates a #GtkIconInfo for a #GdkPixbuf.
|
||||||
*
|
*
|
||||||
* Returns: a #GtkIconInfo
|
* Return value: (transfer full): a #GtkIconInfo
|
||||||
*
|
*
|
||||||
* Since: 2.14
|
* Since: 2.14
|
||||||
*/
|
*/
|
||||||
|
@ -192,7 +192,9 @@ void gtk_icon_theme_add_builtin_icon (const gchar *icon_name,
|
|||||||
GdkPixbuf *pixbuf);
|
GdkPixbuf *pixbuf);
|
||||||
|
|
||||||
GType gtk_icon_info_get_type (void) G_GNUC_CONST;
|
GType gtk_icon_info_get_type (void) G_GNUC_CONST;
|
||||||
|
GDK_DEPRECATED_IN_3_8_FOR(g_object_ref)
|
||||||
GtkIconInfo * gtk_icon_info_copy (GtkIconInfo *icon_info);
|
GtkIconInfo * gtk_icon_info_copy (GtkIconInfo *icon_info);
|
||||||
|
GDK_DEPRECATED_IN_3_8_FOR(g_object_unref)
|
||||||
void gtk_icon_info_free (GtkIconInfo *icon_info);
|
void gtk_icon_info_free (GtkIconInfo *icon_info);
|
||||||
|
|
||||||
GtkIconInfo * gtk_icon_info_new_for_pixbuf (GtkIconTheme *icon_theme,
|
GtkIconInfo * gtk_icon_info_new_for_pixbuf (GtkIconTheme *icon_theme,
|
||||||
|
Loading…
Reference in New Issue
Block a user