[gnome-calendar] gcal-view: GcalViewChild struct field renamed
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] gcal-view: GcalViewChild struct field renamed
- Date: Thu, 4 Dec 2014 22:20:55 +0000 (UTC)
commit 03af4df2860b69932f8fa3899f637754528d58c0
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sun Jun 2 23:16:05 2013 -0400
gcal-view: GcalViewChild struct field renamed
src/gcal-month-view.c | 12 ++++++------
src/gcal-view.h | 2 +-
src/gcal-year-view.c | 12 ++++++------
3 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index a29a0ee..a7aa878 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -436,7 +436,7 @@ gcal_month_view_size_allocate (GtkWidget *widget,
pos_y = vertical_block * (((i + priv->days_delay + 7 * february_gap ) / 7 ) + lines_gap_for_5);
if ((! gtk_widget_get_visible (child->widget))
- && (! child->hidden_by_me))
+ && (! child->hidden))
continue;
gtk_widget_get_preferred_height (child->widget,
@@ -450,7 +450,7 @@ gcal_month_view_size_allocate (GtkWidget *widget,
> vertical_block)
{
gtk_widget_hide (child->widget);
- child->hidden_by_me = TRUE;
+ child->hidden = TRUE;
l = l->next;
for (; l != NULL; l = l->next)
@@ -458,7 +458,7 @@ gcal_month_view_size_allocate (GtkWidget *widget,
child = (GcalViewChild*) l->data;
gtk_widget_hide (child->widget);
- child->hidden_by_me = TRUE;
+ child->hidden = TRUE;
}
break;
@@ -466,7 +466,7 @@ gcal_month_view_size_allocate (GtkWidget *widget,
else
{
gtk_widget_show (child->widget);
- child->hidden_by_me = FALSE;
+ child->hidden = FALSE;
child_allocation.y = child_allocation.y + added_height;
gtk_widget_size_allocate (child->widget, &child_allocation);
added_height += child_allocation.height;
@@ -999,7 +999,7 @@ gcal_month_view_add (GtkContainer *container,
new_child = g_new0 (GcalViewChild, 1);
new_child->widget = widget;
- new_child->hidden_by_me = FALSE;
+ new_child->hidden = FALSE;
priv->days[date->day - 1] =
g_list_insert_sorted (priv->days[date->day - 1],
@@ -1316,7 +1316,7 @@ gcal_month_view_reposition_child (GcalView *view,
{
priv->days[i] = g_list_remove (priv->days[i], child);
- child->hidden_by_me = TRUE;
+ child->hidden = TRUE;
priv->days[date->day - 1] =
g_list_insert_sorted (priv->days[date->day - 1],
child,
diff --git a/src/gcal-view.h b/src/gcal-view.h
index d2bdc1f..b88c969 100644
--- a/src/gcal-view.h
+++ b/src/gcal-view.h
@@ -35,7 +35,7 @@ G_BEGIN_DECLS
struct _GcalViewChild
{
GtkWidget *widget;
- gboolean hidden_by_me;
+ gboolean hidden;
};
typedef struct _GcalViewChild GcalViewChild;
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 3f78100..323e2c5 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -417,7 +417,7 @@ gcal_year_view_size_allocate (GtkWidget *widget,
pos_y = ( i / 6 ) * vertical_block;
if ((! gtk_widget_get_visible (child->widget))
- && (! child->hidden_by_me))
+ && (! child->hidden))
continue;
gtk_widget_get_preferred_height (child->widget,
@@ -431,7 +431,7 @@ gcal_year_view_size_allocate (GtkWidget *widget,
> vertical_block)
{
gtk_widget_hide (child->widget);
- child->hidden_by_me = TRUE;
+ child->hidden = TRUE;
l = l->next;
for (; l != NULL; l = l->next)
@@ -439,7 +439,7 @@ gcal_year_view_size_allocate (GtkWidget *widget,
child = (GcalViewChild*) l->data;
gtk_widget_hide (child->widget);
- child->hidden_by_me = TRUE;
+ child->hidden = TRUE;
}
break;
@@ -447,7 +447,7 @@ gcal_year_view_size_allocate (GtkWidget *widget,
else
{
gtk_widget_show (child->widget);
- child->hidden_by_me = FALSE;
+ child->hidden = FALSE;
child_allocation.y = child_allocation.y + added_height;
gtk_widget_size_allocate (child->widget, &child_allocation);
added_height += child_allocation.height;
@@ -661,7 +661,7 @@ gcal_year_view_add (GtkContainer *container,
new_child = g_new0 (GcalViewChild, 1);
new_child->widget = widget;
- new_child->hidden_by_me = FALSE;
+ new_child->hidden = FALSE;
priv->months[date->month - 1] =
g_list_insert_sorted (priv->months[date->month - 1],
@@ -1128,7 +1128,7 @@ gcal_year_view_reposition_child (GcalView *view,
{
priv->months[i] = g_list_remove (priv->months[i], child);
- child->hidden_by_me = TRUE;
+ child->hidden = TRUE;
priv->months[date->month - 1] =
g_list_insert_sorted (priv->months[date->month - 1],
child,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]