all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Antipov <dmantipov@yandex.ru>
To: Emacs development discussions <emacs-devel@gnu.org>
Cc: "Jan Djärv" <jan.h.d@swipnet.se>
Subject: Undefined reference to 'gtk_adjustment_configure'
Date: Tue, 30 Sep 2014 20:14:31 +0400	[thread overview]
Message-ID: <542AD6E7.6090803@yandex.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

Recently I tried to build trunk on a relatively mature system and got
"undefined reference to 'gtk_adjustment_configure'" error when linking.
This system has 2.12.0 so configure check was passed.  But, according to
https://mail.gnome.org/archives/gtk-devel-list/2008-August/msg00023.html,
gtk_adjustment_configure was introduced in 2.13.6.  So I think that old
code should be resurrected under GTK_CHECK_VERSION.

Dmitry

[-- Attachment #2: gtk_adjustment_configure.patch --]
[-- Type: text/x-diff, Size: 1174 bytes --]

=== modified file 'src/gtkutil.c'
--- src/gtkutil.c	2014-09-24 04:12:37 +0000
+++ src/gtkutil.c	2014-09-30 16:05:03 +0000
@@ -3993,17 +3993,19 @@
 
       block_input ();
       adj = gtk_range_get_adjustment (GTK_RANGE (wscroll));
-
-      /*      gtk_adjustment_set_lower (adj, (gdouble) lower);
+#if GTK_CHECK_VERSION (2, 13, 6)
+      gtk_adjustment_configure (adj, (gdouble) value, (gdouble) lower,
+				(gdouble) upper, (gdouble) step_increment,
+				(gdouble) page_increment, (gdouble) pagesize);
+#else
+      gtk_adjustment_set_lower (adj, (gdouble) lower);
       gtk_adjustment_set_upper (adj, (gdouble) upper);
       gtk_adjustment_set_page_size (adj, (gdouble) pagesize);
       gtk_adjustment_set_value (adj, (gdouble) value);
       gtk_adjustment_set_page_increment (adj, (gdouble) page_increment);
       gtk_adjustment_set_step_increment (adj, (gdouble)
-      step_increment); */
-      gtk_adjustment_configure (adj, (gdouble) value, (gdouble) lower,
-				(gdouble) upper, (gdouble) step_increment,
-				(gdouble) page_increment, (gdouble) pagesize);
+      step_increment);
+#endif
       gtk_adjustment_changed (adj);
       unblock_input ();
     }


             reply	other threads:[~2014-09-30 16:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-30 16:14 Dmitry Antipov [this message]
2014-10-01  9:03 ` Undefined reference to 'gtk_adjustment_configure' Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=542AD6E7.6090803@yandex.ru \
    --to=dmantipov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.