diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-10-10 23:42:57 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-10-10 23:42:57 +0000 |
commit | d8d0bf7ce9fc8328d257901c267cef674d602472 (patch) | |
tree | 983ab6a997f40711881212c5a576ee5a255d06e0 /gtk | |
parent | 5d021465d6709bc1d6a5c9fca0a7a27546e4b8f1 (diff) | |
download | gtk+-d8d0bf7ce9fc8328d257901c267cef674d602472.tar.gz |
Documentation improvements.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkenums.h | 2 | ||||
-rw-r--r-- | gtk/gtkiconfactory.c | 8 | ||||
-rw-r--r-- | gtk/gtknotebook.c | 2 | ||||
-rw-r--r-- | gtk/gtktreestore.c | 60 | ||||
-rw-r--r-- | gtk/gtktreestore.h | 4 | ||||
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 2 | ||||
-rw-r--r-- | gtk/gtkwindow.c | 8 |
7 files changed, 44 insertions, 42 deletions
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h index 44da0244e5..9eafc17412 100644 --- a/gtk/gtkenums.h +++ b/gtk/gtkenums.h @@ -425,7 +425,7 @@ typedef enum GTK_SORT_DESCENDING } GtkSortType; -/* Style for gtk input method preeeit/status */ +/* Style for gtk input method preedit/status */ typedef enum { GTK_IM_PREEDIT_NOTHING, diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c index 290aeb5691..37a6a0d399 100644 --- a/gtk/gtkiconfactory.c +++ b/gtk/gtkiconfactory.c @@ -1188,7 +1188,7 @@ icon_size_lookup_intern (GtkSettings *settings, /** * gtk_icon_size_lookup_for_settings: - * @GtkSettings: a #GtkSettings object, used to determine + * @settings: a #GtkSettings object, used to determine * which set of user preferences to used. * @size: an icon size * @width: location to store icon width @@ -1210,12 +1210,12 @@ icon_size_lookup_intern (GtkSettings *settings, gboolean gtk_icon_size_lookup_for_settings (GtkSettings *settings, GtkIconSize size, - gint *widthp, - gint *heightp) + gint *width, + gint *height) { g_return_val_if_fail (GTK_IS_SETTINGS (settings), FALSE); - return icon_size_lookup_intern (settings, size, widthp, heightp); + return icon_size_lookup_intern (settings, size, width, height); } /** diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 2bba4d9c15..e0d27da7f9 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -4154,7 +4154,7 @@ gtk_notebook_get_nth_page (GtkNotebook *notebook, } /** - * gtk_notebook_get_nth_page: + * gtk_notebook_get_n_pages: * @notebook: a #GtkNotebook * * Gets the number of pages in a notebook. diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index 4b9441c080..dadd119a18 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -1878,16 +1878,16 @@ gtk_tree_store_reorder_func (gconstpointer a, /** * gtk_tree_store_reorder: - * @store: A #GtkTreeStore. + * @tree_store: A #GtkTreeStore. * @parent: A #GtkTreeIter. * @new_order: An integer array indication the new order for the list. * - * Reorders the children of @parent in @store to follow the order + * Reorders the children of @parent in @tree_store to follow the order * indicated by @new_order. Note that this function only works with * unsorted stores. **/ void -gtk_tree_store_reorder (GtkTreeStore *store, +gtk_tree_store_reorder (GtkTreeStore *tree_store, GtkTreeIter *parent, gint *new_order) { @@ -1896,13 +1896,13 @@ gtk_tree_store_reorder (GtkTreeStore *store, GtkTreePath *path; SortTuple *sort_array; - g_return_if_fail (GTK_IS_TREE_STORE (store)); - g_return_if_fail (!GTK_TREE_STORE_IS_SORTED (store)); - g_return_if_fail (parent == NULL || VALID_ITER (parent, store)); + g_return_if_fail (GTK_IS_TREE_STORE (tree_store)); + g_return_if_fail (!GTK_TREE_STORE_IS_SORTED (tree_store)); + g_return_if_fail (parent == NULL || VALID_ITER (parent, tree_store)); g_return_if_fail (new_order != NULL); if (!parent) - level = G_NODE (store->root)->children; + level = G_NODE (tree_store->root)->children; else level = G_NODE (parent->user_data)->children; @@ -1944,14 +1944,14 @@ gtk_tree_store_reorder (GtkTreeStore *store, if (parent) G_NODE (parent->user_data)->children = sort_array[0].node; else - G_NODE (store->root)->children = sort_array[0].node; + G_NODE (tree_store->root)->children = sort_array[0].node; /* emit signal */ if (parent) - path = gtk_tree_model_get_path (GTK_TREE_MODEL (store), parent); + path = gtk_tree_model_get_path (GTK_TREE_MODEL (tree_store), parent); else path = gtk_tree_path_new (); - gtk_tree_model_rows_reordered (GTK_TREE_MODEL (store), path, + gtk_tree_model_rows_reordered (GTK_TREE_MODEL (tree_store), path, parent, new_order); gtk_tree_path_free (path); g_free (sort_array); @@ -1959,15 +1959,15 @@ gtk_tree_store_reorder (GtkTreeStore *store, /** * gtk_tree_store_swap: - * @store: A #GtkTreeStore. + * @tree_store: A #GtkTreeStore. * @a: A #GtkTreeIter. * @b: Another #GtkTreeIter. * - * Swaps @a and @b in the same level of @store. Note that this function + * Swaps @a and @b in the same level of @tree_store. Note that this function * only works with unsorted stores. **/ void -gtk_tree_store_swap (GtkTreeStore *store, +gtk_tree_store_swap (GtkTreeStore *tree_store, GtkTreeIter *a, GtkTreeIter *b) { @@ -1976,9 +1976,9 @@ gtk_tree_store_swap (GtkTreeStore *store, GtkTreePath *path_a, *path_b; GtkTreeIter parent; - g_return_if_fail (GTK_IS_TREE_STORE (store)); - g_return_if_fail (VALID_ITER (a, store)); - g_return_if_fail (VALID_ITER (b, store)); + g_return_if_fail (GTK_IS_TREE_STORE (tree_store)); + g_return_if_fail (VALID_ITER (a, tree_store)); + g_return_if_fail (VALID_ITER (b, tree_store)); node_a = G_NODE (a->user_data); node_b = G_NODE (b->user_data); @@ -1987,8 +1987,8 @@ gtk_tree_store_swap (GtkTreeStore *store, if (node_a == node_b) return; - path_a = gtk_tree_model_get_path (GTK_TREE_MODEL (store), a); - path_b = gtk_tree_model_get_path (GTK_TREE_MODEL (store), b); + path_a = gtk_tree_model_get_path (GTK_TREE_MODEL (tree_store), a); + path_b = gtk_tree_model_get_path (GTK_TREE_MODEL (tree_store), b); g_return_if_fail (path_a && path_b); @@ -2004,7 +2004,7 @@ gtk_tree_store_swap (GtkTreeStore *store, return; } - gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &parent, path_a); + gtk_tree_model_get_iter (GTK_TREE_MODEL (tree_store), &parent, path_a); parent_node = G_NODE (parent.user_data); gtk_tree_path_free (path_b); @@ -2059,7 +2059,7 @@ gtk_tree_store_swap (GtkTreeStore *store, else order[i] = i; - gtk_tree_model_rows_reordered (GTK_TREE_MODEL (store), path_a, + gtk_tree_model_rows_reordered (GTK_TREE_MODEL (tree_store), path_a, &parent, order); gtk_tree_path_free (path_a); g_free (order); @@ -2067,16 +2067,16 @@ gtk_tree_store_swap (GtkTreeStore *store, /** * gtk_tree_store_move: - * @store: A #GtkTreeStore. + * @tree_store: A #GtkTreeStore. * @iter: A #GtkTreeIter. * @position: A #GtkTreePath. * - * Moves @iter in @store to the position before @position. @iter and + * Moves @iter in @tree_store to the position before @position. @iter and * @position should be in the same level. Note that this function only * works with unsorted stores. **/ void -gtk_tree_store_move (GtkTreeStore *store, +gtk_tree_store_move (GtkTreeStore *tree_store, GtkTreeIter *iter, GtkTreePath *position) { @@ -2085,13 +2085,13 @@ gtk_tree_store_move (GtkTreeStore *store, GtkTreePath *path, *tmppath; GtkTreeIter parent, new_iter; - g_return_if_fail (GTK_IS_TREE_STORE (store)); - g_return_if_fail (!GTK_TREE_STORE_IS_SORTED (store)); - g_return_if_fail (VALID_ITER (iter, store)); + g_return_if_fail (GTK_IS_TREE_STORE (tree_store)); + g_return_if_fail (!GTK_TREE_STORE_IS_SORTED (tree_store)); + g_return_if_fail (VALID_ITER (iter, tree_store)); g_return_if_fail (position != NULL); /* sanity checks */ - path = gtk_tree_model_get_path (GTK_TREE_MODEL (store), iter); + path = gtk_tree_model_get_path (GTK_TREE_MODEL (tree_store), iter); if (!gtk_tree_path_compare (path, position)) { @@ -2121,9 +2121,9 @@ gtk_tree_store_move (GtkTreeStore *store, } gtk_tree_path_free (tmppath); - gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &parent, path); + gtk_tree_model_get_iter (GTK_TREE_MODEL (tree_store), &parent, path); - gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &new_iter, position); + gtk_tree_model_get_iter (GTK_TREE_MODEL (tree_store), &new_iter, position); new_prev = G_NODE (new_iter.user_data)->prev; new_next = G_NODE (new_iter.user_data); @@ -2177,7 +2177,7 @@ gtk_tree_store_move (GtkTreeStore *store, order[i] = i; path = gtk_tree_path_new (); - gtk_tree_model_rows_reordered (GTK_TREE_MODEL (store), + gtk_tree_model_rows_reordered (GTK_TREE_MODEL (tree_store), path, NULL, order); gtk_tree_path_free (path); g_free (order); diff --git a/gtk/gtktreestore.h b/gtk/gtktreestore.h index 988e7f034f..d8a5f9d297 100644 --- a/gtk/gtktreestore.h +++ b/gtk/gtktreestore.h @@ -120,10 +120,10 @@ gboolean gtk_tree_store_iter_is_valid (GtkTreeStore *tree_store, void gtk_tree_store_reorder (GtkTreeStore *tree_store, GtkTreeIter *parent, gint *new_order); -void gtk_tree_store_swap (GtkTreeStore *store, +void gtk_tree_store_swap (GtkTreeStore *tree_store, GtkTreeIter *a, GtkTreeIter *b); -void gtk_tree_store_move (GtkTreeStore *store, +void gtk_tree_store_move (GtkTreeStore *tree_store, GtkTreeIter *iter, GtkTreePath *position); diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 34c5d3b832..df055b95ce 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -3110,7 +3110,7 @@ gtk_tree_view_column_cell_is_visible (GtkTreeViewColumn *tree_column) /** * gtk_tree_view_column_focus_cell: - * @tree_view: A #GtkTreeView + * @tree_column: A #GtkTreeViewColumn * @cell: A #GtkCellRenderer * * Sets the current keyboard focus to be at @cell, if the column contains diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index a1ca14cc7f..b3682d184a 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -2619,13 +2619,15 @@ load_pixbuf_verbosely (const char *filename, /** * gtk_window_set_icon_from_file: * @window: a #GtkWindow - * @list: a list of #GdkPixbuf + * @filename: location of icon file * @err: location to store error, or %NULL. * - * Sets the icon for @wi - * had gtk_window_set_icon_list() called on them as a single file. + * Sets the icon for @window. * Warns on failure if @err is %NULL. * + * This function is equivalent to calling gtk_window_set_icon() + * with a pixbuf created by loading the image from @filename. + * * Returns: %TRUE if setting the icon succeeded. **/ gboolean |