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=sizvLk0jUevrYmml3NA+7IDu/xniSncKmUFrCpu3j5k=; | |
b=Prvnp1jTjRixYUf34eD6+6B2Pj9RLoCvUObVgCbOVQHFilxGFPQHn9XGw4tsAQRR1e | |
61UOEBFx3tFT2+5wsp65xpjDYuYKWTRwmnhf/ucx078LErnC2GdXrO9q0mLxEX6ySveW | |
um4yQ4xXs/qCbB2wNDRxCr506JfacU0d2uM3UHodPSbkxxTdNGH2jzJoIBixIg0dIYBF | |
zdguZGdi9KkQBDHCBl7wb+M6CAdonM/x/jl/W5McT8JtPo+JlOgPJGNQ4XcCH99EDkxr | |
BeES4NT1XgZq6o97zgoBlhcEgiUWlLrmn45lbvFYZ0SrloyyIRNLb6AggvfPJskNey9K | |
weMg== | |
X-Received: | by 10.194.241.201 with SMTP id wk9mr5253362wjc.101.1413317965725; |
Tue, 14 Oct 2014 13:19:25 -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 39/43] Remove deprecated use of gtk_signal_connect_object() |
Date: | Tue, 14 Oct 2014 22:17:31 +0200 |
Message-Id: | <1413317855-10673-40-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_signal_connect_object is deprecated and should not be used in newly-written code." Use g_signal_connect_swapped 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 eb56d43..9a0f78c 100644 --- a/gattrib/src/gtksheet_2_2.c +++ b/gattrib/src/gtksheet_2_2.c @@ -6205,10 +6205,10 @@ create_sheet_entry(GtkSheet *sheet) /* #if 0 */ /* SDB says: I need to work out the event passing system */ - gtk_signal_connect_object(GTK_OBJECT(entry),"key_press_event", - (GtkSignalFunc) gtk_sheet_key_press, - GTK_OBJECT(sheet)); - /* gtk_signal_connect_object(GTK_OBJECT(entry),"key_press_event", + g_signal_connect_swapped(entry, "key_press_event", + (GtkSignalFunc)gtk_sheet_key_press, + GTK_OBJECT(sheet)); + /* g_signal_connect_swapped(entry,"key_press_event", (GtkSignalFunc) gtk_sheet_entry_key_press, GTK_OBJECT(sheet)); */ -- 2.1.0
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |