[gtk+/wip/csoriano/pathbar-bin-view-window: 42/65] gtkhidingbox: use full variable names
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csoriano/pathbar-bin-view-window: 42/65] gtkhidingbox: use full variable names
- Date: Wed, 8 Jun 2016 23:07:53 +0000 (UTC)
commit e5e179a71c826190a51e5bff7f1ca53dc28e87df
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Nov 4 16:21:20 2015 +0100
gtkhidingbox: use full variable names
gtk/gtkhidingbox.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkhidingbox.c b/gtk/gtkhidingbox.c
index de8cd85..f5edb7d 100644
--- a/gtk/gtkhidingbox.c
+++ b/gtk/gtkhidingbox.c
@@ -306,19 +306,19 @@ gtk_hiding_box_size_allocate (GtkWidget *widget,
static void
gtk_hiding_box_get_preferred_width (GtkWidget *widget,
- gint *min,
- gint *nat)
+ gint *minimum_width,
+ gint *natural_width)
{
GtkHidingBox *box = GTK_HIDING_BOX (widget);
GtkHidingBoxPrivate *priv = gtk_hiding_box_get_instance_private (box);
- gint cm;
- gint cn;
+ gint child_minimum_width;
+ gint child_natural_width;
GList *child;
gint n_visible_children;
gboolean have_min = FALSE;
- *min = 0;
- *nat = 0;
+ *minimum_width = 0;
+ *natural_width = 0;
n_visible_children = 0;
for (child = priv->children; child != NULL; child = child->next)
@@ -327,20 +327,20 @@ gtk_hiding_box_get_preferred_width (GtkWidget *widget,
continue;
++n_visible_children;
- gtk_widget_get_preferred_width (child->data, &cm, &cn);
+ gtk_widget_get_preferred_width (child->data, &child_minimum_width, &child_natural_width);
/* Minimum is a minimum of the first visible child */
if (!have_min)
{
- *min = cm;
+ *minimum_width = child_minimum_width;
have_min = TRUE;
}
/* Natural is a sum of all visible children */
- *nat += cn;
+ *natural_width += child_natural_width;
}
/* Natural must also include the spacing */
if (priv->spacing && n_visible_children > 1)
- *nat += priv->spacing * (n_visible_children - 1);
+ *natural_width += priv->spacing * (n_visible_children - 1);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]