summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-04-21 23:13:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-04-21 23:13:16 -0400
commit6186429f5f6b2792f286f231d11e37216820c15f (patch)
treea95ea68c93189d1c7a1d85168a8761dd47719ac2
parenta8123bf95e4cf12a13a527d1d4ebc0450d815be1 (diff)
downloadgtk+-6186429f5f6b2792f286f231d11e37216820c15f.tar.gz
GtkStack: shorten a few parameter names
Looks better in the docs.
-rw-r--r--gtk/gtkstack.c20
-rw-r--r--gtk/gtkstack.h6
2 files changed, 12 insertions, 14 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 4b3dbc91a9..3164873091 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -1112,22 +1112,20 @@ gtk_stack_get_transition_duration (GtkStack *stack)
/**
* gtk_stack_set_transition_duration:
* @stack: a #GtkStack
- * @transition_duration: the new duration, in milliseconds
+ * @duration: the new duration, in milliseconds
*
* Sets the duration that transitions between pages in @stack
* will take.
*
- * Returns: the transition duration
- *
* Since: 3.10
*/
void
gtk_stack_set_transition_duration (GtkStack *stack,
- guint transition_duration)
+ guint duration)
{
g_return_if_fail (GTK_IS_STACK (stack));
- stack->priv->transition_duration = transition_duration;
+ stack->priv->transition_duration = duration;
g_object_notify (G_OBJECT (stack), "transition-duration");
}
@@ -1153,7 +1151,7 @@ gtk_stack_get_transition_type (GtkStack *stack)
/**
* gtk_stack_set_transition_type:
* @stack: a #GtkStack
- * @transition_type: the new transition type
+ * @transition: the new transition type
*
* Sets the type of animation that will be used for
* transitions between pages in @stack. Available
@@ -1167,11 +1165,11 @@ gtk_stack_get_transition_type (GtkStack *stack)
*/
void
gtk_stack_set_transition_type (GtkStack *stack,
- GtkStackTransitionType transition_type)
+ GtkStackTransitionType transition)
{
g_return_if_fail (GTK_IS_STACK (stack));
- stack->priv->transition_type = transition_type;
+ stack->priv->transition_type = transition;
g_object_notify (G_OBJECT (stack), "transition-type");
}
@@ -1274,7 +1272,7 @@ gtk_stack_set_visible_child_name (GtkStack *stack,
* gtk_stack_set_visible_child_name:
* @stack: a #GtkStack
* @name: the name of the child to make visible
- * @transition_type: the transition type to use
+ * @transition: the transition type to use
*
* Makes the child with the given name visible.
*
@@ -1283,7 +1281,7 @@ gtk_stack_set_visible_child_name (GtkStack *stack,
void
gtk_stack_set_visible_child_full (GtkStack *stack,
const gchar *name,
- GtkStackTransitionType transition_type)
+ GtkStackTransitionType transition)
{
GtkStackPrivate *priv;
GtkStackChildInfo *child_info, *info;
@@ -1307,7 +1305,7 @@ gtk_stack_set_visible_child_full (GtkStack *stack,
}
if (child_info != NULL && gtk_widget_get_visible (child_info->widget))
- set_visible_child (stack, child_info, transition_type, priv->transition_duration);
+ set_visible_child (stack, child_info, transition, priv->transition_duration);
}
static void
diff --git a/gtk/gtkstack.h b/gtk/gtkstack.h
index 46c73671c9..f910dd72a8 100644
--- a/gtk/gtkstack.h
+++ b/gtk/gtkstack.h
@@ -74,15 +74,15 @@ void gtk_stack_set_visible_child_name (GtkStack
const gchar * gtk_stack_get_visible_child_name (GtkStack *stack);
void gtk_stack_set_visible_child_full (GtkStack *stack,
const gchar *name,
- GtkStackTransitionType transition_type);
+ GtkStackTransitionType transition);
void gtk_stack_set_homogeneous (GtkStack *stack,
gboolean homogeneous);
gboolean gtk_stack_get_homogeneous (GtkStack *stack);
void gtk_stack_set_transition_duration (GtkStack *stack,
- guint transition_duration);
+ guint duration);
guint gtk_stack_get_transition_duration (GtkStack *stack);
void gtk_stack_set_transition_type (GtkStack *stack,
- GtkStackTransitionType transition_type);
+ GtkStackTransitionType transition);
GtkStackTransitionType gtk_stack_get_transition_type (GtkStack *stack);
G_END_DECLS