delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/10/14/16:18:59

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=4KGp8W79q1RERPOJ+GXiXlC/Epg5xLOQ249YoMewQkc=;
b=LyULcfaXv2l7JVRSoZOrjMGw5c9yAGlmdkG77gAxYV1gWfLc7uukrxJpfkBqIEvENF
3LuSYbSKwlVMKgw+s2+I2nI/bnN1LWJ6bKbpAjC9QMQeiQPZPf6beJWJk4Em7MUKWYL2
Io8m8Lt9ogrGLrY49v9gvXNbmeudlSzh1/BGu8oe1oAUn44h7hlJ6inhdkPBUNfcUXuD
lLwh+80VGSfL/hPikVXG1stx3jteOiXKF/QEU3/AthMzmj3c2d1wcc/Z2a4RUe5kTZFY
V1XOqw9+YHpFkXZw+cWNRLT3KO8nnfCXGctQuE6GnbSXap6kA+2p9A0msU8QjrvNv+9L
gvQg==
X-Received: by 10.180.82.168 with SMTP id j8mr7792856wiy.57.1413317930773;
Tue, 14 Oct 2014 13:18:50 -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 27/43] Remove deprecated use of gtk_toolbar_set_orientation()
Date: Tue, 14 Oct 2014 22:17:19 +0200
Message-Id: <1413317855-10673-28-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_toolbar_set_orientation
has been deprecated since version 2.16 and should not be used in
newly-written code.  Use gtk_orientable_set_orientation() instead."
---
 gschem/src/x_window.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gschem/src/x_window.c b/gschem/src/x_window.c
index 76f14fb..6df339c 100644
--- a/gschem/src/x_window.c
+++ b/gschem/src/x_window.c
@@ -288,8 +288,8 @@ void x_window_create_main(GschemToplevel *w_current)
 
   if (w_current->toolbars) {
     toolbar = gtk_toolbar_new();
-    gtk_toolbar_set_orientation (GTK_TOOLBAR(toolbar),
-                                 GTK_ORIENTATION_HORIZONTAL);
+    gtk_orientable_set_orientation(GTK_ORIENTABLE(toolbar),
+                                   GTK_ORIENTATION_HORIZONTAL);
     gtk_toolbar_set_style (GTK_TOOLBAR(toolbar), GTK_TOOLBAR_ICONS);
 
     if (w_current->handleboxes) {
-- 
2.1.0

- Raw text -


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