delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=gmail.com; s=20120113; | |
h=from:to:cc:subject:date:message-id:in-reply-to:references; | |
bh=1fApuFkKHuh8MUjE85BFAkLDOYGVUZZjLqqd6uerqA4=; | |
b=F0XCvO2Aon/zxuOeOb+NW/Oxybj/3GEHLP/CrkP4b5LT97CR0E/wDk9NNW8E1wNPM4 | |
pS8U88m4Rh7dqjAZKmjOsk7q70B1bdHtOfAtWc4xhmqXYRwV5XOGnKhqKJWsXFvUS27b | |
xP41fYc+xj7GwZzP3QldBO9rc+UY5rMdjw4AsERnGwLZcGRWLlP16ulk4bqLbra7Et5V | |
O/0FH+NKOmqZxa5p8vKTBIgGd3jlwYAP1CXv2Ds4HhyeJeHTBUzdNX//uMGUgRMIpnyo | |
3ZosOZaxZNgVyWPL91g4KoeCUZk6GKLgCGWvSa5PTij9AV1TI0Etzi3Cy3Yi9YDanlY6 | |
GLHg== | |
X-Received: | by 10.181.27.197 with SMTP id ji5mr7739436wid.26.1413317880887; |
Tue, 14 Oct 2014 13:18:00 -0700 (PDT) | |
From: | Riccardo Lucchese <riccardo DOT lucchese AT gmail DOT com> |
To: | geda-user AT delorie DOT com |
Cc: | paubert AT iram DOT es, Riccardo Lucchese <riccardo DOT lucchese AT gmail DOT com> |
Subject: | [geda-user] [PATCH V2 08/43] Remove deprecated use of gtk_object_unref() |
Date: | Tue, 14 Oct 2014 22:17:00 +0200 |
Message-Id: | <1413317855-10673-9-git-send-email-riccardo.lucchese@gmail.com> |
X-Mailer: | git-send-email 2.1.0 |
In-Reply-To: | <1413317855-10673-1-git-send-email-riccardo.lucchese@gmail.com> |
References: | <1413317855-10673-1-git-send-email-riccardo DOT lucchese AT gmail DOT com> |
Reply-To: | geda-user AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | geda-user AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
Verbatim from Gtk+ 2 Reference Manual: "gtk_object_unref has been deprecated since version 2.12 and should not be used in newly-written code. Use g_object_unref() instead." --- gattrib/src/gtksheet_2_2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gattrib/src/gtksheet_2_2.c b/gattrib/src/gtksheet_2_2.c index f18c5c4..92fbffe 100644 --- a/gattrib/src/gtksheet_2_2.c +++ b/gattrib/src/gtksheet_2_2.c @@ -2381,7 +2381,7 @@ gtk_sheet_set_vadjustment (GtkSheet *sheet, if (sheet->vadjustment) { gtk_signal_disconnect_by_data (GTK_OBJECT (sheet->vadjustment), sheet); - gtk_object_unref (GTK_OBJECT (sheet->vadjustment)); + g_object_unref(sheet->vadjustment); } sheet->vadjustment = adjustment; @@ -2427,7 +2427,7 @@ gtk_sheet_set_hadjustment (GtkSheet *sheet, if (sheet->hadjustment) { gtk_signal_disconnect_by_data (GTK_OBJECT (sheet->hadjustment), sheet); - gtk_object_unref (GTK_OBJECT (sheet->hadjustment)); + g_object_unref(sheet->hadjustment); } sheet->hadjustment = adjustment; @@ -2538,13 +2538,13 @@ gtk_sheet_destroy (GtkObject * object) if (sheet->hadjustment) { gtk_signal_disconnect_by_data (GTK_OBJECT (sheet->hadjustment), sheet); - gtk_object_unref (GTK_OBJECT (sheet->hadjustment)); + g_object_unref(sheet->hadjustment); sheet->hadjustment = NULL; } if (sheet->vadjustment) { gtk_signal_disconnect_by_data (GTK_OBJECT (sheet->vadjustment), sheet); - gtk_object_unref (GTK_OBJECT (sheet->vadjustment)); + g_object_unref(sheet->vadjustment); sheet->vadjustment = NULL; } -- 2.1.0
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |