[gtk+/gi-annotations: 6/12] Update GI annotations in 'Display Widgets'
- From: Pavel Holejsovsky <pholejs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gi-annotations: 6/12] Update GI annotations in 'Display Widgets'
- Date: Tue, 11 Jan 2011 17:17:20 +0000 (UTC)
commit 999a8256ad0eae75c78b19c670b1ed0ee6b8c38a
Author: Pavel Holejsovsky <pholejs src gnome org>
Date: Sat Jan 8 10:14:34 2011 +0100
Update GI annotations in 'Display Widgets'
'Display Widgets' group from GTK+ manual are: GtkAccelLabel, GtkImage,
GtkLabel, GtkProgressBar, GtkStatusbar, GtkInfoBar, GtkStatusIcon,
GtkSpinner.
gtk/gtkimage.c | 35 +++++++++++++++--------------------
gtk/gtklabel.c | 11 ++++++-----
gtk/gtkstatusicon.c | 31 ++++++++++++++++---------------
3 files changed, 37 insertions(+), 40 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index dca9566..14896d7 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -520,7 +520,7 @@ gtk_image_get_property (GObject *object,
/**
* gtk_image_new_from_file:
- * @filename: a filename
+ * @filename: (type filename): a filename
*
* Creates a new #GtkImage displaying the file @filename. If the file
* isn't found or can't be loaded, the resulting #GtkImage will
@@ -583,7 +583,7 @@ gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf)
/**
* gtk_image_new_from_stock:
* @stock_id: a stock icon name
- * @size: (type int): a stock icon size
+ * @size: a stock icon size
*
* Creates a #GtkImage displaying a stock icon. Sample stock icon
* names are #GTK_STOCK_OPEN, #GTK_STOCK_QUIT. Sample stock sizes
@@ -610,7 +610,7 @@ gtk_image_new_from_stock (const gchar *stock_id,
/**
* gtk_image_new_from_icon_set:
* @icon_set: a #GtkIconSet
- * @size: (type int): a stock icon size
+ * @size: a stock icon size
*
* Creates a #GtkImage displaying an icon set. Sample stock sizes are
* #GTK_ICON_SIZE_MENU, #GTK_ICON_SIZE_SMALL_TOOLBAR. Instead of using
@@ -672,7 +672,7 @@ gtk_image_new_from_animation (GdkPixbufAnimation *animation)
/**
* gtk_image_new_from_icon_name:
* @icon_name: an icon name
- * @size: (type int): a stock icon size
+ * @size: a stock icon size
*
* Creates a #GtkImage displaying an icon from the current icon theme.
* If the icon name isn't known, a "broken image" icon will be
@@ -699,7 +699,7 @@ gtk_image_new_from_icon_name (const gchar *icon_name,
/**
* gtk_image_new_from_gicon:
* @icon: an icon
- * @size: (type int): a stock icon size
+ * @size: a stock icon size
*
* Creates a #GtkImage displaying an icon from the current icon theme.
* If the icon name isn't known, a "broken image" icon will be
@@ -726,7 +726,7 @@ gtk_image_new_from_gicon (GIcon *icon,
/**
* gtk_image_set_from_file:
* @image: a #GtkImage
- * @filename: (allow-none): a filename or %NULL
+ * @filename: (type filename) (allow-none): a filename or %NULL
*
* See gtk_image_new_from_file() for details.
**/
@@ -827,7 +827,7 @@ gtk_image_set_from_pixbuf (GtkImage *image,
* gtk_image_set_from_stock:
* @image: a #GtkImage
* @stock_id: a stock icon name
- * @size: (type int): a stock icon size
+ * @size: a stock icon size
*
* See gtk_image_new_from_stock() for details.
**/
@@ -873,7 +873,7 @@ gtk_image_set_from_stock (GtkImage *image,
* gtk_image_set_from_icon_set:
* @image: a #GtkImage
* @icon_set: a #GtkIconSet
- * @size: (type int): a stock icon size
+ * @size: a stock icon size
*
* See gtk_image_new_from_icon_set() for details.
**/
@@ -962,7 +962,7 @@ gtk_image_set_from_animation (GtkImage *image,
* gtk_image_set_from_icon_name:
* @image: a #GtkImage
* @icon_name: an icon name
- * @size: (type int): an icon size
+ * @size: an icon size
*
* See gtk_image_new_from_icon_name() for details.
*
@@ -1010,7 +1010,7 @@ gtk_image_set_from_icon_name (GtkImage *image,
* gtk_image_set_from_gicon:
* @image: a #GtkImage
* @icon: an icon
- * @size: (type int): an icon size
+ * @size: an icon size
*
* See gtk_image_new_from_gicon() for details.
*
@@ -1108,8 +1108,7 @@ gtk_image_get_pixbuf (GtkImage *image)
* @image: a #GtkImage
* @stock_id: (out) (transfer none) (allow-none): place to store a
* stock icon name, or %NULL
- * @size: (out) (allow-none) (type int): place to store a stock icon
- * size, or %NULL
+ * @size: (out) (allow-none): place to store a stock icon size, or %NULL
*
* Gets the stock icon name and size being displayed by the #GtkImage.
* The storage type of the image must be %GTK_IMAGE_EMPTY or
@@ -1146,8 +1145,7 @@ gtk_image_get_stock (GtkImage *image,
* @image: a #GtkImage
* @icon_set: (out) (transfer none) (allow-none): location to store a
* #GtkIconSet, or %NULL
- * @size: (out) (allow-none) (type int): location to store a stock
- * icon size, or %NULL
+ * @size: (out) (allow-none): location to store a stock icon size, or %NULL
*
* Gets the icon set and size being displayed by the #GtkImage.
* The storage type of the image must be %GTK_IMAGE_EMPTY or
@@ -1209,10 +1207,8 @@ gtk_image_get_animation (GtkImage *image)
/**
* gtk_image_get_icon_name:
* @image: a #GtkImage
- * @icon_name: (out) (transfer none) (allow-none): place to store an
- * icon name, or %NULL
- * @size: (out) (allow-none) (type int): place to store an icon size,
- * or %NULL
+ * @icon_name: (out) (allow-none): place to store an icon name, or %NULL
+ * @size: (out) (allow-none): place to store an icon size, or %NULL
*
* Gets the icon name and size being displayed by the #GtkImage.
* The storage type of the image must be %GTK_IMAGE_EMPTY or
@@ -1251,8 +1247,7 @@ gtk_image_get_icon_name (GtkImage *image,
* @image: a #GtkImage
* @gicon: (out) (transfer none) (allow-none): place to store a
* #GIcon, or %NULL
- * @size: (out) (allow-none) (type int): place to store an icon size,
- * or %NULL
+ * @size: (out) (allow-none): place to store an icon size, or %NULL
*
* Gets the #GIcon and size being displayed by the #GtkImage.
* The storage type of the image must be %GTK_IMAGE_EMPTY or
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 7fff547..272e6de 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -2036,7 +2036,8 @@ gtk_label_set_attributes (GtkLabel *label,
* effective attributes for the label, use
* pango_layout_get_attribute (gtk_label_get_layout (label)).
*
- * Return value: the attribute list, or %NULL if none was set.
+ * Return value: (transfer none): the attribute list, or %NULL
+ * if none was set.
**/
PangoAttrList *
gtk_label_get_attributes (GtkLabel *label)
@@ -5468,8 +5469,8 @@ gtk_label_select_region (GtkLabel *label,
/**
* gtk_label_get_selection_bounds:
* @label: a #GtkLabel
- * @start: return location for start of selection, as a character offset
- * @end: return location for end of selection, as a character offset
+ * @start: (out): return location for start of selection, as a character offset
+ * @end: (out): return location for end of selection, as a character offset
*
* Gets the selected range of characters in the label, returning %TRUE
* if there's a selection.
@@ -5567,8 +5568,8 @@ gtk_label_get_layout (GtkLabel *label)
/**
* gtk_label_get_layout_offsets:
* @label: a #GtkLabel
- * @x: (allow-none): location to store X offset of layout, or %NULL
- * @y: (allow-none): location to store Y offset of layout, or %NULL
+ * @x: (out) (allow-none): location to store X offset of layout, or %NULL
+ * @y: (out) (allow-none): location to store Y offset of layout, or %NULL
*
* Obtains the coordinates where the label will draw the #PangoLayout
* representing the text in the label; useful to convert mouse events
diff --git a/gtk/gtkstatusicon.c b/gtk/gtkstatusicon.c
index 6e0751e..ad7d7d4 100644
--- a/gtk/gtkstatusicon.c
+++ b/gtk/gtkstatusicon.c
@@ -1185,7 +1185,7 @@ gtk_status_icon_new_from_pixbuf (GdkPixbuf *pixbuf)
/**
* gtk_status_icon_new_from_file:
- * @filename: a filename
+ * @filename: (type filename): a filename
*
* Creates a status icon displaying the file @filename.
*
@@ -1913,7 +1913,7 @@ gtk_status_icon_set_from_pixbuf (GtkStatusIcon *status_icon,
/**
* gtk_status_icon_set_from_file:
* @status_icon: a #GtkStatusIcon
- * @filename: a filename
+ * @filename: (type filename): a filename
*
* Makes @status_icon display the file @filename.
* See gtk_status_icon_new_from_file() for details.
@@ -2337,11 +2337,12 @@ gtk_status_icon_is_embedded (GtkStatusIcon *status_icon)
/**
* gtk_status_icon_position_menu:
* @menu: the #GtkMenu
- * @x: return location for the x position
- * @y: return location for the y position
- * @push_in: whether the first menu item should be offset (pushed in) to be
- * aligned with the menu popup position (only useful for GtkOptionMenu).
- * @user_data: the status icon to position the menu on
+ * @x: (out): return location for the x position
+ * @y: (out): return location for the y position
+ * @push_in: (out): whether the first menu item should be offset
+ * (pushed in) to be aligned with the menu popup position
+ * (only useful for GtkOptionMenu).
+ * @user_data: (type GtkStatusIcon): the status icon to position the menu on
*
* Menu positioning function to use with gtk_menu_popup()
* to position @menu aligned to the status icon @user_data.
@@ -2464,14 +2465,14 @@ gtk_status_icon_position_menu (GtkMenu *menu,
/**
* gtk_status_icon_get_geometry:
* @status_icon: a #GtkStatusIcon
- * @screen: (out) (transfer none) (allow-none): return location for the screen, or %NULL if the
- * information is not needed
- * @area: (out) (allow-none): return location for the area occupied by the status
- * icon, or %NULL
- * @orientation: (out) (allow-none): return location for the orientation of the panel
- * in which the status icon is embedded, or %NULL. A panel
- * at the top or bottom of the screen is horizontal, a panel
- * at the left or right is vertical.
+ * @screen: (out) (transfer none) (allow-none): return location for
+ * the screen, or %NULL if the information is not needed
+ * @area: (out) (allow-none): return location for the area occupied by
+ * the status icon, or %NULL
+ * @orientation: (out) (allow-none): return location for the
+ * orientation of the panel in which the status icon is embedded,
+ * or %NULL. A panel at the top or bottom of the screen is
+ * horizontal, a panel at the left or right is vertical.
*
* Obtains information about the location of the status icon
* on screen. This information can be used to e.g. position
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]