delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/09/18/07:12:38

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=xC8oP0e8ApZNDIRT7fqXzBG1UriWV5+lGJwHFTVVSN4=;
b=JdKENU54gnGCTzqQzLk9BEjhXCvrw+093TAQiyoukNoIo+L6ppRbEnIev0WTGb6j7K
SNKZaYZUlF/vvoj5hpi59mSEHM75XY+1nvkN6GRQZ0qjhNI6E0S5uoZaED7rbXCBxjI2
4sSk0C1EBYedMTtPnZ22gfDYeY7ZhUyQxEtA54o6bQjtpWLjY/pzq65ul0Z/jWyeA0qa
pfzpUwnoh8Z3rcDxw/EeznY7P3yY9wCZ0iXHepAaK3qKAaTURAz3ujnT0JSZBgrJkrq2
WdwMFI6j/sXSIxy1pLxhUiMkUp7JO2pDisbzZPIsYSJZnOJUpfpi3OBjdBnKThdnxH8J
QBJQ==
X-Received: by 10.180.10.38 with SMTP id f6mr11991838wib.30.1411038408186;
Thu, 18 Sep 2014 04:06:48 -0700 (PDT)
From: Riccardo Lucchese <riccardo DOT lucchese AT gmail DOT com>
To: geda-user AT delorie DOT com
Cc: Riccardo Lucchese <riccardo DOT lucchese AT gmail DOT com>
Subject: [geda-user] [PATCH 01/43] Remove deprecated use of GTK_WIDGET_STATE()
Date: Thu, 18 Sep 2014 13:05:56 +0200
Message-Id: <1411038398-10231-2-git-send-email-riccardo.lucchese@gmail.com>
X-Mailer: git-send-email 2.1.0
In-Reply-To: <1411038398-10231-1-git-send-email-riccardo.lucchese@gmail.com>
References: <1411038398-10231-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_WIDGET_STATE has been
deprecated since version 2.20 and should not be used in newly-written
code. Use gtk_widget_get_state() instead."
---
 gschem/src/gschem_accel_label.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gschem/src/gschem_accel_label.c b/gschem/src/gschem_accel_label.c
index b070683..dd90d87 100644
--- a/gschem/src/gschem_accel_label.c
+++ b/gschem/src/gschem_accel_label.c
@@ -256,7 +256,7 @@ gschem_accel_label_expose_event (GtkWidget      *widget,
 
           gtk_paint_layout (widget->style,
                             widget->window,
-                            GTK_WIDGET_STATE (widget),
+                            gtk_widget_get_state(widget),
                             FALSE,
                             &event->area,
                             widget,
-- 
2.1.0

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019