[gnome-calendar/date-selector] date-selector: remove wrongly placed g_object_refs
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/date-selector] date-selector: remove wrongly placed g_object_refs
- Date: Mon, 22 Dec 2014 14:54:30 +0000 (UTC)
commit 8368802bc2e4546d53a20272ea4fe6afa1b1257f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Dec 22 12:54:19 2014 -0200
date-selector: remove wrongly placed g_object_refs
src/gcal-date-selector.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-date-selector.c b/src/gcal-date-selector.c
index 5174fae..31618db 100644
--- a/src/gcal-date-selector.c
+++ b/src/gcal-date-selector.c
@@ -373,11 +373,9 @@ gcal_date_selector_constructed (GObject *object)
/* main grid */
grid = (GtkWidget*) gtk_builder_get_object (builder, "grid");
- g_object_ref (grid);
/* calendar */
priv->calendar = (GtkWidget*) gtk_builder_get_object (builder, "calendar");
- g_object_ref (priv->calendar);
/**
* Date entries
@@ -388,7 +386,6 @@ gcal_date_selector_constructed (GObject *object)
priv->entries[DAY] = (GtkWidget*) gtk_builder_get_object (builder, entry_name);
gtk_entry_set_max_length (GTK_ENTRY (priv->entries[DAY]), 2);
- g_object_ref (priv->entries[DAY]);
g_free (entry_name);
label = gtk_label_new (_("Day"));
@@ -401,7 +398,6 @@ gcal_date_selector_constructed (GObject *object)
priv->entries[MONTH] = (GtkWidget*) gtk_builder_get_object (builder, entry_name);
gtk_entry_set_max_length (GTK_ENTRY (priv->entries[MONTH]), 2);
- g_object_ref (priv->entries[MONTH]);
g_free (entry_name);
label = gtk_label_new (_("Month"));
@@ -413,7 +409,6 @@ gcal_date_selector_constructed (GObject *object)
entry_name = g_strdup_printf ("entry%d", priv->year_pos);
priv->entries[YEAR] = (GtkWidget*) gtk_builder_get_object (builder, entry_name);
- g_object_ref (priv->entries[YEAR]);
if (! priv->have_long_year)
gtk_entry_set_max_length (GTK_ENTRY (priv->entries[YEAR]), 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]