From 1fb8ca36b4c2da74d76fc5ebbd98b6ea5bee1400 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 17 Mar 2005 03:21:21 +0000 Subject: [PATCH] Typo fix in the docs. 2005-03-16 Matthias Clasen * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize): Typo fix in the docs. * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip): Typo fix in the docs. * gtk/gtkiconview.c (gtk_icon_view_get_columns) (gtk_icon_view_set_columns, gtk_icon_view_set_item_width) (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing) (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing) (gtk_icon_view_set_column_spacing, gtk_icon_view_get_row_spacing) (gtk_icon_view_get_column_spacing, gtk_icon_view_set_margin) (gtk_icon_view_get_margin): Add docs. * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row): Add docs. --- ChangeLog | 19 ++++ ChangeLog.pre-2-10 | 19 ++++ ChangeLog.pre-2-8 | 19 ++++ docs/reference/ChangeLog | 4 + docs/reference/gtk/gtk-sections.txt | 2 + gtk/gtkiconview.c | 163 +++++++++++++++++++++++++--- gtk/gtkmenutoolbutton.c | 2 +- gtk/gtkprogressbar.c | 2 +- 8 files changed, 212 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index 17f33e9891..55d2945fef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,22 @@ +2005-03-16 Matthias Clasen + + * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize): + Typo fix in the docs. + + * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip): + Typo fix in the docs. + + * gtk/gtkiconview.c (gtk_icon_view_get_columns) + (gtk_icon_view_set_columns, gtk_icon_view_set_item_width) + (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing) + (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing) + (gtk_icon_view_set_column_spacing, gtk_icon_view_get_row_spacing) + (gtk_icon_view_get_column_spacing, gtk_icon_view_set_margin) + (gtk_icon_view_get_margin): Add docs. + + * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row): + Add docs. + Tue Mar 15 20:34:33 2005 Manish Singh * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 17f33e9891..55d2945fef 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,22 @@ +2005-03-16 Matthias Clasen + + * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize): + Typo fix in the docs. + + * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip): + Typo fix in the docs. + + * gtk/gtkiconview.c (gtk_icon_view_get_columns) + (gtk_icon_view_set_columns, gtk_icon_view_set_item_width) + (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing) + (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing) + (gtk_icon_view_set_column_spacing, gtk_icon_view_get_row_spacing) + (gtk_icon_view_get_column_spacing, gtk_icon_view_set_margin) + (gtk_icon_view_get_margin): Add docs. + + * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row): + Add docs. + Tue Mar 15 20:34:33 2005 Manish Singh * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 17f33e9891..55d2945fef 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,22 @@ +2005-03-16 Matthias Clasen + + * gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize): + Typo fix in the docs. + + * gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip): + Typo fix in the docs. + + * gtk/gtkiconview.c (gtk_icon_view_get_columns) + (gtk_icon_view_set_columns, gtk_icon_view_set_item_width) + (gtk_icon_view_get_item_width, gtk_icon_view_set_spacing) + (gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing) + (gtk_icon_view_set_column_spacing, gtk_icon_view_get_row_spacing) + (gtk_icon_view_get_column_spacing, gtk_icon_view_set_margin) + (gtk_icon_view_get_margin): Add docs. + + * gtk/gtkcellview.c (gtk_cell_view_get_displayed_row): + Add docs. + Tue Mar 15 20:34:33 2005 Manish Singh * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too. diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index dbfead86ec..ac27673c63 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +2005-03-16 Matthias Clasen + + * gtk/gtk-sections.txt: Add gtk_button_[sg]et_image. + 2005-03-01 Matthias Clasen * === Released 2.6.4 === diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt index 1f3b72c830..c7f711b944 100644 --- a/docs/reference/gtk/gtk-sections.txt +++ b/docs/reference/gtk/gtk-sections.txt @@ -408,6 +408,8 @@ gtk_button_set_focus_on_click gtk_button_get_focus_on_click gtk_button_set_alignment gtk_button_get_alignment +gtk_button_set_image +gtk_button_get_image GTK_BUTTON diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 93c6c3f99c..f3c8e04668 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -405,7 +405,7 @@ gtk_icon_view_class_init (GtkIconViewClass *klass) * * The columns property contains the number of the columns in which the * items should be displayed. If it is -1, the number of columns will - * be chosen automatically to fill the available area. + * be chosen automatically to fill the available area. * * Since: 2.6 */ @@ -3661,7 +3661,7 @@ gtk_icon_view_path_is_selected (GtkIconView *icon_view, * Activates the item determined by @path. * * Since: 2.6 - **/ + */ void gtk_icon_view_item_activated (GtkIconView *icon_view, GtkTreePath *path) @@ -3681,7 +3681,7 @@ gtk_icon_view_item_activated (GtkIconView *icon_view, * are drawn beside the icons instead of below. * * Since: 2.6 - **/ + */ void gtk_icon_view_set_orientation (GtkIconView *icon_view, GtkOrientation orientation) @@ -3709,7 +3709,7 @@ gtk_icon_view_set_orientation (GtkIconView *icon_view, * Return value: the relative position of texts and icons * * Since: 2.6 - **/ + */ GtkOrientation gtk_icon_view_get_orientation (GtkIconView *icon_view) { @@ -3719,8 +3719,21 @@ gtk_icon_view_get_orientation (GtkIconView *icon_view) return icon_view->priv->orientation; } -void gtk_icon_view_set_columns (GtkIconView *icon_view, - gint columns) +/** + * gtk_icon_view_set_columns: + * @icon_view: a #GtkIconView + * @columns: the number of columns + * + * Sets the ::columns property which determines in how + * many columns the icons are arranged. If @columns is + * -1, the number of columns will be chosen automatically + * to fill the available area. + * + * Since: 2.6 + */ +void +gtk_icon_view_set_columns (GtkIconView *icon_view, + gint columns) { g_return_if_fail (GTK_IS_ICON_VIEW (icon_view)); @@ -3734,6 +3747,16 @@ void gtk_icon_view_set_columns (GtkIconView *icon_view, } } +/** + * gtk_icon_view_get_columns: + * @icon_view: a #GtkIconView + * + * Returns the value of the ::columns property. + * + * Return value: the number of columns, or -1 + * + * Since: 2.6 + */ gint gtk_icon_view_get_columns (GtkIconView *icon_view) { @@ -3742,8 +3765,20 @@ gtk_icon_view_get_columns (GtkIconView *icon_view) return icon_view->priv->columns; } -void gtk_icon_view_set_item_width (GtkIconView *icon_view, - gint item_width) +/** + * gtk_icon_view_set_item_width: + * @icon_view: a #GtkIconView + * @item_width: the width for each item + * + * Sets the ::item-width property which specifies the width + * to use for each item. If it is set to -1, the icon view will + * automatically determine a suitable item size. + * + * Since: 2.6 + */ +void +gtk_icon_view_set_item_width (GtkIconView *icon_view, + gint item_width) { g_return_if_fail (GTK_IS_ICON_VIEW (icon_view)); @@ -3758,6 +3793,16 @@ void gtk_icon_view_set_item_width (GtkIconView *icon_view, } } +/** + * gtk_icon_view_get_item_width: + * @icon_view: a #GtkIconView + * + * Returns the value of the ::item-width property. + * + * Return value: the width of a single item, or -1 + * + * Since: 2.6 + */ gint gtk_icon_view_get_item_width (GtkIconView *icon_view) { @@ -3767,8 +3812,20 @@ gtk_icon_view_get_item_width (GtkIconView *icon_view) } -void gtk_icon_view_set_spacing (GtkIconView *icon_view, - gint spacing) +/** + * gtk_icon_view_set_item_width: + * @icon_view: a #GtkIconView + * @spacing: the spacing + * + * Sets the ::spacing property which specifies the space + * which is inserted between the cells (i.e. the icon and + * the text) of an item. + * + * Since: 2.6 + */ +void +gtk_icon_view_set_spacing (GtkIconView *icon_view, + gint spacing) { g_return_if_fail (GTK_IS_ICON_VIEW (icon_view)); @@ -3783,6 +3840,16 @@ void gtk_icon_view_set_spacing (GtkIconView *icon_view, } } +/** + * gtk_icon_view_get_spacing: + * @icon_view: a #GtkIconView + * + * Returns the value of the ::spacing property. + * + * Return value: the space between cells + * + * Since: 2.6 + */ gint gtk_icon_view_get_spacing (GtkIconView *icon_view) { @@ -3791,8 +3858,19 @@ gtk_icon_view_get_spacing (GtkIconView *icon_view) return icon_view->priv->spacing; } -void gtk_icon_view_set_row_spacing (GtkIconView *icon_view, - gint row_spacing) +/** + * gtk_icon_view_set_row_spacing: + * @icon_view: a #GtkIconView + * @spacing: the row spacing + * + * Sets the ::row-spacing property which specifies the space + * which is inserted between the rows of the icon view. + * + * Since: 2.6 + */ +void +gtk_icon_view_set_row_spacing (GtkIconView *icon_view, + gint row_spacing) { g_return_if_fail (GTK_IS_ICON_VIEW (icon_view)); @@ -3807,6 +3885,16 @@ void gtk_icon_view_set_row_spacing (GtkIconView *icon_view, } } +/** + * gtk_icon_view_get_row_spacing: + * @icon_view: a #GtkIconView + * + * Returns the value of the ::row-spacing property. + * + * Return value: the space between rows + * + * Since: 2.6 + */ gint gtk_icon_view_get_row_spacing (GtkIconView *icon_view) { @@ -3815,8 +3903,19 @@ gtk_icon_view_get_row_spacing (GtkIconView *icon_view) return icon_view->priv->row_spacing; } -void gtk_icon_view_set_column_spacing (GtkIconView *icon_view, - gint column_spacing) +/** + * gtk_icon_view_set_column_spacing: + * @icon_view: a #GtkIconView + * @spacing: the column spacing + * + * Sets the ::column-spacing property which specifies the space + * which is inserted between the columns of the icon view. + * + * Since: 2.6 + */ +void +gtk_icon_view_set_column_spacing (GtkIconView *icon_view, + gint column_spacing) { g_return_if_fail (GTK_IS_ICON_VIEW (icon_view)); @@ -3831,6 +3930,16 @@ void gtk_icon_view_set_column_spacing (GtkIconView *icon_view, } } +/** + * gtk_icon_view_get_column_spacing: + * @icon_view: a #GtkIconView + * + * Returns the value of the ::column-spacing property. + * + * Return value: the space between columns + * + * Since: 2.6 + */ gint gtk_icon_view_get_column_spacing (GtkIconView *icon_view) { @@ -3839,8 +3948,20 @@ gtk_icon_view_get_column_spacing (GtkIconView *icon_view) return icon_view->priv->column_spacing; } -void gtk_icon_view_set_margin (GtkIconView *icon_view, - gint margin) +/** + * gtk_icon_view_set_marging: + * @icon_view: a #GtkIconView + * @spacing: the margin + * + * Sets the ::margin property which specifies the space + * which is inserted at the top, bottom, left and right + * of the icon view. + * + * Since: 2.6 + */ +void +gtk_icon_view_set_margin (GtkIconView *icon_view, + gint margin) { g_return_if_fail (GTK_IS_ICON_VIEW (icon_view)); @@ -3855,6 +3976,16 @@ void gtk_icon_view_set_margin (GtkIconView *icon_view, } } +/** + * gtk_icon_view_get_margin: + * @icon_view: a #GtkIconView + * + * Returns the value of the ::margin property. + * + * Return value: the space at the borders + * + * Since: 2.6 + */ gint gtk_icon_view_get_margin (GtkIconView *icon_view) { diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c index 6448d6e154..ad6932630f 100644 --- a/gtk/gtkmenutoolbutton.c +++ b/gtk/gtkmenutoolbutton.c @@ -586,7 +586,7 @@ gtk_menu_tool_button_get_menu (GtkMenuToolButton *button) } /** - * gtk_menu_tool_set_arrow_tooltip: + * 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 diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c index ac9f052014..89a91c36e5 100644 --- a/gtk/gtkprogressbar.c +++ b/gtk/gtkprogressbar.c @@ -1253,7 +1253,7 @@ gtk_progress_bar_set_ellipsize (GtkProgressBar *pbar, } /** - * gtk_pgrogress_bar_get_ellipsize: + * gtk_progress_bar_get_ellipsize: * @pbar: a #GtkProgressBar * * Returns the ellipsizing position of the progressbar.