mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
[introspection] Merge in Gtk-custom.c annotations
The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
This commit is contained in:
parent
b3c48a4501
commit
6529c07614
@ -264,12 +264,6 @@ directions for the visible progress bar.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_progress_bar_new_with_adjustment ##### -->
|
||||
<para>
|
||||
Creates a new #GtkProgressBar with an associated #GtkAdjustment.
|
||||
</para>
|
||||
|
||||
@adjustment: a #GtkAdjustment.
|
||||
@Returns: a #GtkProgressBar.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_progress_bar_set_bar_style ##### -->
|
||||
|
@ -197,13 +197,6 @@ gtk_radio_button_get_group().
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_radio_button_get_group ##### -->
|
||||
<para>
|
||||
Retrieves the group assigned to a radio button.
|
||||
</para>
|
||||
|
||||
@radio_button: a #GtkRadioButton.
|
||||
@Returns: a linked list containing all the radio buttons in the same group
|
||||
as @radio_button. The returned list is owned by the radio button
|
||||
and must not be modified or freed.
|
||||
|
||||
|
||||
|
||||
|
@ -80,14 +80,6 @@ Creates a new #GtkRadioMenuItem.
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_radio_menu_item_new_with_label ##### -->
|
||||
<para>
|
||||
Creates a new #GtkRadioMenuItem whose child is a simple #GtkLabel.
|
||||
</para>
|
||||
|
||||
@group: the group to which the radio menu item is to be attached
|
||||
@label: the text for the label
|
||||
@Returns: a new #GtkRadioMenuItem
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_radio_menu_item_new_with_mnemonic ##### -->
|
||||
<para>
|
||||
|
@ -246,13 +246,12 @@ GTK_SPIN_END</entry>
|
||||
|
||||
<!-- ##### FUNCTION gtk_spin_button_configure ##### -->
|
||||
<para>
|
||||
Changes the properties of an existing spin button. The adjustment, climb rate, and number of decimal places are all changed accordingly, after this function call.
|
||||
|
||||
</para>
|
||||
|
||||
@spin_button: a #GtkSpinButton.
|
||||
@adjustment: a #GtkAdjustment.
|
||||
@climb_rate: the new climb rate.
|
||||
@digits: the number of decimal places to display in the spin button.
|
||||
|
||||
@adjustment:
|
||||
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_spin_button_new ##### -->
|
||||
|
@ -136,15 +136,6 @@ Returns whether the style is attached to a window.
|
||||
|
||||
</para>
|
||||
|
||||
@style:
|
||||
@window:
|
||||
@set_bg:
|
||||
@state_type:
|
||||
@area:
|
||||
@x:
|
||||
@y:
|
||||
@width:
|
||||
@height:
|
||||
|
||||
|
||||
<!-- ##### MACRO gtk_style_apply_default_pixmap ##### -->
|
||||
|
@ -146,16 +146,6 @@ Sets the time between the user moving the mouse over a widget and the widget's t
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_tooltips_set_tip ##### -->
|
||||
<para>
|
||||
Adds a tooltip containing the message @tip_text to the specified #GtkWidget.
|
||||
</para>
|
||||
|
||||
@tooltips: a #GtkTooltips.
|
||||
@widget: the #GtkWidget you wish to associate the tip with.
|
||||
@tip_text: a string containing the tip itself.
|
||||
@tip_private: a string of any further information that may be useful if the user gets stuck.
|
||||
@Deprecated: 2.12:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_tooltips_data_get ##### -->
|
||||
<para>
|
||||
|
@ -933,7 +933,7 @@ update_name_version (GtkAboutDialog *about)
|
||||
/**
|
||||
* gtk_about_dialog_set_name:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @name: the program name
|
||||
* @name: (allow-none): the program name
|
||||
*
|
||||
* Sets the name to display in the about dialog.
|
||||
* If this is not set, it defaults to g_get_application_name().
|
||||
@ -1005,7 +1005,7 @@ gtk_about_dialog_get_version (GtkAboutDialog *about)
|
||||
/**
|
||||
* gtk_about_dialog_set_version:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @version: the version string
|
||||
* @version: (allow-none): the version string
|
||||
*
|
||||
* Sets the version string to display in the about dialog.
|
||||
*
|
||||
@ -1057,7 +1057,7 @@ gtk_about_dialog_get_copyright (GtkAboutDialog *about)
|
||||
/**
|
||||
* gtk_about_dialog_set_copyright:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @copyright: the copyright string
|
||||
* @copyright: (allow-none) the copyright string
|
||||
*
|
||||
* Sets the copyright string to display in the about dialog.
|
||||
* This should be a short string of one or two lines.
|
||||
@ -1120,7 +1120,7 @@ gtk_about_dialog_get_comments (GtkAboutDialog *about)
|
||||
/**
|
||||
* gtk_about_dialog_set_comments:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @comments: a comments string
|
||||
* @comments: (allow-none): a comments string
|
||||
*
|
||||
* Sets the comments string to display in the about dialog.
|
||||
* This should be a short string of one or two lines.
|
||||
@ -1181,7 +1181,7 @@ gtk_about_dialog_get_license (GtkAboutDialog *about)
|
||||
/**
|
||||
* gtk_about_dialog_set_license:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @license: the license information or %NULL
|
||||
* @license: (allow-none): the license information or %NULL
|
||||
*
|
||||
* Sets the license information to be displayed in the secondary
|
||||
* license dialog. If @license is %NULL, the license button is
|
||||
@ -1295,7 +1295,7 @@ gtk_about_dialog_get_website (GtkAboutDialog *about)
|
||||
/**
|
||||
* gtk_about_dialog_set_website:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @website: a URL string starting with "http://"
|
||||
* @website: (allow-none): a URL string starting with "http://"
|
||||
*
|
||||
* Sets the URL to use for the website link.
|
||||
*
|
||||
@ -1587,7 +1587,7 @@ gtk_about_dialog_get_translator_credits (GtkAboutDialog *about)
|
||||
/**
|
||||
* gtk_about_dialog_set_translator_credits:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @translator_credits: the translator credits
|
||||
* @translator_credits: (allow-none): the translator credits
|
||||
*
|
||||
* Sets the translator credits string which is displayed in
|
||||
* the translators tab of the secondary credits dialog.
|
||||
@ -1674,7 +1674,7 @@ icon_set_new_from_pixbufs (GList *pixbufs)
|
||||
/**
|
||||
* gtk_about_dialog_set_logo:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @logo: a #GdkPixbuf, or %NULL
|
||||
* @logo: (allow-none): a #GdkPixbuf, or %NULL
|
||||
*
|
||||
* Sets the pixbuf to be displayed as logo in the about dialog.
|
||||
* If it is %NULL, the default window icon set with
|
||||
@ -1751,7 +1751,7 @@ gtk_about_dialog_get_logo_icon_name (GtkAboutDialog *about)
|
||||
/**
|
||||
* gtk_about_dialog_set_logo_icon_name:
|
||||
* @about: a #GtkAboutDialog
|
||||
* @icon_name: an icon name, or %NULL
|
||||
* @icon_name: (allow-none): an icon name, or %NULL
|
||||
*
|
||||
* Sets the pixbuf to be displayed as logo in the about dialog.
|
||||
* If it is %NULL, the default window icon set with
|
||||
|
@ -352,9 +352,10 @@ _gtk_accel_group_detach (GtkAccelGroup *accel_group,
|
||||
/**
|
||||
* gtk_accel_groups_from_object:
|
||||
* @object: a #GObject, usually a #GtkWindow
|
||||
* @returns: a list of all accel groups which are attached to @object
|
||||
*
|
||||
* Gets a list of all accel groups which are attached to @object.
|
||||
*
|
||||
* Returns: (element-type GtkAccelGroup) (transfer none): a list of all accel groups which are attached to @object
|
||||
*/
|
||||
GSList*
|
||||
gtk_accel_groups_from_object (GObject *object)
|
||||
|
@ -979,7 +979,7 @@ gtk_action_disconnect_proxy (GtkAction *action,
|
||||
* Returns the proxy widgets for an action.
|
||||
* See also gtk_widget_get_action().
|
||||
*
|
||||
* Return value: a #GSList of proxy widgets. The list is owned by GTK+
|
||||
* Return value: (element-type GtkWidget) (transfer none): a #GSList of proxy widgets. The list is owned by GTK+
|
||||
* and must not be modified.
|
||||
*
|
||||
* Since: 2.4
|
||||
@ -1811,7 +1811,7 @@ gtk_action_get_accel_closure (GtkAction *action)
|
||||
/**
|
||||
* gtk_action_set_accel_group:
|
||||
* @action: the action object
|
||||
* @accel_group: a #GtkAccelGroup or %NULL
|
||||
* @accel_group: (allow-none): a #GtkAccelGroup or %NULL
|
||||
*
|
||||
* Sets the #GtkAccelGroup in which the accelerator for this action
|
||||
* will be installed.
|
||||
|
@ -731,7 +731,7 @@ gtk_action_group_set_visible (GtkActionGroup *action_group,
|
||||
*
|
||||
* Looks up an action in the action group by name.
|
||||
*
|
||||
* Returns: the action, or %NULL if no action by that name exists
|
||||
* Returns: (transfer-none): the action, or %NULL if no action by that name exists
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
@ -807,7 +807,7 @@ gtk_action_group_add_action (GtkActionGroup *action_group,
|
||||
* gtk_action_group_add_action_with_accel:
|
||||
* @action_group: the action group
|
||||
* @action: the action to add
|
||||
* @accelerator: the accelerator for the action, in
|
||||
* @accelerator: (allow-none): the accelerator for the action, in
|
||||
* the format understood by gtk_accelerator_parse(), or "" for no accelerator, or
|
||||
* %NULL to use the stock accelerator
|
||||
*
|
||||
@ -920,7 +920,7 @@ add_single_action (gpointer key,
|
||||
*
|
||||
* Lists the actions in the action group.
|
||||
*
|
||||
* Returns: an allocated list of the action objects in the action group
|
||||
* Returns: (element-type GtkAction) (transfer container): an allocated list of the action objects in the action group
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
|
@ -1980,7 +1980,7 @@ gtk_assistant_get_page_type (GtkAssistant *assistant,
|
||||
* gtk_assistant_set_page_header_image:
|
||||
* @assistant: a #GtkAssistant
|
||||
* @page: a page of @assistant
|
||||
* @pixbuf: the new header image @page
|
||||
* @pixbuf: (allow-none): the new header image @page
|
||||
*
|
||||
* Sets a header image for @page. This image is displayed in the header
|
||||
* area of the assistant when @page is the current page.
|
||||
@ -2060,7 +2060,7 @@ gtk_assistant_get_page_header_image (GtkAssistant *assistant,
|
||||
* gtk_assistant_set_page_side_image:
|
||||
* @assistant: a #GtkAssistant
|
||||
* @page: a page of @assistant
|
||||
* @pixbuf: the new header image @page
|
||||
* @pixbuf: (allow-none): the new header image @page
|
||||
*
|
||||
* Sets a header image for @page. This image is displayed in the side
|
||||
* area of the assistant when @page is the current page.
|
||||
|
@ -136,7 +136,7 @@ gtk_bin_forall (GtkContainer *container,
|
||||
* no child widget. The returned widget does not have a reference
|
||||
* added, so you do not need to unref it.
|
||||
*
|
||||
* Return value: pointer to child of the #GtkBin
|
||||
* Return value: (transfer none): pointer to child of the #GtkBin
|
||||
**/
|
||||
GtkWidget*
|
||||
gtk_bin_get_child (GtkBin *bin)
|
||||
|
@ -888,7 +888,7 @@ object_add_to_list (gchar *object_id,
|
||||
* this function does not increment the reference counts of the returned
|
||||
* objects.
|
||||
*
|
||||
* Return value: a newly-allocated #GSList containing all the objects
|
||||
* Return value: (element-type GObject) (transfer container): a newly-allocated #GSList containing all the objects
|
||||
* constructed by the #GtkBuilder instance. It should be freed by
|
||||
* g_slist_free()
|
||||
*
|
||||
|
@ -292,7 +292,7 @@ gtk_cell_layout_reorder (GtkCellLayout *cell_layout,
|
||||
*
|
||||
* Returns the cell renderers which have been added to @cell_layout.
|
||||
*
|
||||
* Return value: a list of cell renderers. The list, but not the
|
||||
* Return value: (element-type GtkCellRenderer) (transfer container): a list of cell renderers. The list, but not the
|
||||
* renderers has been newly allocated and should be freed with
|
||||
* g_list_free() when no longer needed.
|
||||
*
|
||||
|
@ -857,7 +857,7 @@ gtk_cell_view_set_value (GtkCellView *cell_view,
|
||||
/**
|
||||
* gtk_cell_view_set_model:
|
||||
* @cell_view: a #GtkCellView
|
||||
* @model: a #GtkTreeModel
|
||||
* @model: (allow-none): a #GtkTreeModel
|
||||
*
|
||||
* Sets the model for @cell_view. If @cell_view already has a model
|
||||
* set, it will remove it before setting the new model. If @model is
|
||||
@ -910,7 +910,7 @@ gtk_cell_view_get_model (GtkCellView *cell_view)
|
||||
/**
|
||||
* gtk_cell_view_set_displayed_row:
|
||||
* @cell_view: a #GtkCellView
|
||||
* @path: a #GtkTreePath or %NULL to unset.
|
||||
* @path: (allow-none): a #GtkTreePath or %NULL to unset.
|
||||
*
|
||||
* Sets the row of the model that is currently displayed
|
||||
* by the #GtkCellView. If the path is unset, then the
|
||||
|
@ -1527,7 +1527,8 @@ clipboard_uris_received_func (GtkClipboard *clipboard,
|
||||
* for the data to be received using the main loop, so events,
|
||||
* timeouts, etc, may be dispatched during the wait.
|
||||
*
|
||||
* Return value: a newly-allocated %NULL-terminated array of strings which must
|
||||
* Return value: (array zero-terminated=1) (element-type utf8) (transfer full): a newly-allocated
|
||||
* %NULL-terminated array of strings which must
|
||||
* be freed with g_strfreev(), or %NULL if
|
||||
* retrieving the selection data failed. (This
|
||||
* could happen for various reasons, in particular
|
||||
|
@ -2274,6 +2274,10 @@ gtk_clist_get_text (GtkCList *clist,
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_clist_set_pixmap:
|
||||
* @mask: (allow-none):
|
||||
*/
|
||||
void
|
||||
gtk_clist_set_pixmap (GtkCList *clist,
|
||||
gint row,
|
||||
|
@ -5020,7 +5020,7 @@ gtk_combo_box_set_active_iter (GtkComboBox *combo_box,
|
||||
/**
|
||||
* gtk_combo_box_set_model:
|
||||
* @combo_box: A #GtkComboBox
|
||||
* @model: A #GtkTreeModel
|
||||
* @model: (allow-none): A #GtkTreeModel
|
||||
*
|
||||
* Sets the model used by @combo_box to be @model. Will unset a previously set
|
||||
* model (if applicable). If model is %NULL, then it will unset the model.
|
||||
@ -5104,7 +5104,7 @@ out:
|
||||
*
|
||||
* Returns the #GtkTreeModel which is acting as data source for @combo_box.
|
||||
*
|
||||
* Return value: A #GtkTreeModel which was passed during construction.
|
||||
* Return value: (transfer none): A #GtkTreeModel which was passed during construction.
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
@ -5129,7 +5129,7 @@ gtk_combo_box_get_model (GtkComboBox *combo_box)
|
||||
* gtk_combo_box_insert_text(), gtk_combo_box_prepend_text() and
|
||||
* gtk_combo_box_remove_text().
|
||||
*
|
||||
* Return value: A new text combo box.
|
||||
* Return value: (transfer none): A new text combo box.
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
|
@ -1586,7 +1586,7 @@ gtk_container_foreach_full (GtkContainer *container,
|
||||
/**
|
||||
* gtk_container_set_focus_child:
|
||||
* @container: a #GtkContainer
|
||||
* @child: a #GtkWidget, or %NULL
|
||||
* @child: (allow-none): a #GtkWidget, or %NULL
|
||||
*
|
||||
* Sets, or unsets if @child is %NULL, the focused child of @container.
|
||||
*
|
||||
@ -1631,7 +1631,7 @@ gtk_container_get_focus_child (GtkContainer *container)
|
||||
* Returns the container's non-internal children. See
|
||||
* gtk_container_forall() for details on what constitutes an "internal" child.
|
||||
*
|
||||
* Return value: a newly-allocated list of the container's non-internal children.
|
||||
* Return value: (element-type GtkWidget) (transfer container): a newly-allocated list of the container's non-internal children.
|
||||
**/
|
||||
GList*
|
||||
gtk_container_get_children (GtkContainer *container)
|
||||
@ -2403,7 +2403,8 @@ gtk_container_set_focus_chain (GtkContainer *container,
|
||||
/**
|
||||
* gtk_container_get_focus_chain:
|
||||
* @container: a #GtkContainer
|
||||
* @focusable_widgets: location to store the focus chain of the
|
||||
* @focusable_widgets: (element-type GtkWidget) (out) (transfer container): location
|
||||
* to store the focus chain of the
|
||||
* container, or %NULL. You should free this list
|
||||
* using g_list_free() when you are done with it, however
|
||||
* no additional reference count is added to the
|
||||
@ -2513,7 +2514,7 @@ gtk_container_set_focus_vadjustment (GtkContainer *container,
|
||||
* Retrieves the vertical focus adjustment for the container. See
|
||||
* gtk_container_set_focus_vadjustment().
|
||||
*
|
||||
* Return value: the vertical focus adjustment, or %NULL if
|
||||
* Return value: (transfer none): the vertical focus adjustment, or %NULL if
|
||||
* none has been set.
|
||||
**/
|
||||
GtkAdjustment *
|
||||
@ -2568,7 +2569,7 @@ gtk_container_set_focus_hadjustment (GtkContainer *container,
|
||||
* Retrieves the horizontal focus adjustment for the container. See
|
||||
* gtk_container_set_focus_hadjustment ().
|
||||
*
|
||||
* Return value: the horizontal focus adjustment, or %NULL if
|
||||
* Return value: (transfer none): the horizontal focus adjustment, or %NULL if
|
||||
* none has been set.
|
||||
**/
|
||||
GtkAdjustment *
|
||||
|
@ -3626,6 +3626,14 @@ real_insert_row (GtkCList *clist,
|
||||
return row;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_ctree_insert_node:
|
||||
* @pixmap_closed: (allow-none):
|
||||
* @mask_closed: (allow-none):
|
||||
* @pixmap_opened: (allow-none):
|
||||
* @mask_opened: (allow-none):
|
||||
*/
|
||||
GtkCTreeNode *
|
||||
gtk_ctree_insert_node (GtkCTree *ctree,
|
||||
GtkCTreeNode *parent,
|
||||
@ -4286,6 +4294,11 @@ gtk_ctree_is_hot_spot (GtkCTree *ctree,
|
||||
***********************************************************/
|
||||
|
||||
|
||||
/**
|
||||
* gtk_ctree_move:
|
||||
* @new_parent: (allow-none):
|
||||
* @new_sibling: (allow-none):
|
||||
*/
|
||||
void
|
||||
gtk_ctree_move (GtkCTree *ctree,
|
||||
GtkCTreeNode *node,
|
||||
@ -4599,6 +4612,11 @@ gtk_ctree_node_set_text (GtkCTree *ctree,
|
||||
tree_draw_node (ctree, node);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_ctree_node_set_pixmap:
|
||||
* @mask: (allow-none):
|
||||
*/
|
||||
void
|
||||
gtk_ctree_node_set_pixmap (GtkCTree *ctree,
|
||||
GtkCTreeNode *node,
|
||||
@ -4628,6 +4646,11 @@ gtk_ctree_node_set_pixmap (GtkCTree *ctree,
|
||||
tree_draw_node (ctree, node);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_ctree_node_set_pixtext:
|
||||
* @mask: (allow-none):
|
||||
*/
|
||||
void
|
||||
gtk_ctree_node_set_pixtext (GtkCTree *ctree,
|
||||
GtkCTreeNode *node,
|
||||
@ -4662,6 +4685,14 @@ gtk_ctree_node_set_pixtext (GtkCTree *ctree,
|
||||
tree_draw_node (ctree, node);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_ctree_set_node_info:
|
||||
* @pixmap_closed: (allow-none):
|
||||
* @mask_closed: (allow-none):
|
||||
* @pixmap_opened: (allow-none):
|
||||
* @mask_opened: (allow-none):
|
||||
*/
|
||||
void
|
||||
gtk_ctree_set_node_info (GtkCTree *ctree,
|
||||
GtkCTreeNode *node,
|
||||
|
@ -529,10 +529,10 @@ gtk_dialog_new_empty (const gchar *title,
|
||||
|
||||
/**
|
||||
* gtk_dialog_new_with_buttons:
|
||||
* @title: Title of the dialog, or %NULL
|
||||
* @parent: Transient parent of the dialog, or %NULL
|
||||
* @title: (allow-none): Title of the dialog, or %NULL
|
||||
* @parent: (allow-none): Transient parent of the dialog, or %NULL
|
||||
* @flags: from #GtkDialogFlags
|
||||
* @first_button_text: stock ID or text to go in first button, or %NULL
|
||||
* @first_button_text: (allow-none): stock ID or text to go in first button, or %NULL
|
||||
* @Varargs: response ID for first button, then additional buttons, ending with %NULL
|
||||
*
|
||||
* Creates a new #GtkDialog with title @title (or %NULL for the default
|
||||
@ -1191,7 +1191,7 @@ gtk_dialog_get_response_for_widget (GtkDialog *dialog,
|
||||
|
||||
/**
|
||||
* gtk_alternative_dialog_button_order:
|
||||
* @screen: a #GdkScreen, or %NULL to use the default screen
|
||||
* @screen: (allow-none): a #GdkScreen, or %NULL to use the default screen
|
||||
*
|
||||
* Returns %TRUE if dialogs are expected to use an alternative
|
||||
* button order on the screen @screen. See
|
||||
@ -1519,7 +1519,7 @@ gtk_dialog_buildable_custom_finished (GtkBuildable *buildable,
|
||||
*
|
||||
* Returns the action area of @dialog.
|
||||
*
|
||||
* Returns: the action area.
|
||||
* Returns: (transfer none): the action area.
|
||||
*
|
||||
* Since: 2.14
|
||||
**/
|
||||
@ -1537,7 +1537,7 @@ gtk_dialog_get_action_area (GtkDialog *dialog)
|
||||
*
|
||||
* Returns the content area of @dialog.
|
||||
*
|
||||
* Returns: the content area #GtkVBox.
|
||||
* Returns: (transfer none): the content area #GtkVBox.
|
||||
*
|
||||
* Since: 2.14
|
||||
**/
|
||||
|
@ -2831,7 +2831,7 @@ gtk_drag_source_unset_icon (GtkDragSourceSite *site)
|
||||
* @widget: a #GtkWidget
|
||||
* @colormap: the colormap of the icon
|
||||
* @pixmap: the image data for the icon
|
||||
* @mask: the transparency mask for an image.
|
||||
* @mask: (allow-none): the transparency mask for an image.
|
||||
*
|
||||
* Sets the icon that will be used for drags from a particular widget
|
||||
* from a pixmap/mask. GTK+ retains references for the arguments, and
|
||||
|
@ -149,7 +149,7 @@ gtk_editable_base_init (gpointer g_class)
|
||||
* @editable: a #GtkEditable
|
||||
* @new_text: the text to append
|
||||
* @new_text_length: the length of the text in bytes, or -1
|
||||
* @position: location of the position text will be inserted at
|
||||
* @position: (in-out): location of the position text will be inserted at
|
||||
*
|
||||
* Inserts @new_text_length bytes of @new_text into the contents of the
|
||||
* widget, at position @position.
|
||||
@ -266,8 +266,8 @@ gtk_editable_get_position (GtkEditable *editable)
|
||||
/**
|
||||
* gtk_editable_get_selection_bounds:
|
||||
* @editable: a #GtkEditable
|
||||
* @start_pos: location to store the starting position, or %NULL
|
||||
* @end_pos: location to store the end position, or %NULL
|
||||
* @start_pos: (out) (allow-none): location to store the starting position, or %NULL
|
||||
* @end_pos: (out) (allow-none): location to store the end position, or %NULL
|
||||
*
|
||||
* Retrieves the selection bound of the editable. start_pos will be filled
|
||||
* with the start of the selection and @end_pos with end. If no text was
|
||||
|
@ -7238,7 +7238,7 @@ gtk_entry_get_has_frame (GtkEntry *entry)
|
||||
/**
|
||||
* gtk_entry_set_inner_border:
|
||||
* @entry: a #GtkEntry
|
||||
* @border: a #GtkBorder, or %NULL
|
||||
* @border: (allow-none): a #GtkBorder, or %NULL
|
||||
*
|
||||
* Sets %entry's inner-border property to %border, or clears it if %NULL
|
||||
* is passed. The inner-border is the area around the entry's text, but
|
||||
@ -7276,7 +7276,7 @@ gtk_entry_set_inner_border (GtkEntry *entry,
|
||||
* This function returns the entry's #GtkEntry:inner-border property. See
|
||||
* gtk_entry_set_inner_border() for more information.
|
||||
*
|
||||
* Return value: the entry's #GtkBorder, or %NULL if none was set.
|
||||
* Return value: (transfer none): the entry's #GtkBorder, or %NULL if none was set.
|
||||
*
|
||||
* Since: 2.10
|
||||
**/
|
||||
@ -7303,7 +7303,7 @@ gtk_entry_get_inner_border (GtkEntry *entry)
|
||||
* gtk_entry_text_index_to_layout_index() are needed to convert byte
|
||||
* indices in the layout to byte indices in the entry contents.
|
||||
*
|
||||
* Return value: the #PangoLayout for this entry
|
||||
* Return value: (transfer none): the #PangoLayout for this entry
|
||||
**/
|
||||
PangoLayout*
|
||||
gtk_entry_get_layout (GtkEntry *entry)
|
||||
@ -9626,7 +9626,7 @@ connect_completion_signals (GtkEntry *entry,
|
||||
/**
|
||||
* gtk_entry_set_completion:
|
||||
* @entry: A #GtkEntry
|
||||
* @completion: The #GtkEntryCompletion or %NULL
|
||||
* @completion: (allow-none): The #GtkEntryCompletion or %NULL
|
||||
*
|
||||
* Sets @completion to be the auxiliary completion object to use with @entry.
|
||||
* All further configuration of the completion mechanism is done on
|
||||
@ -9743,7 +9743,7 @@ gtk_entry_set_cursor_hadjustment (GtkEntry *entry,
|
||||
* Retrieves the horizontal cursor adjustment for the entry.
|
||||
* See gtk_entry_set_cursor_hadjustment().
|
||||
*
|
||||
* Return value: the horizontal cursor adjustment, or %NULL
|
||||
* Return value: (transfer none): the horizontal cursor adjustment, or %NULL
|
||||
* if none has been set.
|
||||
*
|
||||
* Since: 2.12
|
||||
|
@ -1013,7 +1013,7 @@ gtk_entry_completion_get_entry (GtkEntryCompletion *completion)
|
||||
/**
|
||||
* gtk_entry_completion_set_model:
|
||||
* @completion: A #GtkEntryCompletion.
|
||||
* @model: The #GtkTreeModel.
|
||||
* @model: (allow-none): The #GtkTreeModel.
|
||||
*
|
||||
* Sets the model for a #GtkEntryCompletion. If @completion already has
|
||||
* a model set, it will remove it before setting the new model.
|
||||
|
@ -1288,7 +1288,7 @@ gtk_expander_new (const gchar *label)
|
||||
|
||||
/**
|
||||
* gtk_expander_new_with_mnemonic:
|
||||
* @label: the text of the label with an underscore in front of the
|
||||
* @label: (allow-none): the text of the label with an underscore in front of the
|
||||
* mnemonic character
|
||||
*
|
||||
* Creates a new expander using @label as the text of the label.
|
||||
@ -1495,7 +1495,7 @@ gtk_expander_get_spacing (GtkExpander *expander)
|
||||
/**
|
||||
* gtk_expander_set_label:
|
||||
* @expander: a #GtkExpander
|
||||
* @label: a string
|
||||
* @label: (allow-none): a string
|
||||
*
|
||||
* Sets the text of the label of the expander to @label.
|
||||
*
|
||||
@ -1674,7 +1674,7 @@ gtk_expander_get_use_markup (GtkExpander *expander)
|
||||
/**
|
||||
* gtk_expander_set_label_widget:
|
||||
* @expander: a #GtkExpander
|
||||
* @label_widget: the new label widget
|
||||
* @label_widget: (allow-none): the new label widget
|
||||
*
|
||||
* Set the label widget for the expander. This is the widget
|
||||
* that will appear embedded alongside the expander arrow.
|
||||
|
@ -661,7 +661,7 @@ files_to_strings (GSList *files,
|
||||
* folder cannot be represented as local filenames they will be ignored. (See
|
||||
* gtk_file_chooser_get_uris())
|
||||
*
|
||||
* Return value: a #GSList containing the filenames of all selected
|
||||
* Return value: (element-type utf8) (transfer full): a #GSList containing the filenames of all selected
|
||||
* files and subfolders in the current folder. Free the returned list
|
||||
* with g_slist_free(), and the filenames with g_free().
|
||||
*
|
||||
@ -965,7 +965,7 @@ gtk_file_chooser_unselect_all (GtkFileChooser *chooser)
|
||||
* Lists all the selected files and subfolders in the current folder of
|
||||
* @chooser. The returned names are full absolute URIs.
|
||||
*
|
||||
* Return value: a #GSList containing the URIs of all selected
|
||||
* Return value: (element-type utf8) (transfer full): a #GSList containing the URIs of all selected
|
||||
* files and subfolders in the current folder. Free the returned list
|
||||
* with g_slist_free(), and the filenames with g_free().
|
||||
*
|
||||
@ -1156,7 +1156,7 @@ gtk_file_chooser_unselect_file (GtkFileChooser *chooser,
|
||||
* Lists all the selected files and subfolders in the current folder of @chooser
|
||||
* as #GFile. An internal function, see gtk_file_chooser_get_uris().
|
||||
*
|
||||
* Return value: a #GSList containing a #GFile for each selected
|
||||
* Return value: (element-type utf8) (transfer full): a #GSList containing a #GFile for each selected
|
||||
* file and subfolder in the current folder. Free the returned list
|
||||
* with g_slist_free(), and the files with g_object_unref().
|
||||
*
|
||||
@ -1666,7 +1666,7 @@ gtk_file_chooser_remove_filter (GtkFileChooser *chooser,
|
||||
* Lists the current set of user-selectable filters; see
|
||||
* gtk_file_chooser_add_filter(), gtk_file_chooser_remove_filter().
|
||||
*
|
||||
* Return value: a #GSList containing the current set of
|
||||
* Return value: (element-type utf8) (transfer container): a #GSList containing the current set of
|
||||
* user selectable filters. The contents of the list are
|
||||
* owned by GTK+, but you must free the list itself with
|
||||
* g_slist_free() when you are done with it.
|
||||
@ -1807,7 +1807,7 @@ gtk_file_chooser_remove_shortcut_folder (GtkFileChooser *chooser,
|
||||
* Queries the list of shortcut folders in the file chooser, as set by
|
||||
* gtk_file_chooser_add_shortcut_folder().
|
||||
*
|
||||
* Return value: A list of folder filenames, or %NULL if there are no shortcut
|
||||
* Return value: (element-type utf8) (transfer full): A list of folder filenames, or %NULL if there are no shortcut
|
||||
* folders. Free the returned list with g_slist_free(), and the filenames with
|
||||
* g_free().
|
||||
*
|
||||
@ -1904,7 +1904,7 @@ gtk_file_chooser_remove_shortcut_folder_uri (GtkFileChooser *chooser,
|
||||
* Queries the list of shortcut folders in the file chooser, as set by
|
||||
* gtk_file_chooser_add_shortcut_folder_uri().
|
||||
*
|
||||
* Return value: A list of folder URIs, or %NULL if there are no shortcut
|
||||
* Return value: (element-type utf8) (transfer full): A list of folder URIs, or %NULL if there are no shortcut
|
||||
* folders. Free the returned list with g_slist_free(), and the URIs with
|
||||
* g_free().
|
||||
*
|
||||
|
@ -306,7 +306,7 @@ gtk_frame_forall (GtkContainer *container,
|
||||
/**
|
||||
* gtk_frame_set_label:
|
||||
* @frame: a #GtkFrame
|
||||
* @label: the text to use as the label of the frame
|
||||
* @label: (allow-none): the text to use as the label of the frame
|
||||
*
|
||||
* Sets the text of the label. If @label is %NULL,
|
||||
* the current label is removed.
|
||||
|
@ -1620,7 +1620,7 @@ render_fallback_image (GtkStyle *style,
|
||||
/**
|
||||
* gtk_icon_set_render_icon:
|
||||
* @icon_set: a #GtkIconSet
|
||||
* @style: a #GtkStyle associated with @widget, or %NULL
|
||||
* @style: (allow-none): a #GtkStyle associated with @widget, or %NULL
|
||||
* @direction: text direction
|
||||
* @state: widget state
|
||||
* @size: icon size. A size of (GtkIconSize)-1
|
||||
@ -1762,7 +1762,7 @@ gtk_icon_set_add_source (GtkIconSet *icon_set,
|
||||
/**
|
||||
* gtk_icon_set_get_sizes:
|
||||
* @icon_set: a #GtkIconSet
|
||||
* @sizes: return location for array of sizes
|
||||
* @sizes: (array length=n_sizes) (out): return location for array of sizes
|
||||
* @n_sizes: location to store number of elements in returned array
|
||||
*
|
||||
* Obtains a list of icon sizes this icon set can render. The returned
|
||||
@ -2033,7 +2033,7 @@ gtk_icon_source_set_filename (GtkIconSource *source,
|
||||
/**
|
||||
* gtk_icon_source_set_icon_name
|
||||
* @source: a #GtkIconSource
|
||||
* @icon_name: name of icon to use
|
||||
* @icon_name: (allow-none): name of icon to use
|
||||
*
|
||||
* Sets the name of an icon to look up in the current icon theme
|
||||
* to use as a base image when creating icon variants for #GtkIconSet.
|
||||
|
@ -276,7 +276,7 @@ gtk_icon_theme_new (void)
|
||||
* Gets the icon theme for the default screen. See
|
||||
* gtk_icon_theme_get_for_screen().
|
||||
*
|
||||
* Return value: A unique #GtkIconTheme associated with
|
||||
* Return value: (transfer none): A unique #GtkIconTheme associated with
|
||||
* the default screen. This icon theme is associated with
|
||||
* the screen and can be used as long as the screen
|
||||
* is open. Do not ref or unref it.
|
||||
@ -302,7 +302,7 @@ gtk_icon_theme_get_default (void)
|
||||
* and setting the screen yourself; by using this function
|
||||
* a single icon theme object will be shared between users.
|
||||
*
|
||||
* Return value: A unique #GtkIconTheme associated with
|
||||
* Return value: (transfer none): A unique #GtkIconTheme associated with
|
||||
* the given screen. This icon theme is associated with
|
||||
* the screen and can be used as long as the screen
|
||||
* is open. Do not ref or unref it.
|
||||
@ -1739,7 +1739,7 @@ add_key_to_list (gpointer key,
|
||||
* but will typically include such values as "Applications" and
|
||||
* "MimeTypes".
|
||||
*
|
||||
* Return value: a #GList list holding the names of all the
|
||||
* Return value: (element-type utf8) (transfer none): a #GList list holding the names of all the
|
||||
* icons in the theme. You must first free each element
|
||||
* in the list with g_free(), then free the list itself
|
||||
* with g_list_free().
|
||||
@ -1801,7 +1801,7 @@ gtk_icon_theme_list_icons (GtkIconTheme *icon_theme,
|
||||
* Gets the list of contexts available within the current
|
||||
* hierarchy of icon themes
|
||||
*
|
||||
* Return value: a #GList list holding the names of all the
|
||||
* Return value: (element-type utf8) (transfer full): a #GList list holding the names of all the
|
||||
* contexts in the theme. You must first free each element
|
||||
* in the list with g_free(), then free the list itself
|
||||
* with g_list_free().
|
||||
@ -2750,7 +2750,7 @@ gtk_icon_info_get_filename (GtkIconInfo *icon_info)
|
||||
* %GTK_ICON_LOOKUP_USE_BUILTIN to
|
||||
* gtk_icon_theme_lookup_icon().
|
||||
*
|
||||
* Return value: the built-in image pixbuf, or %NULL. No
|
||||
* Return value: (transfer none): the built-in image pixbuf, or %NULL. No
|
||||
* extra reference is added to the returned pixbuf, so if
|
||||
* you want to keep it around, you must use g_object_ref().
|
||||
* The returned image must not be modified.
|
||||
|
@ -1992,7 +1992,7 @@ gtk_icon_view_stop_editing (GtkIconView *icon_view,
|
||||
* gtk_icon_view_set_cursor:
|
||||
* @icon_view: A #GtkIconView
|
||||
* @path: A #GtkTreePath
|
||||
* @cell: One of the cell renderers of @icon_view, or %NULL
|
||||
* @cell: (allow-none): One of the cell renderers of @icon_view, or %NULL
|
||||
* @start_editing: %TRUE if the specified cell should start being edited.
|
||||
*
|
||||
* Sets the current keyboard focus to be at @path, and selects it. This is
|
||||
@ -5266,7 +5266,7 @@ gtk_icon_view_get_selection_mode (GtkIconView *icon_view)
|
||||
/**
|
||||
* gtk_icon_view_set_model:
|
||||
* @icon_view: A #GtkIconView.
|
||||
* @model: The model.
|
||||
* @model: (allow-none): The model.
|
||||
*
|
||||
* Sets the model for a #GtkIconView.
|
||||
* If the @icon_view already has a model set, it will remove
|
||||
@ -5798,7 +5798,7 @@ gtk_icon_view_unselect_path (GtkIconView *icon_view,
|
||||
* g_list_free (list);
|
||||
* ]|
|
||||
*
|
||||
* Return value: A #GList containing a #GtkTreePath for each selected row.
|
||||
* Return value: (element-type GtkTreePath) (transfer full): A #GList containing a #GtkTreePath for each selected row.
|
||||
*
|
||||
* Since: 2.6
|
||||
**/
|
||||
@ -7199,7 +7199,7 @@ gtk_icon_view_unset_model_drag_dest (GtkIconView *icon_view)
|
||||
/**
|
||||
* gtk_icon_view_set_drag_dest_item:
|
||||
* @icon_view: a #GtkIconView
|
||||
* @path: The path of the item to highlight, or %NULL.
|
||||
* @path: (allow-none): The path of the item to highlight, or %NULL.
|
||||
* @pos: Specifies where to drop, relative to the item
|
||||
*
|
||||
* Sets the item that is highlighted for feedback.
|
||||
|
@ -492,8 +492,8 @@ gtk_image_get_property (GObject *object,
|
||||
|
||||
/**
|
||||
* gtk_image_new_from_pixmap:
|
||||
* @pixmap: a #GdkPixmap, or %NULL
|
||||
* @mask: a #GdkBitmap, or %NULL
|
||||
* @pixmap: (allow-none): a #GdkPixmap, or %NULL
|
||||
* @mask: (allow-none): a #GdkBitmap, or %NULL
|
||||
*
|
||||
* Creates a #GtkImage widget displaying @pixmap with a @mask.
|
||||
* A #GdkPixmap is a server-side image buffer in the pixel format of the
|
||||
@ -518,8 +518,8 @@ gtk_image_new_from_pixmap (GdkPixmap *pixmap,
|
||||
|
||||
/**
|
||||
* gtk_image_new_from_image:
|
||||
* @image: a #GdkImage, or %NULL
|
||||
* @mask: a #GdkBitmap, or %NULL
|
||||
* @image: (allow-none): a #GdkImage, or %NULL
|
||||
* @mask: (allow-none): a #GdkBitmap, or %NULL
|
||||
*
|
||||
* Creates a #GtkImage widget displaying a @image with a @mask.
|
||||
* A #GdkImage is a client-side image buffer in the pixel format of the
|
||||
@ -579,7 +579,7 @@ gtk_image_new_from_file (const gchar *filename)
|
||||
|
||||
/**
|
||||
* gtk_image_new_from_pixbuf:
|
||||
* @pixbuf: a #GdkPixbuf, or %NULL
|
||||
* @pixbuf: (allow-none): a #GdkPixbuf, or %NULL
|
||||
*
|
||||
* Creates a new #GtkImage displaying @pixbuf.
|
||||
* The #GtkImage does not assume a reference to the
|
||||
@ -750,8 +750,8 @@ gtk_image_new_from_gicon (GIcon *icon,
|
||||
/**
|
||||
* gtk_image_set_from_pixmap:
|
||||
* @image: a #GtkImage
|
||||
* @pixmap: a #GdkPixmap or %NULL
|
||||
* @mask: a #GdkBitmap or %NULL
|
||||
* @pixmap: (allow-none): a #GdkPixmap or %NULL
|
||||
* @mask: (allow-none): a #GdkBitmap or %NULL
|
||||
*
|
||||
* See gtk_image_new_from_pixmap() for details.
|
||||
**/
|
||||
@ -801,8 +801,8 @@ gtk_image_set_from_pixmap (GtkImage *image,
|
||||
/**
|
||||
* gtk_image_set_from_image:
|
||||
* @image: a #GtkImage
|
||||
* @gdk_image: a #GdkImage or %NULL
|
||||
* @mask: a #GdkBitmap or %NULL
|
||||
* @gdk_image: (allow-none): a #GdkImage or %NULL
|
||||
* @mask: (allow-none): a #GdkBitmap or %NULL
|
||||
*
|
||||
* See gtk_image_new_from_image() for details.
|
||||
**/
|
||||
@ -852,7 +852,7 @@ gtk_image_set_from_image (GtkImage *image,
|
||||
/**
|
||||
* gtk_image_set_from_file:
|
||||
* @image: a #GtkImage
|
||||
* @filename: a filename or %NULL
|
||||
* @filename: (allow-none): a filename or %NULL
|
||||
*
|
||||
* See gtk_image_new_from_file() for details.
|
||||
**/
|
||||
@ -908,7 +908,7 @@ gtk_image_set_from_file (GtkImage *image,
|
||||
/**
|
||||
* gtk_image_set_from_pixbuf:
|
||||
* @image: a #GtkImage
|
||||
* @pixbuf: a #GdkPixbuf or %NULL
|
||||
* @pixbuf: (allow-none): a #GdkPixbuf or %NULL
|
||||
*
|
||||
* See gtk_image_new_from_pixbuf() for details.
|
||||
**/
|
||||
|
@ -916,7 +916,7 @@ gtk_image_menu_item_set_accel_group (GtkImageMenuItem *image_menu_item,
|
||||
/**
|
||||
* gtk_image_menu_item_set_image:
|
||||
* @image_menu_item: a #GtkImageMenuItem.
|
||||
* @image: a widget to set as the image for the menu item.
|
||||
* @image: (allow-none): a widget to set as the image for the menu item.
|
||||
*
|
||||
* Sets the image of @image_menu_item to the given widget.
|
||||
* Note that it depends on the show-menu-images setting whether
|
||||
|
@ -149,7 +149,7 @@ gtk_item_factory_init (GtkItemFactory *ifactory)
|
||||
* #GTK_TYPE_MENU_BAR, #GTK_TYPE_MENU or #GTK_TYPE_OPTION_MENU
|
||||
* @path: the factory path of the new item factory, a string of the form
|
||||
* <literal>"<name>"</literal>
|
||||
* @accel_group: a #GtkAccelGroup to which the accelerators for the
|
||||
* @accel_group: (allow-none): a #GtkAccelGroup to which the accelerators for the
|
||||
* menu items will be added, or %NULL to create a new one
|
||||
* @returns: a new #GtkItemFactory
|
||||
*
|
||||
|
@ -1610,7 +1610,7 @@ label_mnemonic_widget_weak_notify (gpointer data,
|
||||
/**
|
||||
* gtk_label_set_mnemonic_widget:
|
||||
* @label: a #GtkLabel
|
||||
* @widget: the target #GtkWidget
|
||||
* @widget: (allow-none): the target #GtkWidget
|
||||
*
|
||||
* If the label has been set so that it has an mnemonic key (using
|
||||
* i.e. gtk_label_set_markup_with_mnemonic(),
|
||||
@ -4851,7 +4851,7 @@ gtk_label_get_selection_bounds (GtkLabel *label,
|
||||
* The returned layout is owned by the label so need not be
|
||||
* freed by the caller.
|
||||
*
|
||||
* Return value: the #PangoLayout for this label
|
||||
* Return value: (transfer none): the #PangoLayout for this label
|
||||
**/
|
||||
PangoLayout*
|
||||
gtk_label_get_layout (GtkLabel *label)
|
||||
|
@ -285,7 +285,7 @@ gtk_layout_finalize (GObject *object)
|
||||
/**
|
||||
* gtk_layout_set_hadjustment:
|
||||
* @layout: a #GtkLayout
|
||||
* @adjustment: new scroll adjustment
|
||||
* @adjustment: (allow-none): new scroll adjustment
|
||||
*
|
||||
* Sets the horizontal scroll adjustment for the layout.
|
||||
*
|
||||
@ -305,7 +305,7 @@ gtk_layout_set_hadjustment (GtkLayout *layout,
|
||||
/**
|
||||
* gtk_layout_set_vadjustment:
|
||||
* @layout: a #GtkLayout
|
||||
* @adjustment: new scroll adjustment
|
||||
* @adjustment: (allow-none): new scroll adjustment
|
||||
*
|
||||
* Sets the vertical scroll adjustment for the layout.
|
||||
*
|
||||
|
@ -600,11 +600,11 @@ gtk_link_button_new (const gchar *uri)
|
||||
/**
|
||||
* gtk_link_button_new_with_label:
|
||||
* @uri: a valid URI
|
||||
* @label: the text of the button
|
||||
* @label: (allow-none): the text of the button
|
||||
*
|
||||
* Creates a new #GtkLinkButton containing a label.
|
||||
*
|
||||
* Return value: a new link button widget.
|
||||
* Return value: (transfer none): a new link button widget.
|
||||
*
|
||||
* Since: 2.10
|
||||
*/
|
||||
|
@ -267,11 +267,11 @@ gtk_list_store_new (gint n_columns,
|
||||
/**
|
||||
* gtk_list_store_newv:
|
||||
* @n_columns: number of columns in the list store
|
||||
* @types: an array of #GType types for the columns, from first to last
|
||||
* @types: (array length=n_columns): an array of #GType types for the columns, from first to last
|
||||
*
|
||||
* Non-vararg creation function. Used primarily by language bindings.
|
||||
*
|
||||
* Return value: a new #GtkListStore
|
||||
* Return value: (transfer none): a new #GtkListStore
|
||||
**/
|
||||
GtkListStore *
|
||||
gtk_list_store_newv (gint n_columns,
|
||||
@ -304,7 +304,7 @@ gtk_list_store_newv (gint n_columns,
|
||||
* gtk_list_store_set_column_types:
|
||||
* @list_store: A #GtkListStore
|
||||
* @n_columns: Number of columns for the list store
|
||||
* @types: An array length n of #GTypes
|
||||
* @types: (array length=n_columns): An array length n of #GTypes
|
||||
*
|
||||
* This function is meant primarily for #GObjects that inherit from #GtkListStore,
|
||||
* and should only be used when constructing a new #GtkListStore. It will not
|
||||
@ -832,8 +832,8 @@ gtk_list_store_set_valist_internal (GtkListStore *list_store,
|
||||
* gtk_list_store_set_valuesv:
|
||||
* @list_store: A #GtkListStore
|
||||
* @iter: A valid #GtkTreeIter for the row being modified
|
||||
* @columns: an array of column numbers
|
||||
* @values: an array of GValues
|
||||
* @columns: (array length=n_values): an array of column numbers
|
||||
* @values: (array length=n_values): an array of GValues
|
||||
* @n_values: the length of the @columns and @values arrays
|
||||
*
|
||||
* A variant of gtk_list_store_set_valist() which
|
||||
@ -1579,7 +1579,7 @@ gtk_list_store_move_to (GtkListStore *store,
|
||||
* gtk_list_store_move_before:
|
||||
* @store: A #GtkListStore.
|
||||
* @iter: A #GtkTreeIter.
|
||||
* @position: A #GtkTreeIter, or %NULL.
|
||||
* @position: (allow-none): A #GtkTreeIter, or %NULL.
|
||||
*
|
||||
* Moves @iter in @store to the position before @position. Note that this
|
||||
* function only works with unsorted stores. If @position is %NULL, @iter
|
||||
@ -1612,7 +1612,7 @@ gtk_list_store_move_before (GtkListStore *store,
|
||||
* gtk_list_store_move_after:
|
||||
* @store: A #GtkListStore.
|
||||
* @iter: A #GtkTreeIter.
|
||||
* @position: A #GtkTreeIter or %NULL.
|
||||
* @position: (allow-none): A #GtkTreeIter or %NULL.
|
||||
*
|
||||
* Moves @iter in @store to the position after @position. Note that this
|
||||
* function only works with unsorted stores. If @position is %NULL, @iter
|
||||
|
@ -882,8 +882,8 @@ gtk_init_with_args (int *argc,
|
||||
|
||||
/**
|
||||
* gtk_parse_args:
|
||||
* @argc: a pointer to the number of command line arguments.
|
||||
* @argv: a pointer to the array of command line arguments.
|
||||
* @argc: (inout): a pointer to the number of command line arguments.
|
||||
* @argv: (array) (inout): a pointer to the array of command line arguments.
|
||||
*
|
||||
* Parses command line arguments, and initializes global
|
||||
* attributes of GTK+, but does not actually open a connection
|
||||
@ -935,9 +935,9 @@ gtk_parse_args (int *argc,
|
||||
|
||||
/**
|
||||
* gtk_init_check:
|
||||
* @argc: Address of the <parameter>argc</parameter> parameter of your
|
||||
* @argc: (inout): Address of the <parameter>argc</parameter> parameter of your
|
||||
* main() function. Changed if any arguments were handled.
|
||||
* @argv: Address of the <parameter>argv</parameter> parameter of main().
|
||||
* @argv: (array length=argc) (inout) (allow-none): Address of the <parameter>argv</parameter> parameter of main().
|
||||
* Any parameters understood by gtk_init() are stripped before return.
|
||||
*
|
||||
* This function does the same work as gtk_init() with only
|
||||
@ -966,9 +966,9 @@ gtk_init_check (int *argc,
|
||||
|
||||
/**
|
||||
* gtk_init:
|
||||
* @argc: Address of the <parameter>argc</parameter> parameter of your
|
||||
* @argc: (inout): Address of the <parameter>argc</parameter> parameter of your
|
||||
* main() function. Changed if any arguments were handled.
|
||||
* @argv: Address of the <parameter>argv</parameter> parameter of main().
|
||||
* @argv: (array length=argc) (inout) (allow-none): Address of the <parameter>argv</parameter> parameter of main().
|
||||
* Any parameters understood by gtk_init() are stripped before return.
|
||||
*
|
||||
* Call this function before using any other GTK+ functions in your GUI
|
||||
|
@ -1747,6 +1747,11 @@ gtk_menu_set_active (GtkMenu *menu,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_menu_set_accel_group:
|
||||
* @accel_group: (allow-none):
|
||||
*/
|
||||
void
|
||||
gtk_menu_set_accel_group (GtkMenu *menu,
|
||||
GtkAccelGroup *accel_group)
|
||||
@ -1793,7 +1798,7 @@ gtk_menu_real_can_activate_accel (GtkWidget *widget,
|
||||
/**
|
||||
* gtk_menu_set_accel_path
|
||||
* @menu: a valid #GtkMenu
|
||||
* @accel_path: a valid accelerator path
|
||||
* @accel_path: (allow-none): a valid accelerator path
|
||||
*
|
||||
* Sets an accelerator path for this menu from which accelerator paths
|
||||
* for its immediate children, its menu items, can be constructed.
|
||||
@ -4810,7 +4815,7 @@ gtk_menu_hide_all (GtkWidget *widget)
|
||||
/**
|
||||
* gtk_menu_set_screen:
|
||||
* @menu: a #GtkMenu.
|
||||
* @screen: a #GdkScreen, or %NULL if the screen should be
|
||||
* @screen: (allow-none): a #GdkScreen, or %NULL if the screen should be
|
||||
* determined by the widget the menu is attached to.
|
||||
*
|
||||
* Sets the #GdkScreen on which the menu will be displayed.
|
||||
@ -5282,7 +5287,7 @@ gtk_menu_get_monitor (GtkMenu *menu)
|
||||
* Returns a list of the menus which are attached to this widget.
|
||||
* This list is owned by GTK+ and must not be modified.
|
||||
*
|
||||
* Return value: the list of menus attached to his widget.
|
||||
* Return value: (element-type GtkWidget) (transfer none): the list of menus attached to his widget.
|
||||
*
|
||||
* Since: 2.6
|
||||
**/
|
||||
|
@ -2001,7 +2001,7 @@ _gtk_menu_item_refresh_accel_path (GtkMenuItem *menu_item,
|
||||
/**
|
||||
* gtk_menu_item_set_accel_path
|
||||
* @menu_item: a valid #GtkMenuItem
|
||||
* @accel_path: accelerator path, corresponding to this menu item's
|
||||
* @accel_path: (allow-none): accelerator path, corresponding to this menu item's
|
||||
* functionality, or %NULL to unset the current path.
|
||||
*
|
||||
* Set the accelerator path on @menu_item, through which runtime changes of the
|
||||
|
@ -596,8 +596,8 @@ gtk_menu_tool_button_get_menu (GtkMenuToolButton *button)
|
||||
* gtk_menu_tool_button_set_arrow_tooltip:
|
||||
* @button: a #GtkMenuToolButton
|
||||
* @tooltips: the #GtkTooltips object to be used
|
||||
* @tip_text: text to be used as tooltip text for tool_item
|
||||
* @tip_private: text to be used as private tooltip text
|
||||
* @tip_text: (allow-none): text to be used as tooltip text for tool_item
|
||||
* @tip_private: (allow-none): text to be used as private tooltip text
|
||||
*
|
||||
* Sets the #GtkTooltips object to be used for arrow button which
|
||||
* pops up the menu. See gtk_tool_item_set_tooltip() for setting
|
||||
|
@ -475,11 +475,11 @@ gtk_message_dialog_get_property (GObject *object,
|
||||
|
||||
/**
|
||||
* gtk_message_dialog_new:
|
||||
* @parent: transient parent, or %NULL for none
|
||||
* @parent: (allow-none): transient parent, or %NULL for none
|
||||
* @flags: flags
|
||||
* @type: type of message
|
||||
* @buttons: set of buttons to use
|
||||
* @message_format: printf()-style format string, or %NULL
|
||||
* @message_format: (allow-none): printf()-style format string, or %NULL
|
||||
* @Varargs: arguments for @message_format
|
||||
*
|
||||
* Creates a new message dialog, which is a simple dialog with an icon
|
||||
@ -488,7 +488,7 @@ gtk_message_dialog_get_property (GObject *object,
|
||||
* signal is emitted with response IDs from #GtkResponseType. See
|
||||
* #GtkDialog for more details.
|
||||
*
|
||||
* Return value: a new #GtkMessageDialog
|
||||
* Return value: (transfer none): a new #GtkMessageDialog
|
||||
**/
|
||||
GtkWidget*
|
||||
gtk_message_dialog_new (GtkWindow *parent,
|
||||
|
@ -6384,7 +6384,7 @@ gtk_notebook_set_tab_vborder_internal (GtkNotebook *notebook,
|
||||
* gtk_notebook_append_page:
|
||||
* @notebook: a #GtkNotebook
|
||||
* @child: the #GtkWidget to use as the contents of the page.
|
||||
* @tab_label: the #GtkWidget to be used as the label for the page,
|
||||
* @tab_label: (allow-none): the #GtkWidget to be used as the label for the page,
|
||||
* or %NULL to use the default label, 'page N'.
|
||||
*
|
||||
* Appends a page to @notebook.
|
||||
@ -6408,9 +6408,9 @@ gtk_notebook_append_page (GtkNotebook *notebook,
|
||||
* gtk_notebook_append_page_menu:
|
||||
* @notebook: a #GtkNotebook
|
||||
* @child: the #GtkWidget to use as the contents of the page.
|
||||
* @tab_label: the #GtkWidget to be used as the label for the page,
|
||||
* @tab_label: (allow-none): the #GtkWidget to be used as the label for the page,
|
||||
* or %NULL to use the default label, 'page N'.
|
||||
* @menu_label: the widget to use as a label for the page-switch
|
||||
* @menu_label: (allow-none): the widget to use as a label for the page-switch
|
||||
* menu, if that is enabled. If %NULL, and @tab_label
|
||||
* is a #GtkLabel or %NULL, then the menu label will be
|
||||
* a newly created label with the same text as @tab_label;
|
||||
@ -6441,7 +6441,7 @@ gtk_notebook_append_page_menu (GtkNotebook *notebook,
|
||||
* gtk_notebook_prepend_page:
|
||||
* @notebook: a #GtkNotebook
|
||||
* @child: the #GtkWidget to use as the contents of the page.
|
||||
* @tab_label: the #GtkWidget to be used as the label for the page,
|
||||
* @tab_label: (allow-none): the #GtkWidget to be used as the label for the page,
|
||||
* or %NULL to use the default label, 'page N'.
|
||||
*
|
||||
* Prepends a page to @notebook.
|
||||
@ -6465,9 +6465,9 @@ gtk_notebook_prepend_page (GtkNotebook *notebook,
|
||||
* gtk_notebook_prepend_page_menu:
|
||||
* @notebook: a #GtkNotebook
|
||||
* @child: the #GtkWidget to use as the contents of the page.
|
||||
* @tab_label: the #GtkWidget to be used as the label for the page,
|
||||
* @tab_label: (allow-none): the #GtkWidget to be used as the label for the page,
|
||||
* or %NULL to use the default label, 'page N'.
|
||||
* @menu_label: the widget to use as a label for the page-switch
|
||||
* @menu_label: (allow-none): the widget to use as a label for the page-switch
|
||||
* menu, if that is enabled. If %NULL, and @tab_label
|
||||
* is a #GtkLabel or %NULL, then the menu label will be
|
||||
* a newly created label with the same text as @tab_label;
|
||||
@ -6498,7 +6498,7 @@ gtk_notebook_prepend_page_menu (GtkNotebook *notebook,
|
||||
* gtk_notebook_insert_page:
|
||||
* @notebook: a #GtkNotebook
|
||||
* @child: the #GtkWidget to use as the contents of the page.
|
||||
* @tab_label: the #GtkWidget to be used as the label for the page,
|
||||
* @tab_label: (allow-none): the #GtkWidget to be used as the label for the page,
|
||||
* or %NULL to use the default label, 'page N'.
|
||||
* @position: the index (starting at 0) at which to insert the page,
|
||||
* or -1 to append the page after all other pages.
|
||||
@ -6555,9 +6555,9 @@ gtk_notebook_mnemonic_activate_switch_page (GtkWidget *child,
|
||||
* gtk_notebook_insert_page_menu:
|
||||
* @notebook: a #GtkNotebook
|
||||
* @child: the #GtkWidget to use as the contents of the page.
|
||||
* @tab_label: the #GtkWidget to be used as the label for the page,
|
||||
* @tab_label: (allow-none): the #GtkWidget to be used as the label for the page,
|
||||
* or %NULL to use the default label, 'page N'.
|
||||
* @menu_label: the widget to use as a label for the page-switch
|
||||
* @menu_label: (allow-none): the widget to use as a label for the page-switch
|
||||
* menu, if that is enabled. If %NULL, and @tab_label
|
||||
* is a #GtkLabel or %NULL, then the menu label will be
|
||||
* a newly created label with the same text as @tab_label;
|
||||
@ -6655,7 +6655,7 @@ gtk_notebook_get_current_page (GtkNotebook *notebook)
|
||||
*
|
||||
* Returns the child widget contained in page number @page_num.
|
||||
*
|
||||
* Return value: the child widget, or %NULL if @page_num is
|
||||
* Return value: (transfer none): the child widget, or %NULL if @page_num is
|
||||
* out of bounds.
|
||||
**/
|
||||
GtkWidget*
|
||||
@ -7174,7 +7174,7 @@ gtk_notebook_popup_disable (GtkNotebook *notebook)
|
||||
* if @child is not in @notebook or if no tab label has specifically
|
||||
* been set for @child.
|
||||
*
|
||||
* Return value: the tab label
|
||||
* Return value: (transfer none): the tab label
|
||||
**/
|
||||
GtkWidget *
|
||||
gtk_notebook_get_tab_label (GtkNotebook *notebook,
|
||||
@ -7199,7 +7199,7 @@ gtk_notebook_get_tab_label (GtkNotebook *notebook,
|
||||
* gtk_notebook_set_tab_label:
|
||||
* @notebook: a #GtkNotebook
|
||||
* @child: the page
|
||||
* @tab_label: the tab label widget to use, or %NULL for default tab
|
||||
* @tab_label: (allow-none): the tab label widget to use, or %NULL for default tab
|
||||
* label.
|
||||
*
|
||||
* Changes the tab label for @child. If %NULL is specified
|
||||
@ -7358,7 +7358,7 @@ gtk_notebook_get_menu_label (GtkNotebook *notebook,
|
||||
* gtk_notebook_set_menu_label:
|
||||
* @notebook: a #GtkNotebook
|
||||
* @child: the child widget
|
||||
* @menu_label: the menu label, or NULL for default
|
||||
* @menu_label: (allow-none): the menu label, or NULL for default
|
||||
*
|
||||
* Changes the menu label for the page containing @child.
|
||||
**/
|
||||
|
@ -191,7 +191,7 @@ gtk_paper_size_new_from_info (const PaperInfo *info)
|
||||
|
||||
/**
|
||||
* gtk_paper_size_new:
|
||||
* @name: a paper size name, or %NULL
|
||||
* @name: (allow-none): a paper size name, or %NULL
|
||||
*
|
||||
* Creates a new #GtkPaperSize object by parsing a
|
||||
* <ulink url="ftp://ftp.pwg.org/pub/pwg/candidates/cs-pwgmsn10-20020226-5101.1.pdf">PWG 5101.1-2002</ulink>
|
||||
@ -444,7 +444,7 @@ GList * _gtk_load_custom_papers (void);
|
||||
*
|
||||
* Creates a list of known paper sizes.
|
||||
*
|
||||
* Return value: a newly allocated list of newly
|
||||
* Return value: (element-type GtkPaperSize) (transfer full): a newly allocated list of newly
|
||||
* allocated #GtkPaperSize objects
|
||||
*
|
||||
* Since: 2.12
|
||||
|
@ -69,6 +69,10 @@ gtk_pixmap_init (GtkPixmap *pixmap)
|
||||
pixmap->mask = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_pixmap_new:
|
||||
* @mask: (allow-none):
|
||||
*/
|
||||
GtkWidget*
|
||||
gtk_pixmap_new (GdkPixmap *val,
|
||||
GdkBitmap *mask)
|
||||
|
@ -304,6 +304,11 @@ _gtk_print_backend_create (const gchar *backend_name)
|
||||
return pb;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_printer_backend_load_modules:
|
||||
*
|
||||
* Return value: (element-type GtkPrintBackend) (transfer container):
|
||||
*/
|
||||
GList *
|
||||
gtk_print_backend_load_modules (void)
|
||||
{
|
||||
@ -587,6 +592,11 @@ gtk_print_backend_set_list_done (GtkPrintBackend *backend)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_print_backend_get_printer_list:
|
||||
*
|
||||
* Return value: (element-type GtkPrinter) (transfer container):
|
||||
*/
|
||||
GList *
|
||||
gtk_print_backend_get_printer_list (GtkPrintBackend *backend)
|
||||
{
|
||||
|
@ -933,7 +933,7 @@ _gtk_printer_create_cairo_surface (GtkPrinter *printer,
|
||||
* This will return and empty list unless the printer's details are
|
||||
* available, see gtk_printer_has_details() and gtk_printer_request_details().
|
||||
*
|
||||
* Return value: a newly allocated list of newly allocated #GtkPageSetup s.
|
||||
* Return value: (element-type GtkPageSetup) (transfer full): a newly allocated list of newly allocated #GtkPageSetup s.
|
||||
*
|
||||
* Since: 2.12
|
||||
*/
|
||||
|
@ -155,6 +155,11 @@ safe_strcmp (const char *a, const char *b)
|
||||
return strcmp (a, b);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_printer_option_set_get_groups:
|
||||
*
|
||||
* Return value: (element-type utf8) (transfer full):
|
||||
*/
|
||||
GList *
|
||||
gtk_printer_option_set_get_groups (GtkPrinterOptionSet *set)
|
||||
{
|
||||
|
@ -967,8 +967,8 @@ get_page_setup_dialog (GtkWindow *parent,
|
||||
|
||||
/**
|
||||
* gtk_print_run_page_setup_dialog:
|
||||
* @parent: transient parent, or %NULL
|
||||
* @page_setup: an existing #GtkPageSetup, or %NULL
|
||||
* @parent: (allow-none): transient parent
|
||||
* @page_setup: (allow-none): an existing #GtkPageSetup
|
||||
* @settings: a #GtkPrintSettings
|
||||
*
|
||||
* Runs a page setup dialog, letting the user modify the values from
|
||||
|
@ -1361,7 +1361,7 @@ gtk_print_operation_new (void)
|
||||
/**
|
||||
* gtk_print_operation_set_default_page_setup:
|
||||
* @op: a #GtkPrintOperation
|
||||
* @default_page_setup: a #GtkPageSetup, or %NULL
|
||||
* @default_page_setup: (allow-none): a #GtkPageSetup, or %NULL
|
||||
*
|
||||
* Makes @default_page_setup the default page setup for @op.
|
||||
*
|
||||
@ -1420,7 +1420,7 @@ gtk_print_operation_get_default_page_setup (GtkPrintOperation *op)
|
||||
/**
|
||||
* gtk_print_operation_set_print_settings:
|
||||
* @op: a #GtkPrintOperation
|
||||
* @print_settings: #GtkPrintSettings, or %NULL
|
||||
* @print_settings: (allow-none): #GtkPrintSettings
|
||||
*
|
||||
* Sets the print settings for @op. This is typically used to
|
||||
* re-establish print settings from a previous print operation,
|
||||
@ -2992,7 +2992,7 @@ gtk_print_operation_get_error (GtkPrintOperation *op,
|
||||
* gtk_print_operation_run:
|
||||
* @op: a #GtkPrintOperation
|
||||
* @action: the action to start
|
||||
* @parent: Transient parent of the dialog, or %NULL
|
||||
* @parent: (allow-none): Transient parent of the dialog
|
||||
* @error: Return location for errors, or %NULL
|
||||
*
|
||||
* Runs the print operation, by first letting the user modify
|
||||
|
@ -155,7 +155,7 @@ gtk_print_settings_get (GtkPrintSettings *settings,
|
||||
* gtk_print_settings_set:
|
||||
* @settings: a #GtkPrintSettings
|
||||
* @key: a key
|
||||
* @value: a string value, or %NULL
|
||||
* @value: (allow-none): a string value, or %NULL
|
||||
*
|
||||
* Associates @value with @key.
|
||||
*
|
||||
@ -473,7 +473,7 @@ gtk_print_settings_set_int (GtkPrintSettings *settings,
|
||||
/**
|
||||
* gtk_print_settings_foreach:
|
||||
* @settings: a #GtkPrintSettings
|
||||
* @func: the function to call
|
||||
* @func: (scope call) the function to call
|
||||
* @user_data: user data for @func
|
||||
*
|
||||
* Calls @func for each key-value pair of @settings.
|
||||
|
@ -398,6 +398,14 @@ gtk_progress_bar_new (void)
|
||||
return pbar;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_progress_bar_new_with_adjustment:
|
||||
* @adjustment: (allow-none):
|
||||
*
|
||||
* Creates a new #GtkProgressBar with an associated #GtkAdjustment.
|
||||
*
|
||||
* Returns: (transfer none): a #GtkProgressBar.
|
||||
*/
|
||||
GtkWidget*
|
||||
gtk_progress_bar_new_with_adjustment (GtkAdjustment *adjustment)
|
||||
{
|
||||
|
@ -395,7 +395,7 @@ create_menu_item (GtkAction *action)
|
||||
* }
|
||||
* ]|
|
||||
*
|
||||
* Returns: the list representing the radio group for this object
|
||||
* Returns: (element-type GtkAction) (transfer none): the list representing the radio group for this object
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
|
@ -341,6 +341,18 @@ gtk_radio_button_new_with_mnemonic_from_widget (GtkRadioButton *radio_group_memb
|
||||
return gtk_radio_button_new_with_mnemonic (l, label);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_radio_button_get_group:
|
||||
* @radio_button: a #GtkRadioButton.
|
||||
*
|
||||
* Retrieves the group assigned to a radio button.
|
||||
*
|
||||
* Return value: (element-type GtkRadioButton) (transfer none): a linked list
|
||||
* containing all the radio buttons in the same group
|
||||
* as @radio_button. The returned list is owned by the radio button
|
||||
* and must not be modified or freed.
|
||||
*/
|
||||
GSList*
|
||||
gtk_radio_button_get_group (GtkRadioButton *radio_button)
|
||||
{
|
||||
|
@ -180,6 +180,16 @@ gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item,
|
||||
g_object_unref (radio_menu_item);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_radio_menu_item_new_with_label:
|
||||
* @group: (element-type GtkRadioMenuItem) (transfer full):
|
||||
* @label: the text for the label
|
||||
*
|
||||
* Creates a new #GtkRadioMenuItem whose child is a simple #GtkLabel.
|
||||
*
|
||||
* Returns: (transfer none): A new #GtkRadioMenuItem
|
||||
*/
|
||||
GtkWidget*
|
||||
gtk_radio_menu_item_new_with_label (GSList *group,
|
||||
const gchar *label)
|
||||
|
@ -2028,9 +2028,9 @@ gtk_rc_get_style (GtkWidget *widget)
|
||||
/**
|
||||
* gtk_rc_get_style_by_paths:
|
||||
* @settings: a #GtkSettings object
|
||||
* @widget_path: the widget path to use when looking up the style, or %NULL
|
||||
* @widget_path: (allow-none): the widget path to use when looking up the style, or %NULL
|
||||
* if no matching against the widget path should be done
|
||||
* @class_path: the class path to use when looking up the style, or %NULL
|
||||
* @class_path: (allow-none): the class path to use when looking up the style, or %NULL
|
||||
* if no matching against the class path should be done.
|
||||
* @type: a type that will be used along with parent types of this type
|
||||
* when matching against class styles, or #G_TYPE_NONE
|
||||
|
@ -898,7 +898,8 @@ gtk_recent_chooser_unselect_all (GtkRecentChooser *chooser)
|
||||
* The return value of this function is affected by the "sort-type" and
|
||||
* "limit" properties of @chooser.
|
||||
*
|
||||
* Return value: A newly allocated list of #GtkRecentInfo objects. You should
|
||||
* Return value: (element-type GtkRecentInfo) (transfer full): A newly allocated
|
||||
* list of #GtkRecentInfo objects. You should
|
||||
* use gtk_recent_info_unref() on every item of the list, and then free
|
||||
* the list itself using g_list_free().
|
||||
*
|
||||
@ -1014,7 +1015,8 @@ gtk_recent_chooser_remove_filter (GtkRecentChooser *chooser,
|
||||
*
|
||||
* Gets the #GtkRecentFilter objects held by @chooser.
|
||||
*
|
||||
* Return value: A singly linked list of #GtkRecentFilter objects. You
|
||||
* Return value: (element-type GtkRecentFilter) (transfer container): A singly linked list
|
||||
* of #GtkRecentFilter objects. You
|
||||
* should just free the returned list using g_slist_free().
|
||||
*
|
||||
* Since: 2.10
|
||||
|
@ -627,7 +627,7 @@ gtk_recent_manager_new (void)
|
||||
* in your application without caring about memory management. The
|
||||
* returned instance will be freed when you application terminates.
|
||||
*
|
||||
* Return value: A unique #GtkRecentManager. Do not ref or unref it.
|
||||
* Return value: (transfer none): A unique #GtkRecentManager. Do not ref or unref it.
|
||||
*
|
||||
* Since: 2.10
|
||||
*/
|
||||
@ -1273,7 +1273,8 @@ gtk_recent_manager_move_item (GtkRecentManager *recent_manager,
|
||||
*
|
||||
* Gets the list of recently used resources.
|
||||
*
|
||||
* Return value: a list of newly allocated #GtkRecentInfo objects. Use
|
||||
* Return value: (element-type GtkRecentInfo) (transfer full): a list of
|
||||
* newly allocated #GtkRecentInfo objects. Use
|
||||
* gtk_recent_info_unref() on each item inside the list, and then
|
||||
* free the list itself using g_list_free().
|
||||
*
|
||||
@ -1723,9 +1724,9 @@ recent_app_info_free (RecentAppInfo *app_info)
|
||||
* gtk_recent_info_get_application_info:
|
||||
* @info: a #GtkRecentInfo
|
||||
* @app_name: the name of the application that has registered this item
|
||||
* @app_exec: return location for the string containing the command line
|
||||
* @count: return location for the number of times this item was registered
|
||||
* @time_: return location for the timestamp this item was last registered
|
||||
* @app_exec: (transfer none) (out): return location for the string containing the command line
|
||||
* @count: (out): return location for the number of times this item was registered
|
||||
* @time_: (out): return location for the timestamp this item was last registered
|
||||
* for this application
|
||||
*
|
||||
* Gets the data regarding the application that has registered the resource
|
||||
@ -1779,12 +1780,12 @@ gtk_recent_info_get_application_info (GtkRecentInfo *info,
|
||||
/**
|
||||
* gtk_recent_info_get_applications:
|
||||
* @info: a #GtkRecentInfo
|
||||
* @length: return location for the length of the returned list, or %NULL
|
||||
* @length: (out) (allow-none): return location for the length of the returned list
|
||||
*
|
||||
* Retrieves the list of applications that have registered this resource.
|
||||
*
|
||||
* Return value: a newly allocated %NULL-terminated array of strings.
|
||||
* Use g_strfreev() to free it.
|
||||
* Return value: (array length=length zero-terminated=1): a newly allocated
|
||||
* %NULL-terminated array of strings. Use g_strfreev() to free it.
|
||||
*
|
||||
* Since: 2.10
|
||||
*/
|
||||
@ -2274,14 +2275,14 @@ gtk_recent_info_get_age (GtkRecentInfo *info)
|
||||
/**
|
||||
* gtk_recent_info_get_groups:
|
||||
* @info: a #GtkRecentInfo
|
||||
* @length: return location for the number of groups returned, or %NULL
|
||||
* @length: (out) (allow-none): return location for the number of groups returned
|
||||
*
|
||||
* Returns all groups registered for the recently used item @info. The
|
||||
* array of returned group names will be %NULL terminated, so length might
|
||||
* optionally be %NULL.
|
||||
*
|
||||
* Return value: a newly allocated %NULL terminated array of strings. Use
|
||||
* g_strfreev() to free it.
|
||||
* Return value: (array length=length zero-terminated=1): a newly allocated
|
||||
* %NULL terminated array of strings. Use g_strfreev() to free it.
|
||||
*
|
||||
* Since: 2.10
|
||||
*/
|
||||
|
@ -377,8 +377,8 @@ gtk_scrolled_window_init (GtkScrolledWindow *scrolled_window)
|
||||
|
||||
/**
|
||||
* gtk_scrolled_window_new:
|
||||
* @hadjustment: horizontal adjustment
|
||||
* @vadjustment: vertical adjustment
|
||||
* @hadjustment: (allow-none): horizontal adjustment
|
||||
* @vadjustment: (allow-none): vertical adjustment
|
||||
*
|
||||
* Creates a new scrolled window.
|
||||
*
|
||||
|
@ -636,7 +636,7 @@ gtk_target_table_free (GtkTargetEntry *targets,
|
||||
/**
|
||||
* gtk_selection_owner_set_for_display:
|
||||
* @display: the #Gdkdisplay where the selection is set
|
||||
* @widget: new selection owner (a #GdkWidget), or %NULL.
|
||||
* @widget: (allow-none): new selection owner (a #GdkWidget), or %NULL.
|
||||
* @selection: an interned atom representing the selection to claim.
|
||||
* @time_: timestamp with which to claim the selection
|
||||
*
|
||||
@ -1757,7 +1757,8 @@ gtk_selection_data_set_uris (GtkSelectionData *selection_data,
|
||||
*
|
||||
* Gets the contents of the selection data as array of URIs.
|
||||
*
|
||||
* Return value: if the selection data contains a list of
|
||||
* Return value: (array zero-terminated=1) (element-type utf8) (transfer full): if
|
||||
* the selection data contains a list of
|
||||
* URIs, a newly allocated %NULL-terminated string array
|
||||
* containing the URIs, otherwise %NULL. If the result is
|
||||
* non-%NULL it must be freed with g_strfreev().
|
||||
|
@ -1064,7 +1064,7 @@ gtk_settings_get_for_screen (GdkScreen *screen)
|
||||
* Gets the #GtkSettings object for the default GDK screen, creating
|
||||
* it if necessary. See gtk_settings_get_for_screen().
|
||||
*
|
||||
* Return value: a #GtkSettings object. If there is no default
|
||||
* Return value: (transfer none): a #GtkSettings object. If there is no default
|
||||
* screen, then returns %NULL.
|
||||
**/
|
||||
GtkSettings*
|
||||
|
@ -585,8 +585,8 @@ gtk_size_group_remove_widget (GtkSizeGroup *size_group,
|
||||
*
|
||||
* Returns the list of widgets associated with @size_group.
|
||||
*
|
||||
* Return value: a #GSList of widgets. The list is owned by GTK+
|
||||
* and should not be modified.
|
||||
* Return value: (element-type GtkWidget) (transfer none): a #GSList of
|
||||
* widgets. The list is owned by GTK+ and should not be modified.
|
||||
*
|
||||
* Since: 2.10
|
||||
**/
|
||||
|
@ -1596,6 +1596,16 @@ gtk_spin_button_default_output (GtkSpinButton *spin_button)
|
||||
***********************************************************/
|
||||
|
||||
|
||||
/**
|
||||
* gtk_spin_button_configure:
|
||||
* @spin_button: a #GtkSpinButton
|
||||
* @adjustment: (allow-none): a #GtkAdjustment.
|
||||
* @climb_rate: the new climb rate.
|
||||
* @digits: the number of decimal places to display in the spin button.
|
||||
*
|
||||
* Changes the properties of an existing spin button. The adjustment, climb rate,
|
||||
* and number of decimal places are all changed accordingly, after this function call.
|
||||
*/
|
||||
void
|
||||
gtk_spin_button_configure (GtkSpinButton *spin_button,
|
||||
GtkAdjustment *adjustment,
|
||||
|
@ -1875,7 +1875,7 @@ gtk_status_icon_set_image (GtkStatusIcon *status_icon,
|
||||
/**
|
||||
* gtk_status_icon_set_from_pixbuf:
|
||||
* @status_icon: a #GtkStatusIcon
|
||||
* @pixbuf: a #GdkPixbuf or %NULL
|
||||
* @pixbuf: (allow-none): a #GdkPixbuf or %NULL
|
||||
*
|
||||
* Makes @status_icon display @pixbuf.
|
||||
* See gtk_status_icon_new_from_pixbuf() for details.
|
||||
@ -2212,7 +2212,7 @@ gtk_status_icon_get_screen (GtkStatusIcon *status_icon)
|
||||
/**
|
||||
* gtk_status_icon_set_tooltip:
|
||||
* @status_icon: a #GtkStatusIcon
|
||||
* @tooltip_text: the tooltip text, or %NULL
|
||||
* @tooltip_text: (allow-none): the tooltip text, or %NULL
|
||||
*
|
||||
* Sets the tooltip of the status icon.
|
||||
*
|
||||
@ -2561,11 +2561,11 @@ gtk_status_icon_position_menu (GtkMenu *menu,
|
||||
/**
|
||||
* gtk_status_icon_get_geometry:
|
||||
* @status_icon: a #GtkStatusIcon
|
||||
* @screen: return location for the screen, or %NULL if the
|
||||
* @screen: (out) (transfer none) (allow-none): return location for the screen, or %NULL if the
|
||||
* information is not needed
|
||||
* @area: return location for the area occupied by the status
|
||||
* @area: (out) (allow-none): return location for the area occupied by the status
|
||||
* icon, or %NULL
|
||||
* @orientation: return location for the orientation of the panel
|
||||
* @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.
|
||||
|
@ -216,7 +216,7 @@ gtk_stock_lookup (const gchar *stock_id,
|
||||
* or registered with gtk_stock_add(). The list must be freed with g_slist_free(),
|
||||
* and each string in the list must be freed with g_free().
|
||||
*
|
||||
* Return value: a list of known stock IDs
|
||||
* Return value: (element-type utf8) (transfer full): a list of known stock IDs
|
||||
**/
|
||||
GSList*
|
||||
gtk_stock_list_ids (void)
|
||||
|
145
gtk/gtkstyle.c
145
gtk/gtkstyle.c
@ -2169,8 +2169,8 @@ gtk_style_real_set_background (GtkStyle *style,
|
||||
* @state: a state
|
||||
* @size: the size to render the icon at. A size of (GtkIconSize)-1
|
||||
* means render at the size of the source and don't scale.
|
||||
* @widget: the widget
|
||||
* @detail: a style detail
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @returns: a newly-created #GdkPixbuf containing the rendered icon
|
||||
*
|
||||
* Renders the icon specified by @source at the given @size
|
||||
@ -2200,6 +2200,19 @@ gtk_style_render_icon (GtkStyle *style,
|
||||
}
|
||||
|
||||
/* Default functions */
|
||||
|
||||
/**
|
||||
* gtk_style_apply_default_background:
|
||||
* @style:
|
||||
* @window:
|
||||
* @set_bg:
|
||||
* @state_type:
|
||||
* @area: (allow-none):
|
||||
* @x:
|
||||
* @y:
|
||||
* @width:
|
||||
* @height:
|
||||
*/
|
||||
void
|
||||
gtk_style_apply_default_background (GtkStyle *style,
|
||||
GdkWindow *window,
|
||||
@ -5878,10 +5891,10 @@ hls_to_rgb (gdouble *h,
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @area: rectangle to which the output is clipped, or %NULL if the
|
||||
* @area: (allow-none): rectangle to which the output is clipped, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x1: the starting x coordinate
|
||||
* @x2: the ending x coordinate
|
||||
* @y: the y coordinate
|
||||
@ -5914,10 +5927,10 @@ gtk_paint_hline (GtkStyle *style,
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @area: rectangle to which the output is clipped, or %NULL if the
|
||||
* @area: (allow-none): rectangle to which the output is clipped, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @y1_: the starting y coordinate
|
||||
* @y2_: the ending y coordinate
|
||||
* @x: the x coordinate
|
||||
@ -5951,10 +5964,10 @@ gtk_paint_vline (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: type of shadow to draw
|
||||
* @area: clip rectangle or %NULL if the
|
||||
* @area: (allow-none): clip rectangle or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the rectangle
|
||||
* @y: y origin of the rectangle
|
||||
* @width: width of the rectangle
|
||||
@ -5991,10 +6004,10 @@ gtk_paint_shadow (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @points: an array of #GdkPoint<!-- -->s
|
||||
* @n_points: length of @points
|
||||
* @fill: %TRUE if the polygon should be filled
|
||||
@ -6028,10 +6041,10 @@ gtk_paint_polygon (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: the type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @arrow_type: the type of arrow to draw
|
||||
* @fill: %TRUE if the arrow tip should be filled
|
||||
* @x: x origin of the rectangle to draw the arrow in
|
||||
@ -6072,10 +6085,10 @@ gtk_paint_arrow (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: the type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the rectangle to draw the diamond in
|
||||
* @y: y origin of the rectangle to draw the diamond in
|
||||
* @width: width of the rectangle to draw the diamond in
|
||||
@ -6111,10 +6124,10 @@ gtk_paint_diamond (GtkStyle *style,
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin
|
||||
* @y: y origin
|
||||
* @string: the string to draw
|
||||
@ -6149,10 +6162,10 @@ gtk_paint_string (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: the type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the box
|
||||
* @y: y origin of the box
|
||||
* @width: the width of the box
|
||||
@ -6188,10 +6201,10 @@ gtk_paint_box (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: the type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the box
|
||||
* @y: y origin of the box
|
||||
* @width: the width of the box
|
||||
@ -6227,10 +6240,10 @@ gtk_paint_flat_box (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: the type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the rectangle to draw the check in
|
||||
* @y: y origin of the rectangle to draw the check in
|
||||
* @width: the width of the rectangle to draw the check in
|
||||
@ -6267,10 +6280,10 @@ gtk_paint_check (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: the type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the rectangle to draw the option in
|
||||
* @y: y origin of the rectangle to draw the option in
|
||||
* @width: the width of the rectangle to draw the option in
|
||||
@ -6307,10 +6320,10 @@ gtk_paint_option (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: the type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the rectangle to draw the tab in
|
||||
* @y: y origin of the rectangle to draw the tab in
|
||||
* @width: the width of the rectangle to draw the tab in
|
||||
@ -6347,10 +6360,10 @@ gtk_paint_tab (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the rectangle
|
||||
* @y: y origin of the rectangle
|
||||
* @width: width of the rectangle
|
||||
@ -6395,10 +6408,10 @@ gtk_paint_shadow_gap (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the rectangle
|
||||
* @y: y origin of the rectangle
|
||||
* @width: width of the rectangle
|
||||
@ -6441,10 +6454,10 @@ gtk_paint_box_gap (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the extension
|
||||
* @y: y origin of the extension
|
||||
* @width: width of the extension
|
||||
@ -6481,10 +6494,10 @@ gtk_paint_extension (GtkStyle *style,
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: the x origin of the rectangle around which to draw a focus indicator
|
||||
* @y: the y origin of the rectangle around which to draw a focus indicator
|
||||
* @width: the width of the rectangle around which to draw a focus indicator
|
||||
@ -6520,10 +6533,10 @@ gtk_paint_focus (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: a shadow
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: the x origin of the rectangle in which to draw a slider
|
||||
* @y: the y origin of the rectangle in which to draw a slider
|
||||
* @width: the width of the rectangle in which to draw a slider
|
||||
@ -6562,10 +6575,10 @@ gtk_paint_slider (GtkStyle *style,
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @shadow_type: type of shadow to draw
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin of the handle
|
||||
* @y: y origin of the handle
|
||||
* @width: with of the handle
|
||||
@ -6602,10 +6615,10 @@ gtk_paint_handle (GtkStyle *style,
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: the x position to draw the expander at
|
||||
* @y: the y position to draw the expander at
|
||||
* @expander_style: the style to draw the expander in; determines
|
||||
@ -6649,10 +6662,10 @@ gtk_paint_expander (GtkStyle *style,
|
||||
* @state_type: a state
|
||||
* @use_text: whether to use the text or foreground
|
||||
* graphics context of @style
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @x: x origin
|
||||
* @y: y origin
|
||||
* @layout: the layout to draw
|
||||
@ -6685,10 +6698,10 @@ gtk_paint_layout (GtkStyle *style,
|
||||
* @style: a #GtkStyle
|
||||
* @window: a #GdkWindow
|
||||
* @state_type: a state
|
||||
* @area: clip rectangle, or %NULL if the
|
||||
* @area: (allow-none): clip rectangle, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @widget: the widget (may be %NULL)
|
||||
* @detail: a style detail (may be %NULL)
|
||||
* @widget: (allow-none): the widget
|
||||
* @detail: (allow-none): a style detail
|
||||
* @edge: the edge in which to draw the resize grip
|
||||
* @x: the x origin of the rectangle in which to draw the resize grip
|
||||
* @y: the y origin of the rectangle in which to draw the resize grip
|
||||
@ -7137,7 +7150,7 @@ draw_insertion_cursor (GtkWidget *widget,
|
||||
* gtk_draw_insertion_cursor:
|
||||
* @widget: a #GtkWidget
|
||||
* @drawable: a #GdkDrawable
|
||||
* @area: rectangle to which the output is clipped, or %NULL if the
|
||||
* @area: (allow-none): rectangle to which the output is clipped, or %NULL if the
|
||||
* output should not be clipped
|
||||
* @location: location where to draw the cursor (@location->width is ignored)
|
||||
* @is_primary: if the cursor should be the primary cursor color.
|
||||
|
@ -805,7 +805,7 @@ _gtk_text_buffer_get_btree (GtkTextBuffer *buffer)
|
||||
*
|
||||
* Get the #GtkTextTagTable associated with this buffer.
|
||||
*
|
||||
* Return value: the buffer's tag table
|
||||
* Return value: (transfer none): the buffer's tag table
|
||||
**/
|
||||
GtkTextTagTable*
|
||||
gtk_text_buffer_get_tag_table (GtkTextBuffer *buffer)
|
||||
@ -2061,7 +2061,7 @@ gtk_text_buffer_set_mark (GtkTextBuffer *buffer,
|
||||
/**
|
||||
* gtk_text_buffer_create_mark:
|
||||
* @buffer: a #GtkTextBuffer
|
||||
* @mark_name: name for mark, or %NULL
|
||||
* @mark_name: (allow-none): name for mark, or %NULL
|
||||
* @where: location to place mark
|
||||
* @left_gravity: whether the mark has left gravity
|
||||
*
|
||||
@ -2224,7 +2224,7 @@ gtk_text_buffer_delete_mark (GtkTextBuffer *buffer,
|
||||
* Returns the mark named @name in buffer @buffer, or %NULL if no such
|
||||
* mark exists in the buffer.
|
||||
*
|
||||
* Return value: a #GtkTextMark, or %NULL
|
||||
* Return value: (transfer none): a #GtkTextMark, or %NULL
|
||||
**/
|
||||
GtkTextMark*
|
||||
gtk_text_buffer_get_mark (GtkTextBuffer *buffer,
|
||||
@ -2307,7 +2307,7 @@ gtk_text_buffer_delete_mark_by_name (GtkTextBuffer *buffer,
|
||||
* named "insert", but very slightly more efficient, and involves less
|
||||
* typing.
|
||||
*
|
||||
* Return value: insertion point mark
|
||||
* Return value: (transfer none): insertion point mark
|
||||
**/
|
||||
GtkTextMark*
|
||||
gtk_text_buffer_get_insert (GtkTextBuffer *buffer)
|
||||
@ -2333,7 +2333,7 @@ gtk_text_buffer_get_insert (GtkTextBuffer *buffer)
|
||||
* for handling the selection, if you just want to know whether there's a
|
||||
* selection and what its bounds are.
|
||||
*
|
||||
* Return value: selection bound mark
|
||||
* Return value: (transfer none): selection bound mark
|
||||
**/
|
||||
GtkTextMark*
|
||||
gtk_text_buffer_get_selection_bound (GtkTextBuffer *buffer)
|
||||
@ -3732,7 +3732,7 @@ remove_all_selection_clipboards (GtkTextBuffer *buffer)
|
||||
* gtk_text_buffer_paste_clipboard:
|
||||
* @buffer: a #GtkTextBuffer
|
||||
* @clipboard: the #GtkClipboard to paste from
|
||||
* @override_location: location to insert pasted text, or %NULL for
|
||||
* @override_location: (allow-none): location to insert pasted text, or %NULL for
|
||||
* at the cursor
|
||||
* @default_editable: whether the buffer is editable by default
|
||||
*
|
||||
|
@ -104,7 +104,7 @@ gtk_text_buffer_register_serialize_format (GtkTextBuffer *buffer,
|
||||
/**
|
||||
* gtk_text_buffer_register_serialize_tagset:
|
||||
* @buffer: a #GtkTextBuffer
|
||||
* @tagset_name: an optional tagset name, on %NULL
|
||||
* @tagset_name: (allow-none): an optional tagset name, on %NULL
|
||||
*
|
||||
* This function registers GTK+'s internal rich text serialization
|
||||
* format with the passed @buffer. The internal format does not comply
|
||||
@ -202,7 +202,7 @@ gtk_text_buffer_register_deserialize_format (GtkTextBuffer *buffe
|
||||
/**
|
||||
* gtk_text_buffer_register_deserialize_tagset:
|
||||
* @buffer: a #GtkTextBuffer
|
||||
* @tagset_name: an optional tagset name, on %NULL
|
||||
* @tagset_name: (allow-none): an optional tagset name, on %NULL
|
||||
*
|
||||
* This function registers GTK+'s internal rich text serialization
|
||||
* format with the passed @buffer. See
|
||||
|
@ -386,7 +386,7 @@ gtk_text_child_anchor_finalize (GObject *obj)
|
||||
* The returned list should be freed with g_list_free().
|
||||
*
|
||||
*
|
||||
* Return value: list of widgets anchored at @anchor
|
||||
* Return value: (element-type GtkWidget) (transfer container): list of widgets anchored at @anchor
|
||||
**/
|
||||
GList*
|
||||
gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor)
|
||||
|
@ -371,7 +371,7 @@ check_invariants (const GtkTextIter *iter)
|
||||
*
|
||||
* Returns the #GtkTextBuffer this iterator is associated with.
|
||||
*
|
||||
* Return value: the buffer
|
||||
* Return value: (transfer none): the buffer
|
||||
**/
|
||||
GtkTextBuffer*
|
||||
gtk_text_iter_get_buffer (const GtkTextIter *iter)
|
||||
@ -972,7 +972,7 @@ gtk_text_iter_get_visible_text (const GtkTextIter *start,
|
||||
* (with no new reference count added). Otherwise,
|
||||
* %NULL is returned.
|
||||
*
|
||||
* Return value: the pixbuf at @iter
|
||||
* Return value: (transfer none): the pixbuf at @iter
|
||||
**/
|
||||
GdkPixbuf*
|
||||
gtk_text_iter_get_pixbuf (const GtkTextIter *iter)
|
||||
@ -1034,7 +1034,7 @@ gtk_text_iter_get_child_anchor (const GtkTextIter *iter)
|
||||
* can exist in the same place. The returned list is not in any
|
||||
* meaningful order.
|
||||
*
|
||||
* Return value: list of #GtkTextMark
|
||||
* Return value: (element-type GtkTextMark) (transfer container): list of #GtkTextMark
|
||||
**/
|
||||
GSList*
|
||||
gtk_text_iter_get_marks (const GtkTextIter *iter)
|
||||
@ -1080,7 +1080,7 @@ gtk_text_iter_get_marks (const GtkTextIter *iter)
|
||||
* a tag is toggled off, then some non-empty range following @iter
|
||||
* does <emphasis>not</emphasis> have the tag applied to it.
|
||||
*
|
||||
* Return value: tags toggled at this point
|
||||
* Return value: (element-type GtkTextTag) (transfer container): tags toggled at this point
|
||||
**/
|
||||
GSList*
|
||||
gtk_text_iter_get_toggled_tags (const GtkTextIter *iter,
|
||||
@ -1129,7 +1129,7 @@ gtk_text_iter_get_toggled_tags (const GtkTextIter *iter,
|
||||
/**
|
||||
* gtk_text_iter_begins_tag:
|
||||
* @iter: an iterator
|
||||
* @tag: a #GtkTextTag, or %NULL
|
||||
* @tag: (allow-none): a #GtkTextTag, or %NULL
|
||||
*
|
||||
* Returns %TRUE if @tag is toggled on at exactly this point. If @tag
|
||||
* is %NULL, returns %TRUE if any tag is toggled on at this point. Note
|
||||
@ -1222,7 +1222,7 @@ gtk_text_iter_ends_tag (const GtkTextIter *iter,
|
||||
/**
|
||||
* gtk_text_iter_toggles_tag:
|
||||
* @iter: an iterator
|
||||
* @tag: a #GtkTextTag, or %NULL
|
||||
* @tag: (allow-none): a #GtkTextTag, or %NULL
|
||||
*
|
||||
* This is equivalent to (gtk_text_iter_begins_tag () ||
|
||||
* gtk_text_iter_ends_tag ()), i.e. it tells you whether a range with
|
||||
@ -1308,7 +1308,7 @@ gtk_text_iter_has_tag (const GtkTextIter *iter,
|
||||
* list don't have a reference added, but you have to free the list
|
||||
* itself.
|
||||
*
|
||||
* Return value: list of #GtkTextTag
|
||||
* Return value: (element-type GtkTextTag) (transfer container): list of #GtkTextTag
|
||||
**/
|
||||
GSList*
|
||||
gtk_text_iter_get_tags (const GtkTextIter *iter)
|
||||
@ -4111,7 +4111,7 @@ gtk_text_iter_forward_to_line_end (GtkTextIter *iter)
|
||||
/**
|
||||
* gtk_text_iter_forward_to_tag_toggle:
|
||||
* @iter: a #GtkTextIter
|
||||
* @tag: a #GtkTextTag, or %NULL
|
||||
* @tag: (allow-none): a #GtkTextTag, or %NULL
|
||||
*
|
||||
* Moves forward to the next toggle (on or off) of the
|
||||
* #GtkTextTag @tag, or to the next toggle of any tag if
|
||||
@ -4193,7 +4193,7 @@ gtk_text_iter_forward_to_tag_toggle (GtkTextIter *iter,
|
||||
/**
|
||||
* gtk_text_iter_backward_to_tag_toggle:
|
||||
* @iter: a #GtkTextIter
|
||||
* @tag: a #GtkTextTag, or %NULL
|
||||
* @tag: (allow-none): a #GtkTextTag, or %NULL
|
||||
*
|
||||
* Moves backward to the next toggle (on or off) of the
|
||||
* #GtkTextTag @tag, or to the next toggle of any tag if
|
||||
@ -4571,9 +4571,9 @@ strbreakup (const char *string,
|
||||
* @iter: start of search
|
||||
* @str: a search string
|
||||
* @flags: flags affecting how the search is done
|
||||
* @match_start: return location for start of match, or %NULL
|
||||
* @match_end: return location for end of match, or %NULL
|
||||
* @limit: bound for the search, or %NULL for the end of the buffer
|
||||
* @match_start: (allow-none): return location for start of match, or %NULL
|
||||
* @match_end: (allow-none): return location for end of match, or %NULL
|
||||
* @limit: (allow-none): bound for the search, or %NULL for the end of the buffer
|
||||
*
|
||||
* Searches forward for @str. Any match is returned by setting
|
||||
* @match_start to the first character of the match and @match_end to the
|
||||
@ -4868,9 +4868,9 @@ lines_window_free (LinesWindow *win)
|
||||
* @iter: a #GtkTextIter where the search begins
|
||||
* @str: search string
|
||||
* @flags: bitmask of flags affecting the search
|
||||
* @match_start: return location for start of match, or %NULL
|
||||
* @match_end: return location for end of match, or %NULL
|
||||
* @limit: location of last possible @match_start, or %NULL for start of buffer
|
||||
* @match_start: (allow-none): return location for start of match, or %NULL
|
||||
* @match_end: (allow-none): return location for end of match, or %NULL
|
||||
* @limit: (allow-none): location of last possible @match_start, or %NULL for start of buffer
|
||||
*
|
||||
* Same as gtk_text_iter_forward_search(), but moves backward.
|
||||
*
|
||||
|
@ -299,6 +299,10 @@ gtk_text_layout_finalize (GObject *object)
|
||||
G_OBJECT_CLASS (gtk_text_layout_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_text_layout_set_buffer:
|
||||
* @buffer: (allow-none):
|
||||
*/
|
||||
void
|
||||
gtk_text_layout_set_buffer (GtkTextLayout *layout,
|
||||
GtkTextBuffer *buffer)
|
||||
@ -703,6 +707,12 @@ gtk_text_layout_wrap (GtkTextLayout *layout,
|
||||
return GTK_TEXT_LAYOUT_GET_CLASS (layout)->wrap (layout, line, line_data);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_text_layout_get_lines:
|
||||
*
|
||||
* Return value: (element-type GtkTextLine) (transfer container):
|
||||
*/
|
||||
GSList*
|
||||
gtk_text_layout_get_lines (GtkTextLayout *layout,
|
||||
/* [top_y, bottom_y) */
|
||||
|
@ -284,7 +284,7 @@ gtk_text_mark_get_deleted (GtkTextMark *mark)
|
||||
* Gets the buffer this mark is located inside,
|
||||
* or %NULL if the mark is deleted.
|
||||
*
|
||||
* Return value: the mark's #GtkTextBuffer
|
||||
* Return value: (transfer none): the mark's #GtkTextBuffer
|
||||
**/
|
||||
GtkTextBuffer*
|
||||
gtk_text_mark_get_buffer (GtkTextMark *mark)
|
||||
|
@ -1363,7 +1363,7 @@ gtk_text_view_new_with_buffer (GtkTextBuffer *buffer)
|
||||
/**
|
||||
* gtk_text_view_set_buffer:
|
||||
* @text_view: a #GtkTextView
|
||||
* @buffer: a #GtkTextBuffer
|
||||
* @buffer: (allow-none): a #GtkTextBuffer
|
||||
*
|
||||
* Sets @buffer as the buffer being displayed by @text_view. The previous
|
||||
* buffer displayed by the text view is unreferenced, and a reference is
|
||||
@ -1504,7 +1504,7 @@ get_buffer (GtkTextView *text_view)
|
||||
* The reference count on the buffer is not incremented; the caller
|
||||
* of this function won't own a new reference.
|
||||
*
|
||||
* Return value: a #GtkTextBuffer
|
||||
* Return value: (transfer none): a #GtkTextBuffer
|
||||
**/
|
||||
GtkTextBuffer*
|
||||
gtk_text_view_get_buffer (GtkTextView *text_view)
|
||||
@ -8199,7 +8199,7 @@ text_window_get_height (GtkTextWindow *win)
|
||||
* height is 0, and are nonexistent before the widget has been
|
||||
* realized.
|
||||
*
|
||||
* Return value: a #GdkWindow, or %NULL
|
||||
* Return value: (transfer none): a #GdkWindow, or %NULL
|
||||
**/
|
||||
GdkWindow*
|
||||
gtk_text_view_get_window (GtkTextView *text_view,
|
||||
|
@ -2253,7 +2253,7 @@ logical_to_physical (GtkToolbar *toolbar,
|
||||
/**
|
||||
* gtk_toolbar_set_drop_highlight_item:
|
||||
* @toolbar: a #GtkToolbar
|
||||
* @tool_item: a #GtkToolItem, or %NULL to turn of highlighting
|
||||
* @tool_item: (allow-none): a #GtkToolItem, or %NULL to turn of highlighting
|
||||
* @index_: a position on @toolbar
|
||||
*
|
||||
* Highlights @toolbar to give an idea of what it would look like
|
||||
@ -3519,8 +3519,8 @@ gtk_toolbar_remove_space (GtkToolbar *toolbar,
|
||||
* gtk_toolbar_append_widget:
|
||||
* @toolbar: a #GtkToolbar.
|
||||
* @widget: a #GtkWidget to add to the toolbar.
|
||||
* @tooltip_text: the element's tooltip.
|
||||
* @tooltip_private_text: used for context-sensitive help about this toolbar element.
|
||||
* @tooltip_text: (allow-none): the element's tooltip.
|
||||
* @tooltip_private_text: (allow-none): used for context-sensitive help about this toolbar element.
|
||||
*
|
||||
* Adds a widget to the end of the given toolbar.
|
||||
*
|
||||
@ -3543,8 +3543,8 @@ gtk_toolbar_append_widget (GtkToolbar *toolbar,
|
||||
* gtk_toolbar_prepend_widget:
|
||||
* @toolbar: a #GtkToolbar.
|
||||
* @widget: a #GtkWidget to add to the toolbar.
|
||||
* @tooltip_text: the element's tooltip.
|
||||
* @tooltip_private_text: used for context-sensitive help about this toolbar element.
|
||||
* @tooltip_text: (allow-none): the element's tooltip.
|
||||
* @tooltip_private_text: (allow-none): used for context-sensitive help about this toolbar element.
|
||||
*
|
||||
* Adds a widget to the beginning of the given toolbar.
|
||||
*
|
||||
@ -3567,8 +3567,8 @@ gtk_toolbar_prepend_widget (GtkToolbar *toolbar,
|
||||
* gtk_toolbar_insert_widget:
|
||||
* @toolbar: a #GtkToolbar.
|
||||
* @widget: a #GtkWidget to add to the toolbar.
|
||||
* @tooltip_text: the element's tooltip.
|
||||
* @tooltip_private_text: used for context-sensitive help about this toolbar element.
|
||||
* @tooltip_text: (allow-none): the element's tooltip.
|
||||
* @tooltip_private_text: (allow-none): used for context-sensitive help about this toolbar element.
|
||||
* @position: the number of widgets to insert this widget after.
|
||||
*
|
||||
* Inserts a widget in the toolbar at the given position.
|
||||
|
@ -921,8 +921,8 @@ gtk_tool_button_new_from_stock (const gchar *stock_id)
|
||||
|
||||
/**
|
||||
* gtk_tool_button_new:
|
||||
* @label: a string that will be used as label, or %NULL
|
||||
* @icon_widget: a widget that will be used as icon widget, or %NULL
|
||||
* @label: (allow-none): a string that will be used as label, or %NULL
|
||||
* @icon_widget: (allow-none): a widget that will be used as icon widget, or %NULL
|
||||
*
|
||||
* Creates a new %GtkToolButton using @icon_widget as icon and @label as
|
||||
* label.
|
||||
@ -948,7 +948,7 @@ gtk_tool_button_new (GtkWidget *icon_widget,
|
||||
/**
|
||||
* gtk_tool_button_set_label:
|
||||
* @button: a #GtkToolButton
|
||||
* @label: a string that will be used as label, or %NULL.
|
||||
* @label: (allow-none): a string that will be used as label, or %NULL.
|
||||
*
|
||||
* Sets @label as the label used for the tool button. The "label" property
|
||||
* only has an effect if not overridden by a non-%NULL "label_widget" property.
|
||||
@ -1062,7 +1062,7 @@ gtk_tool_button_get_use_underline (GtkToolButton *button)
|
||||
/**
|
||||
* gtk_tool_button_set_stock_id:
|
||||
* @button: a #GtkToolButton
|
||||
* @stock_id: a name of a stock item, or %NULL
|
||||
* @stock_id: (allow-none): a name of a stock item, or %NULL
|
||||
*
|
||||
* Sets the name of the stock item. See gtk_tool_button_new_from_stock().
|
||||
* The stock_id property only has an effect if not
|
||||
@ -1110,7 +1110,7 @@ gtk_tool_button_get_stock_id (GtkToolButton *button)
|
||||
/**
|
||||
* gtk_tool_button_set_icon_name
|
||||
* @button: a #GtkToolButton
|
||||
* @icon_name: the name of the themed icon
|
||||
* @icon_name: (allow-none): the name of the themed icon
|
||||
*
|
||||
* Sets the icon for the tool button from a named themed icon.
|
||||
* See the docs for #GtkIconTheme for more details.
|
||||
@ -1161,7 +1161,7 @@ gtk_tool_button_get_icon_name (GtkToolButton *button)
|
||||
/**
|
||||
* gtk_tool_button_set_icon_widget:
|
||||
* @button: a #GtkToolButton
|
||||
* @icon_widget: the widget used as icon, or %NULL
|
||||
* @icon_widget: (allow-none): the widget used as icon, or %NULL
|
||||
*
|
||||
* Sets @icon as the widget used as icon on @button. If @icon_widget is
|
||||
* %NULL the icon is determined by the "stock_id" property. If the
|
||||
@ -1200,7 +1200,7 @@ gtk_tool_button_set_icon_widget (GtkToolButton *button,
|
||||
/**
|
||||
* gtk_tool_button_set_label_widget:
|
||||
* @button: a #GtkToolButton
|
||||
* @label_widget: the widget used as label, or %NULL
|
||||
* @label_widget: (allow-none): the widget used as label, or %NULL
|
||||
*
|
||||
* Sets @label_widget as the widget that will be used as the label
|
||||
* for @button. If @label_widget is %NULL the "label" property is used
|
||||
|
@ -1096,8 +1096,8 @@ gtk_tool_item_real_set_tooltip (GtkToolItem *tool_item,
|
||||
* gtk_tool_item_set_tooltip:
|
||||
* @tool_item: a #GtkToolItem
|
||||
* @tooltips: The #GtkTooltips object to be used
|
||||
* @tip_text: text to be used as tooltip text for @tool_item
|
||||
* @tip_private: text to be used as private tooltip text
|
||||
* @tip_text: (allow-none): text to be used as tooltip text for @tool_item
|
||||
* @tip_private: (allow-none): text to be used as private tooltip text
|
||||
*
|
||||
* Sets the #GtkTooltips object to be used for @tool_item, the
|
||||
* text to be displayed as tooltip on the item and the private text
|
||||
@ -1333,7 +1333,7 @@ gtk_tool_item_get_visible_vertical (GtkToolItem *toolitem)
|
||||
* gtk_tool_item_set_proxy_menu_item(), ie. the #GtkMenuItem
|
||||
* that is going to appear in the overflow menu.
|
||||
*
|
||||
* Return value: The #GtkMenuItem that is going to appear in the
|
||||
* Return value: (transfer none): The #GtkMenuItem that is going to appear in the
|
||||
* overflow menu for @tool_item.
|
||||
*
|
||||
* Since: 2.4
|
||||
|
@ -210,6 +210,17 @@ gtk_tooltips_data_get (GtkWidget *widget)
|
||||
return g_object_get_data (G_OBJECT (widget), tooltips_data_key);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_tooltips_set_tip:
|
||||
* @tooltips: a #GtkTooltips.
|
||||
* @widget: the #GtkWidget you wish to associate the tip with.
|
||||
* @tip_text: (allow-none): a string containing the tip itself.
|
||||
* @tip_private: (allow-none): a string of any further information that may be useful if the user gets stuck.
|
||||
*
|
||||
* Adds a tooltip containing the message @tip_text to the specified #GtkWidget.
|
||||
* Deprecated: 2.12:
|
||||
*/
|
||||
void
|
||||
gtk_tooltips_set_tip (GtkTooltips *tooltips,
|
||||
GtkWidget *widget,
|
||||
|
@ -1173,7 +1173,7 @@ gtk_tree_model_iter_next (GtkTreeModel *tree_model,
|
||||
* gtk_tree_model_iter_children:
|
||||
* @tree_model: A #GtkTreeModel.
|
||||
* @iter: The new #GtkTreeIter to be set to the child.
|
||||
* @parent: The #GtkTreeIter, or %NULL
|
||||
* @parent: (allow-none): The #GtkTreeIter, or %NULL
|
||||
*
|
||||
* Sets @iter to point to the first child of @parent. If @parent has no
|
||||
* children, %FALSE is returned and @iter is set to be invalid. @parent
|
||||
@ -1229,7 +1229,7 @@ gtk_tree_model_iter_has_child (GtkTreeModel *tree_model,
|
||||
/**
|
||||
* gtk_tree_model_iter_n_children:
|
||||
* @tree_model: A #GtkTreeModel.
|
||||
* @iter: The #GtkTreeIter, or %NULL.
|
||||
* @iter: (allow-none): The #GtkTreeIter, or %NULL.
|
||||
*
|
||||
* Returns the number of children that @iter has. As a special case, if @iter
|
||||
* is %NULL, then the number of toplevel nodes is returned.
|
||||
@ -1254,7 +1254,7 @@ gtk_tree_model_iter_n_children (GtkTreeModel *tree_model,
|
||||
* gtk_tree_model_iter_nth_child:
|
||||
* @tree_model: A #GtkTreeModel.
|
||||
* @iter: The #GtkTreeIter to set to the nth child.
|
||||
* @parent: The #GtkTreeIter to get the child from, or %NULL.
|
||||
* @parent: (allow-none): The #GtkTreeIter to get the child from, or %NULL.
|
||||
* @n: Then index of the desired child.
|
||||
*
|
||||
* Sets @iter to be the child of @parent, using the given index. The first
|
||||
|
@ -2956,7 +2956,7 @@ gtk_tree_model_filter_set_root (GtkTreeModelFilter *filter,
|
||||
/**
|
||||
* gtk_tree_model_filter_new:
|
||||
* @child_model: A #GtkTreeModel.
|
||||
* @root: A #GtkTreePath or %NULL.
|
||||
* @root: (allow-none): A #GtkTreePath or %NULL.
|
||||
*
|
||||
* Creates a new #GtkTreeModel, with @child_model as the child_model
|
||||
* and @root as the virtual root.
|
||||
|
@ -327,8 +327,8 @@ gtk_tree_selection_get_tree_view (GtkTreeSelection *selection)
|
||||
/**
|
||||
* gtk_tree_selection_get_selected:
|
||||
* @selection: A #GtkTreeSelection.
|
||||
* @model: A pointer to set to the #GtkTreeModel, or NULL.
|
||||
* @iter: The #GtkTreeIter, or NULL.
|
||||
* @model: (out) (allow-none): A pointer to set to the #GtkTreeModel, or NULL.
|
||||
* @iter: (allow-none): The #GtkTreeIter, or NULL.
|
||||
*
|
||||
* Sets @iter to the currently selected node if @selection is set to
|
||||
* #GTK_SELECTION_SINGLE or #GTK_SELECTION_BROWSE. @iter may be NULL if you
|
||||
@ -402,7 +402,7 @@ gtk_tree_selection_get_selected (GtkTreeSelection *selection,
|
||||
/**
|
||||
* gtk_tree_selection_get_selected_rows:
|
||||
* @selection: A #GtkTreeSelection.
|
||||
* @model: A pointer to set to the #GtkTreeModel, or NULL.
|
||||
* @model: (allow-none): A pointer to set to the #GtkTreeModel, or NULL.
|
||||
*
|
||||
* Creates a list of path of all selected rows. Additionally, if you are
|
||||
* planning on modifying the model after calling this function, you may
|
||||
@ -415,7 +415,7 @@ gtk_tree_selection_get_selected (GtkTreeSelection *selection,
|
||||
* g_list_free (list);
|
||||
* ]|
|
||||
*
|
||||
* Return value: A #GList containing a #GtkTreePath for each selected row.
|
||||
* Return value: (element-type GtkTreePath) (transfer full): A #GList containing a #GtkTreePath for each selected row.
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
|
@ -2690,7 +2690,7 @@ free_paths_and_out:
|
||||
* gtk_tree_store_move_before:
|
||||
* @tree_store: A #GtkTreeStore.
|
||||
* @iter: A #GtkTreeIter.
|
||||
* @position: A #GtkTreeIter or %NULL.
|
||||
* @position: (allow-none): A #GtkTreeIter or %NULL.
|
||||
*
|
||||
* Moves @iter in @tree_store to the position before @position. @iter and
|
||||
* @position should be in the same level. Note that this function only
|
||||
@ -2711,7 +2711,7 @@ gtk_tree_store_move_before (GtkTreeStore *tree_store,
|
||||
* gtk_tree_store_move_after:
|
||||
* @tree_store: A #GtkTreeStore.
|
||||
* @iter: A #GtkTreeIter.
|
||||
* @position: A #GtkTreeIter.
|
||||
* @position: (allow-none): A #GtkTreeIter.
|
||||
*
|
||||
* Moves @iter in @tree_store to the position after @position. @iter and
|
||||
* @position should be in the same level. Note that this function only
|
||||
|
@ -10585,7 +10585,7 @@ gtk_tree_view_get_model (GtkTreeView *tree_view)
|
||||
/**
|
||||
* gtk_tree_view_set_model:
|
||||
* @tree_view: A #GtkTreeNode.
|
||||
* @model: The model.
|
||||
* @model: (allow-none): The model.
|
||||
*
|
||||
* Sets the model for a #GtkTreeView. If the @tree_view already has a model
|
||||
* set, it will remove it before setting the new model. If @model is %NULL,
|
||||
@ -11322,7 +11322,7 @@ gtk_tree_view_get_column (GtkTreeView *tree_view,
|
||||
* Returns a #GList of all the #GtkTreeViewColumn s currently in @tree_view.
|
||||
* The returned list must be freed with g_list_free ().
|
||||
*
|
||||
* Return value: A list of #GtkTreeViewColumn s
|
||||
* Return value: (element-type GtkTreeViewColumn) (transfer container): A list of #GtkTreeViewColumn s
|
||||
**/
|
||||
GList *
|
||||
gtk_tree_view_get_columns (GtkTreeView *tree_view)
|
||||
@ -11336,7 +11336,7 @@ gtk_tree_view_get_columns (GtkTreeView *tree_view)
|
||||
* gtk_tree_view_move_column_after:
|
||||
* @tree_view: A #GtkTreeView
|
||||
* @column: The #GtkTreeViewColumn to be moved.
|
||||
* @base_column: The #GtkTreeViewColumn to be moved relative to, or %NULL.
|
||||
* @base_column: (allow-none): The #GtkTreeViewColumn to be moved relative to, or %NULL.
|
||||
*
|
||||
* Moves @column to be after to @base_column. If @base_column is %NULL, then
|
||||
* @column is placed in the first position.
|
||||
@ -11519,8 +11519,8 @@ gtk_tree_view_scroll_to_point (GtkTreeView *tree_view,
|
||||
/**
|
||||
* gtk_tree_view_scroll_to_cell:
|
||||
* @tree_view: A #GtkTreeView.
|
||||
* @path: The path of the row to move to, or %NULL.
|
||||
* @column: The #GtkTreeViewColumn to move horizontally to, or %NULL.
|
||||
* @path: (allow-none): The path of the row to move to, or %NULL.
|
||||
* @column: (allow-none): The #GtkTreeViewColumn to move horizontally to, or %NULL.
|
||||
* @use_align: whether to use alignment arguments, or %FALSE.
|
||||
* @row_align: The vertical alignment of the row specified by @path.
|
||||
* @col_align: The horizontal alignment of the column specified by @column.
|
||||
@ -12512,7 +12512,7 @@ gtk_tree_view_get_cursor (GtkTreeView *tree_view,
|
||||
* gtk_tree_view_set_cursor:
|
||||
* @tree_view: A #GtkTreeView
|
||||
* @path: A #GtkTreePath
|
||||
* @focus_column: A #GtkTreeViewColumn, or %NULL
|
||||
* @focus_column: (allow-none): A #GtkTreeViewColumn, or %NULL
|
||||
* @start_editing: %TRUE if the specified cell should start being edited.
|
||||
*
|
||||
* Sets the current keyboard focus to be at @path, and selects it. This is
|
||||
@ -12541,8 +12541,8 @@ gtk_tree_view_set_cursor (GtkTreeView *tree_view,
|
||||
* gtk_tree_view_set_cursor_on_cell:
|
||||
* @tree_view: A #GtkTreeView
|
||||
* @path: A #GtkTreePath
|
||||
* @focus_column: A #GtkTreeViewColumn, or %NULL
|
||||
* @focus_cell: A #GtkCellRenderer, or %NULL
|
||||
* @focus_column: (allow-none): A #GtkTreeViewColumn, or %NULL
|
||||
* @focus_cell: (allow-none): A #GtkCellRenderer, or %NULL
|
||||
* @start_editing: %TRUE if the specified cell should start being edited.
|
||||
*
|
||||
* Sets the current keyboard focus to be at @path, and selects it. This is
|
||||
@ -12764,8 +12764,8 @@ gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view,
|
||||
/**
|
||||
* gtk_tree_view_get_cell_area:
|
||||
* @tree_view: a #GtkTreeView
|
||||
* @path: a #GtkTreePath for the row, or %NULL to get only horizontal coordinates
|
||||
* @column: a #GtkTreeViewColumn for the column, or %NULL to get only vertical coordinates
|
||||
* @path: (allow-none): a #GtkTreePath for the row, or %NULL to get only horizontal coordinates
|
||||
* @column: (allow-none): a #GtkTreeViewColumn for the column, or %NULL to get only vertical coordinates
|
||||
* @rect: rectangle to fill with cell rect
|
||||
*
|
||||
* Fills the bounding rectangle in bin_window coordinates for the cell at the
|
||||
@ -13948,7 +13948,7 @@ gtk_tree_view_get_search_entry (GtkTreeView *tree_view)
|
||||
/**
|
||||
* gtk_tree_view_set_search_entry:
|
||||
* @tree_view: A #GtkTreeView
|
||||
* @entry: the entry the interactive search code of @tree_view should use or %NULL
|
||||
* @entry: (allow-none): the entry the interactive search code of @tree_view should use or %NULL
|
||||
*
|
||||
* Sets the entry which the interactive search code will use for this
|
||||
* @tree_view. This is useful when you want to provide a search entry
|
||||
|
@ -2245,7 +2245,7 @@ gtk_tree_view_column_get_clickable (GtkTreeViewColumn *tree_column)
|
||||
/**
|
||||
* gtk_tree_view_column_set_widget:
|
||||
* @tree_column: A #GtkTreeViewColumn.
|
||||
* @widget: A child #GtkWidget, or %NULL.
|
||||
* @widget: (allow-none): A child #GtkWidget, or %NULL.
|
||||
*
|
||||
* Sets the widget in the header to be @widget. If widget is %NULL, then the
|
||||
* header button is set with a #GtkLabel set to the title of @tree_column.
|
||||
|
@ -786,7 +786,8 @@ gtk_ui_manager_remove_action_group (GtkUIManager *self,
|
||||
*
|
||||
* Returns the list of action groups associated with @self.
|
||||
*
|
||||
* Return value: a #GList of action groups. The list is owned by GTK+
|
||||
* Return value: (element-type GtkActionGroup) (transfer none): a #GList of
|
||||
* action groups. The list is owned by GTK+
|
||||
* and should not be modified.
|
||||
*
|
||||
* Since: 2.4
|
||||
@ -805,7 +806,7 @@ gtk_ui_manager_get_action_groups (GtkUIManager *self)
|
||||
*
|
||||
* Returns the #GtkAccelGroup associated with @self.
|
||||
*
|
||||
* Return value: the #GtkAccelGroup.
|
||||
* Return value: (transfer none): the #GtkAccelGroup.
|
||||
*
|
||||
* Since: 2.4
|
||||
**/
|
||||
@ -836,7 +837,7 @@ gtk_ui_manager_get_accel_group (GtkUIManager *self)
|
||||
* function to some container or explicitly ref them, they will survive the
|
||||
* destruction of the ui manager.
|
||||
*
|
||||
* Return value: the widget found by following the path, or %NULL if no widget
|
||||
* Return value: (transfer none): the widget found by following the path, or %NULL if no widget
|
||||
* was found.
|
||||
*
|
||||
* Since: 2.4
|
||||
@ -892,8 +893,8 @@ collect_toplevels (GNode *node,
|
||||
*
|
||||
* Obtains a list of all toplevel widgets of the requested types.
|
||||
*
|
||||
* Return value: a newly-allocated #GSList of all toplevel widgets of the
|
||||
* requested types. Free the returned list with g_slist_free().
|
||||
* Return value: (element-type GtkWidget) (transfer container): a newly-allocated #GSList of
|
||||
* all toplevel widgets of the requested types. Free the returned list with g_slist_free().
|
||||
*
|
||||
* Since: 2.4
|
||||
**/
|
||||
@ -1736,7 +1737,7 @@ gtk_ui_manager_add_ui_from_file (GtkUIManager *self,
|
||||
* @merge_id: the merge id for the merged UI, see gtk_ui_manager_new_merge_id()
|
||||
* @path: a path
|
||||
* @name: the name for the added UI element
|
||||
* @action: the name of the action to be proxied, or %NULL to add a separator
|
||||
* @action: (allow-none): the name of the action to be proxied, or %NULL to add a separator
|
||||
* @type: the type of UI element to add.
|
||||
* @top: if %TRUE, the UI element is added before its siblings, otherwise it
|
||||
* is added after its siblings.
|
||||
|
@ -466,7 +466,7 @@ viewport_set_adjustment (GtkViewport *viewport,
|
||||
/**
|
||||
* gtk_viewport_set_hadjustment:
|
||||
* @viewport: a #GtkViewport.
|
||||
* @adjustment: a #GtkAdjustment.
|
||||
* @adjustment: (allow-none): a #GtkAdjustment.
|
||||
*
|
||||
* Sets the horizontal adjustment of the viewport.
|
||||
**/
|
||||
@ -486,7 +486,7 @@ gtk_viewport_set_hadjustment (GtkViewport *viewport,
|
||||
/**
|
||||
* gtk_viewport_set_vadjustment:
|
||||
* @viewport: a #GtkViewport.
|
||||
* @adjustment: a #GtkAdjustment.
|
||||
* @adjustment: (allow-none): a #GtkAdjustment.
|
||||
*
|
||||
* Sets the vertical adjustment of the viewport.
|
||||
**/
|
||||
|
@ -3132,7 +3132,7 @@ gtk_widget_destroy (GtkWidget *widget)
|
||||
/**
|
||||
* gtk_widget_destroyed:
|
||||
* @widget: a #GtkWidget
|
||||
* @widget_pointer: address of a variable that contains @widget
|
||||
* @widget_pointer: (inout) (transfer none): address of a variable that contains @widget
|
||||
*
|
||||
* This function sets *@widget_pointer to %NULL if @widget_pointer !=
|
||||
* %NULL. It's intended to be used as a callback connected to the
|
||||
@ -4159,8 +4159,8 @@ gtk_widget_common_ancestor (GtkWidget *widget_a,
|
||||
* @dest_widget: a #GtkWidget
|
||||
* @src_x: X position relative to @src_widget
|
||||
* @src_y: Y position relative to @src_widget
|
||||
* @dest_x: location to store X position relative to @dest_widget
|
||||
* @dest_y: location to store Y position relative to @dest_widget
|
||||
* @dest_x: (out): location to store X position relative to @dest_widget
|
||||
* @dest_y: (out): location to store Y position relative to @dest_widget
|
||||
*
|
||||
* Translate coordinates relative to @src_widget's allocation to coordinates
|
||||
* relative to @dest_widget's allocations. In order to perform this
|
||||
@ -4543,8 +4543,8 @@ destroy_accel_path (gpointer data)
|
||||
/**
|
||||
* gtk_widget_set_accel_path:
|
||||
* @widget: a #GtkWidget
|
||||
* @accel_path: path used to look up the accelerator
|
||||
* @accel_group: a #GtkAccelGroup.
|
||||
* @accel_path: (allow-none): path used to look up the accelerator
|
||||
* @accel_group: (allow-none): a #GtkAccelGroup.
|
||||
*
|
||||
* Given an accelerator group, @accel_group, and an accelerator path,
|
||||
* @accel_path, sets up an accelerator in @accel_group so whenever the
|
||||
@ -4977,8 +4977,8 @@ gtk_widget_activate (GtkWidget *widget)
|
||||
/**
|
||||
* gtk_widget_set_scroll_adjustments:
|
||||
* @widget: a #GtkWidget
|
||||
* @hadjustment: an adjustment for horizontal scrolling, or %NULL
|
||||
* @vadjustment: an adjustment for vertical scrolling, or %NULL
|
||||
* @hadjustment: (allow-none): an adjustment for horizontal scrolling, or %NULL
|
||||
* @vadjustment: (allow-none): an adjustment for vertical scrolling, or %NULL
|
||||
*
|
||||
* For widgets that support scrolling, sets the scroll adjustments and
|
||||
* returns %TRUE. For widgets that don't support scrolling, does
|
||||
@ -6275,7 +6275,7 @@ gtk_widget_set_parent (GtkWidget *widget,
|
||||
*
|
||||
* Returns the parent container of @widget.
|
||||
*
|
||||
* Return value: the parent container of @widget, or %NULL
|
||||
* Return value: (transfer none): the parent container of @widget, or %NULL
|
||||
**/
|
||||
GtkWidget *
|
||||
gtk_widget_get_parent (GtkWidget *widget)
|
||||
@ -6293,7 +6293,7 @@ gtk_widget_get_parent (GtkWidget *widget)
|
||||
/**
|
||||
* gtk_widget_set_style:
|
||||
* @widget: a #GtkWidget
|
||||
* @style: a #GtkStyle, or %NULL to remove the effect of a previous
|
||||
* @style: (allow-none): a #GtkStyle, or %NULL to remove the effect of a previous
|
||||
* gtk_widget_set_style() and go back to the default style
|
||||
*
|
||||
* Sets the #GtkStyle for a widget (@widget->style). You probably don't
|
||||
@ -6373,7 +6373,7 @@ gtk_widget_reset_rc_style (GtkWidget *widget)
|
||||
*
|
||||
* Simply an accessor function that returns @widget->style.
|
||||
*
|
||||
* Return value: the widget's #GtkStyle
|
||||
* Return value: (transfer none): the widget's #GtkStyle
|
||||
**/
|
||||
GtkStyle*
|
||||
gtk_widget_get_style (GtkWidget *widget)
|
||||
@ -6443,7 +6443,7 @@ gtk_widget_modify_style (GtkWidget *widget,
|
||||
* thus dropping any reference to the old modifier style. Add a reference
|
||||
* to the modifier style if you want to keep it alive.
|
||||
*
|
||||
* Return value: the modifier style for the widget. This rc style is
|
||||
* Return value: (transfer none): the modifier style for the widget. This rc style is
|
||||
* owned by the widget. If you want to keep a pointer to value this
|
||||
* around, you must add a refcount using g_object_ref().
|
||||
**/
|
||||
@ -6508,7 +6508,7 @@ gtk_widget_modify_color_component (GtkWidget *widget,
|
||||
* gtk_widget_modify_fg:
|
||||
* @widget: a #GtkWidget
|
||||
* @state: the state for which to set the foreground color
|
||||
* @color: the color to assign (does not need to be allocated),
|
||||
* @color: (allow-none): the color to assign (does not need to be allocated),
|
||||
* or %NULL to undo the effect of previous calls to
|
||||
* of gtk_widget_modify_fg().
|
||||
*
|
||||
@ -6531,7 +6531,7 @@ gtk_widget_modify_fg (GtkWidget *widget,
|
||||
* gtk_widget_modify_bg:
|
||||
* @widget: a #GtkWidget
|
||||
* @state: the state for which to set the background color
|
||||
* @color: the color to assign (does not need to be allocated),
|
||||
* @color: (allow-none): the color to assign (does not need to be allocated),
|
||||
* or %NULL to undo the effect of previous calls to
|
||||
* of gtk_widget_modify_bg().
|
||||
*
|
||||
@ -6562,7 +6562,7 @@ gtk_widget_modify_bg (GtkWidget *widget,
|
||||
* gtk_widget_modify_text:
|
||||
* @widget: a #GtkWidget
|
||||
* @state: the state for which to set the text color
|
||||
* @color: the color to assign (does not need to be allocated),
|
||||
* @color: (allow-none): the color to assign (does not need to be allocated),
|
||||
* or %NULL to undo the effect of previous calls to
|
||||
* of gtk_widget_modify_text().
|
||||
*
|
||||
@ -6587,7 +6587,7 @@ gtk_widget_modify_text (GtkWidget *widget,
|
||||
* gtk_widget_modify_base:
|
||||
* @widget: a #GtkWidget
|
||||
* @state: the state for which to set the base color
|
||||
* @color: the color to assign (does not need to be allocated),
|
||||
* @color: (allow-none): the color to assign (does not need to be allocated),
|
||||
* or %NULL to undo the effect of previous calls to
|
||||
* of gtk_widget_modify_base().
|
||||
*
|
||||
@ -6683,7 +6683,7 @@ gtk_widget_modify_cursor (GtkWidget *widget,
|
||||
/**
|
||||
* gtk_widget_modify_font:
|
||||
* @widget: a #GtkWidget
|
||||
* @font_desc: the font description to use, or %NULL to undo
|
||||
* @font_desc: (allow-none): the font description to use, or %NULL to undo
|
||||
* the effect of previous calls to gtk_widget_modify_font().
|
||||
*
|
||||
* Sets the font to use for a widget. All other style values are left
|
||||
@ -6994,7 +6994,7 @@ gtk_widget_reset_rc_styles (GtkWidget *widget)
|
||||
*
|
||||
* Returns the default style used by all widgets initially.
|
||||
*
|
||||
* Returns: the default style. This #GtkStyle object is owned
|
||||
* Returns: (transfer none): the default style. This #GtkStyle object is owned
|
||||
* by GTK+ and should not be modified or freed.
|
||||
*/
|
||||
GtkStyle*
|
||||
@ -7031,7 +7031,7 @@ gtk_widget_peek_pango_context (GtkWidget *widget)
|
||||
* on the layout in response to the #GtkWidget::style-set and
|
||||
* #GtkWidget::direction-changed signals for the widget.
|
||||
*
|
||||
* Return value: the #PangoContext for the widget.
|
||||
* Return value: (transfer none): the #PangoContext for the widget.
|
||||
**/
|
||||
PangoContext *
|
||||
gtk_widget_get_pango_context (GtkWidget *widget)
|
||||
@ -7162,7 +7162,7 @@ gtk_widget_create_pango_layout (GtkWidget *widget,
|
||||
* @size: a stock size. A size of (GtkIconSize)-1 means render at
|
||||
* the size of the source and don't scale (if there are multiple
|
||||
* source sizes, GTK+ picks one of the available sizes).
|
||||
* @detail: render detail to pass to theme engine
|
||||
* @detail: (allow-none): render detail to pass to theme engine
|
||||
*
|
||||
* A convenience function that uses the theme engine and RC file
|
||||
* settings for @widget to look up @stock_id and render it to
|
||||
@ -7241,9 +7241,10 @@ gtk_widget_set_parent_window (GtkWidget *widget,
|
||||
/**
|
||||
* gtk_widget_get_parent_window:
|
||||
* @widget: a #GtkWidget.
|
||||
* @returns: the parent window of @widget.
|
||||
*
|
||||
* Gets @widget's parent window.
|
||||
*
|
||||
* Returns: (transfer none): the parent window of @widget.
|
||||
**/
|
||||
GdkWindow *
|
||||
gtk_widget_get_parent_window (GtkWidget *widget)
|
||||
@ -7369,7 +7370,7 @@ gtk_widget_get_screen_unchecked (GtkWidget *widget)
|
||||
* resources when a widget has been realized, and you should
|
||||
* free those resources when the widget is unrealized.
|
||||
*
|
||||
* Return value: the #GdkScreen for the toplevel for this widget.
|
||||
* Return value: (transfer none): the #GdkScreen for the toplevel for this widget.
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
@ -7431,7 +7432,7 @@ gtk_widget_has_screen (GtkWidget *widget)
|
||||
* resources when a widget has been realized, and you should
|
||||
* free those resources when the widget is unrealized.
|
||||
*
|
||||
* Return value: the #GdkDisplay for the toplevel for this widget.
|
||||
* Return value: (transfer none): the #GdkDisplay for the toplevel for this widget.
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
@ -7456,7 +7457,7 @@ gtk_widget_get_display (GtkWidget *widget)
|
||||
* create display specific resources when a widget has been realized,
|
||||
* and you should free those resources when the widget is unrealized.
|
||||
*
|
||||
* Return value: the #GdkWindow root window for the toplevel for this widget.
|
||||
* Return value: (transfer none): the #GdkWindow root window for the toplevel for this widget.
|
||||
*
|
||||
* Since: 2.2
|
||||
**/
|
||||
@ -7813,8 +7814,8 @@ gtk_widget_set_size_request (GtkWidget *widget,
|
||||
/**
|
||||
* gtk_widget_get_size_request:
|
||||
* @widget: a #GtkWidget
|
||||
* @width: return location for width, or %NULL
|
||||
* @height: return location for height, or %NULL
|
||||
* @width: (out): return location for width, or %NULL
|
||||
* @height: (out): return location for height, or %NULL
|
||||
*
|
||||
* Gets the size request that was explicitly set for the widget using
|
||||
* gtk_widget_set_size_request(). A value of -1 stored in @width or
|
||||
@ -7984,7 +7985,7 @@ gtk_widget_set_extension_events (GtkWidget *widget,
|
||||
* }
|
||||
* ]|
|
||||
*
|
||||
* Return value: the topmost ancestor of @widget, or @widget itself
|
||||
* Return value: (transfer none): the topmost ancestor of @widget, or @widget itself
|
||||
* if there's no ancestor.
|
||||
**/
|
||||
GtkWidget*
|
||||
@ -8013,7 +8014,7 @@ gtk_widget_get_toplevel (GtkWidget *widget)
|
||||
* Note that unlike gtk_widget_is_ancestor(), gtk_widget_get_ancestor()
|
||||
* considers @widget to be an ancestor of itself.
|
||||
*
|
||||
* Return value: the ancestor widget, or %NULL if not found
|
||||
* Return value: (transfer none): the ancestor widget, or %NULL if not found
|
||||
**/
|
||||
GtkWidget*
|
||||
gtk_widget_get_ancestor (GtkWidget *widget,
|
||||
@ -8037,7 +8038,7 @@ gtk_widget_get_ancestor (GtkWidget *widget,
|
||||
* Gets the colormap that will be used to render @widget. No reference will
|
||||
* be added to the returned colormap; it should not be unreferenced.
|
||||
*
|
||||
* Return value: the colormap used by @widget
|
||||
* Return value: (transfer none): the colormap used by @widget
|
||||
**/
|
||||
GdkColormap*
|
||||
gtk_widget_get_colormap (GtkWidget *widget)
|
||||
@ -8074,7 +8075,7 @@ gtk_widget_get_colormap (GtkWidget *widget)
|
||||
*
|
||||
* Gets the visual that will be used to render @widget.
|
||||
*
|
||||
* Return value: the visual for @widget
|
||||
* Return value: (transfer none): the visual for @widget
|
||||
**/
|
||||
GdkVisual*
|
||||
gtk_widget_get_visual (GtkWidget *widget)
|
||||
@ -8095,7 +8096,7 @@ gtk_widget_get_visual (GtkWidget *widget)
|
||||
* is attached to a toplevel, since the settings object is specific
|
||||
* to a particular #GdkScreen.
|
||||
*
|
||||
* Return value: the relevant #GtkSettings object
|
||||
* Return value: (transfer none): the relevant #GtkSettings object
|
||||
**/
|
||||
GtkSettings*
|
||||
gtk_widget_get_settings (GtkWidget *widget)
|
||||
@ -8169,8 +8170,8 @@ gtk_widget_get_extension_events (GtkWidget *widget)
|
||||
/**
|
||||
* gtk_widget_get_pointer:
|
||||
* @widget: a #GtkWidget
|
||||
* @x: return location for the X coordinate, or %NULL
|
||||
* @y: return location for the Y coordinate, or %NULL
|
||||
* @x: (out) (allow-none): return location for the X coordinate, or %NULL
|
||||
* @y: (out) (allow-none): return location for the Y coordinate, or %NULL
|
||||
*
|
||||
* Obtains the location of the mouse pointer in widget coordinates.
|
||||
* Widget coordinates are a bit odd; for historical reasons, they are
|
||||
@ -8373,7 +8374,7 @@ gtk_widget_set_default_colormap (GdkColormap *colormap)
|
||||
*
|
||||
* Obtains the default colormap used to create widgets.
|
||||
*
|
||||
* Return value: default widget colormap
|
||||
* Return value: (transfer none): default widget colormap
|
||||
**/
|
||||
GdkColormap*
|
||||
gtk_widget_get_default_colormap (void)
|
||||
@ -8387,7 +8388,7 @@ gtk_widget_get_default_colormap (void)
|
||||
* Obtains the visual of the default colormap. Not really useful;
|
||||
* used to be useful before gdk_colormap_get_visual() existed.
|
||||
*
|
||||
* Return value: visual of the default colormap
|
||||
* Return value: (transfer none): visual of the default colormap
|
||||
**/
|
||||
GdkVisual*
|
||||
gtk_widget_get_default_visual (void)
|
||||
@ -9207,7 +9208,7 @@ gtk_widget_shape_combine_mask (GtkWidget *widget,
|
||||
/**
|
||||
* gtk_widget_input_shape_combine_mask:
|
||||
* @widget: a #GtkWidget
|
||||
* @shape_mask: shape to be added, or %NULL to remove an existing shape
|
||||
* @shape_mask: (allow-none): shape to be added, or %NULL to remove an existing shape
|
||||
* @offset_x: X position of shape mask with respect to @window
|
||||
* @offset_y: Y position of shape mask with respect to @window
|
||||
*
|
||||
@ -9796,9 +9797,9 @@ gtk_widget_style_get (GtkWidget *widget,
|
||||
/**
|
||||
* gtk_widget_path:
|
||||
* @widget: a #GtkWidget
|
||||
* @path_length: location to store length of the path, or %NULL
|
||||
* @path: location to store allocated path string, or %NULL
|
||||
* @path_reversed: location to store allocated reverse path string, or %NULL
|
||||
* @path_length: (out) (allow-none): location to store length of the path, or %NULL
|
||||
* @path: (out) (allow-none): location to store allocated path string, or %NULL
|
||||
* @path_reversed: (out) (allow-none): location to store allocated reverse path string, or %NULL
|
||||
*
|
||||
* Obtains the full path to @widget. The path is simply the name of a
|
||||
* widget and all its parents in the container hierarchy, separated by
|
||||
@ -9869,9 +9870,9 @@ gtk_widget_path (GtkWidget *widget,
|
||||
/**
|
||||
* gtk_widget_class_path:
|
||||
* @widget: a #GtkWidget
|
||||
* @path_length: location to store the length of the class path, or %NULL
|
||||
* @path: location to store the class path as an allocated string, or %NULL
|
||||
* @path_reversed: location to store the reverse class path as an allocated
|
||||
* @path_length: (out) (allow-none): location to store the length of the class path, or %NULL
|
||||
* @path: (out) (allow-none) location to store the class path as an allocated string, or %NULL
|
||||
* @path_reversed: (out) (allow-none) location to store the reverse class path as an allocated
|
||||
* string, or %NULL
|
||||
*
|
||||
* Same as gtk_widget_path(), but always uses the name of a widget's type,
|
||||
@ -9987,7 +9988,7 @@ gtk_requisition_get_type (void)
|
||||
* The documentation of the <ulink url="http://developer.gnome.org/doc/API/2.0/atk/index.html">ATK</ulink>
|
||||
* library contains more information about accessible objects and their uses.
|
||||
*
|
||||
* Returns: the #AtkObject associated with @widget
|
||||
* Returns: (transfer none): the #AtkObject associated with @widget
|
||||
*/
|
||||
AtkObject*
|
||||
gtk_widget_get_accessible (GtkWidget *widget)
|
||||
@ -10577,7 +10578,7 @@ gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
|
||||
* associated with it, so must be attached to a toplevel
|
||||
* window.
|
||||
*
|
||||
* Return value: the appropriate clipboard object. If no
|
||||
* Return value: (transfer none): the appropriate clipboard object. If no
|
||||
* clipboard already exists, a new one will
|
||||
* be created. Once a clipboard object has
|
||||
* been created, it is persistent for all time.
|
||||
@ -10609,7 +10610,8 @@ gtk_widget_get_clipboard (GtkWidget *widget, GdkAtom selection)
|
||||
* (GFunc)g_object_ref, NULL)</literal> first, and then unref all the
|
||||
* widgets afterwards.
|
||||
|
||||
* Return value: the list of mnemonic labels; free this list
|
||||
* Return value: (element-type GtkWidget) (transfer container): the list of
|
||||
* mnemonic labels; free this list
|
||||
* with g_list_free() when you are done with it.
|
||||
*
|
||||
* Since: 2.4
|
||||
@ -10826,7 +10828,7 @@ gtk_widget_set_tooltip_window (GtkWidget *widget,
|
||||
* GtkWindow created by default, or the custom tooltip window set
|
||||
* using gtk_widget_set_tooltip_window().
|
||||
*
|
||||
* Return value: The #GtkWindow of the current tooltip.
|
||||
* Return value: (transfer none): The #GtkWindow of the current tooltip.
|
||||
*
|
||||
* Since: 2.12
|
||||
*/
|
||||
@ -11022,7 +11024,7 @@ gtk_widget_get_has_tooltip (GtkWidget *widget)
|
||||
/**
|
||||
* gtk_widget_get_allocation:
|
||||
* @widget: a #GtkWidget
|
||||
* @allocation: a pointer to a #GtkAllocation to copy to
|
||||
* @allocation: (out): a pointer to a #GtkAllocation to copy to
|
||||
*
|
||||
* Retrieves the widget's allocation.
|
||||
*
|
||||
|
@ -1551,7 +1551,7 @@ gtk_window_get_role (GtkWindow *window)
|
||||
/**
|
||||
* gtk_window_set_focus:
|
||||
* @window: a #GtkWindow
|
||||
* @focus: widget to be the new focus widget, or %NULL to unset
|
||||
* @focus: (allow-none): widget to be the new focus widget, or %NULL to unset
|
||||
* any focus widget for the toplevel window.
|
||||
*
|
||||
* If @focus is not the current focus widget, and is focusable, sets
|
||||
@ -1606,7 +1606,7 @@ _gtk_window_internal_set_focus (GtkWindow *window,
|
||||
/**
|
||||
* gtk_window_set_default:
|
||||
* @window: a #GtkWindow
|
||||
* @default_widget: widget to be the default, or %NULL to unset the
|
||||
* @default_widget: (allow-none): widget to be the default, or %NULL to unset the
|
||||
* default widget for the toplevel.
|
||||
*
|
||||
* The default widget is the widget that's activated when the user
|
||||
@ -1962,7 +1962,7 @@ gtk_window_activate_focus (GtkWindow *window)
|
||||
* is not focused then <literal>GTK_WIDGET_HAS_FOCUS (widget)</literal> will
|
||||
* not be %TRUE for the widget.
|
||||
*
|
||||
* Return value: the currently focused widget, or %NULL if there is none.
|
||||
* Return value: (transfer none): the currently focused widget, or %NULL if there is none.
|
||||
**/
|
||||
GtkWidget *
|
||||
gtk_window_get_focus (GtkWindow *window)
|
||||
@ -2072,7 +2072,7 @@ gtk_window_get_modal (GtkWindow *window)
|
||||
* <literal>g_list_foreach (result, (GFunc)g_object_ref, NULL)</literal> first, and
|
||||
* then unref all the widgets afterwards.
|
||||
*
|
||||
* Return value: list of toplevel widgets
|
||||
* Return value: (element-type GtkWidget) (transfer container): list of toplevel widgets
|
||||
**/
|
||||
GList*
|
||||
gtk_window_list_toplevels (void)
|
||||
@ -2242,7 +2242,7 @@ gtk_window_unset_transient_for (GtkWindow *window)
|
||||
/**
|
||||
* gtk_window_set_transient_for:
|
||||
* @window: a #GtkWindow
|
||||
* @parent: parent window
|
||||
* @parent: (allow-none): parent window
|
||||
*
|
||||
* Dialog windows should be set transient for the main application
|
||||
* window they were spawned from. This allows <link
|
||||
@ -2319,7 +2319,7 @@ gtk_window_set_transient_for (GtkWindow *window,
|
||||
* Fetches the transient parent for this window. See
|
||||
* gtk_window_set_transient_for().
|
||||
*
|
||||
* Return value: the transient parent for this window, or %NULL
|
||||
* Return value: (transfer none): the transient parent for this window, or %NULL
|
||||
* if no transient parent has been set.
|
||||
**/
|
||||
GtkWindow *
|
||||
@ -3415,7 +3415,7 @@ gtk_window_set_icon_list (GtkWindow *window,
|
||||
* The list is copied, but the reference count on each
|
||||
* member won't be incremented.
|
||||
*
|
||||
* Return value: copy of window's icon list
|
||||
* Return value: (element-type GdkPixbuf) (transfer container): copy of window's icon list
|
||||
**/
|
||||
GList*
|
||||
gtk_window_get_icon_list (GtkWindow *window)
|
||||
@ -3435,7 +3435,7 @@ gtk_window_get_icon_list (GtkWindow *window)
|
||||
/**
|
||||
* gtk_window_set_icon:
|
||||
* @window: a #GtkWindow
|
||||
* @icon: icon image, or %NULL
|
||||
* @icon: (allow-none): icon image, or %NULL
|
||||
*
|
||||
* Sets up the icon representing a #GtkWindow. This icon is used when
|
||||
* the window is minimized (also known as iconified). Some window
|
||||
@ -3490,7 +3490,7 @@ update_themed_icon (GtkIconTheme *icon_theme,
|
||||
/**
|
||||
* gtk_window_set_icon_name:
|
||||
* @window: a #GtkWindow
|
||||
* @name: the name of the themed icon
|
||||
* @name: (allow-none): the name of the themed icon
|
||||
*
|
||||
* Sets the icon for the window from a named themed icon. See
|
||||
* the docs for #GtkIconTheme for more details.
|
||||
@ -3559,7 +3559,7 @@ gtk_window_get_icon_name (GtkWindow *window)
|
||||
* called gtk_window_set_icon_list(), gets the first icon in
|
||||
* the icon list).
|
||||
*
|
||||
* Return value: icon for window
|
||||
* Return value: (transfer none): icon for window
|
||||
**/
|
||||
GdkPixbuf*
|
||||
gtk_window_get_icon (GtkWindow *window)
|
||||
@ -3994,8 +3994,8 @@ gtk_window_resize (GtkWindow *window,
|
||||
/**
|
||||
* gtk_window_get_size:
|
||||
* @window: a #GtkWindow
|
||||
* @width: return location for width, or %NULL
|
||||
* @height: return location for height, or %NULL
|
||||
* @width: (out): return location for width, or %NULL
|
||||
* @height: (out): return location for height, or %NULL
|
||||
*
|
||||
* Obtains the current size of @window. If @window is not onscreen,
|
||||
* it returns the size GTK+ will suggest to the <link
|
||||
@ -7254,7 +7254,7 @@ gtk_window_set_gravity (GtkWindow *window,
|
||||
*
|
||||
* Gets the value set by gtk_window_set_gravity().
|
||||
*
|
||||
* Return value: window gravity
|
||||
* Return value: (transfer none): window gravity
|
||||
**/
|
||||
GdkGravity
|
||||
gtk_window_get_gravity (GtkWindow *window)
|
||||
@ -7470,7 +7470,7 @@ gtk_window_check_screen (GtkWindow *window)
|
||||
*
|
||||
* Returns the #GdkScreen associated with @window.
|
||||
*
|
||||
* Return value: a #GdkScreen.
|
||||
* Return value: (transfer none): a #GdkScreen.
|
||||
*
|
||||
* Since: 2.2
|
||||
*/
|
||||
@ -7655,7 +7655,8 @@ gtk_window_group_remove_window (GtkWindowGroup *window_group,
|
||||
*
|
||||
* Returns a list of the #GtkWindows that belong to @window_group.
|
||||
*
|
||||
* Returns: A newly-allocated list of windows inside the group.
|
||||
* Returns: (element-type GtkWidget) (transfer container): A newly-allocated list of
|
||||
* windows inside the group.
|
||||
*
|
||||
* Since: 2.14
|
||||
**/
|
||||
@ -7688,7 +7689,7 @@ gtk_window_group_list_windows (GtkWindowGroup *window_group)
|
||||
* @window is %NULL or if @window does not have an explicit
|
||||
* window group.
|
||||
*
|
||||
* Returns: the #GtkWindowGroup for a window or the default group
|
||||
* Returns: (transfer none): the #GtkWindowGroup for a window or the default group
|
||||
*
|
||||
* Since: 2.10
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user