all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Undefined reference to 'gtk_adjustment_configure'
@ 2014-09-30 16:14 Dmitry Antipov
  2014-10-01  9:03 ` Jan Djärv
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Antipov @ 2014-09-30 16:14 UTC (permalink / raw)
  To: Emacs development discussions; +Cc: Jan Djärv

[-- 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 ();
     }


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Undefined reference to 'gtk_adjustment_configure'
  2014-09-30 16:14 Undefined reference to 'gtk_adjustment_configure' Dmitry Antipov
@ 2014-10-01  9:03 ` Jan Djärv
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Djärv @ 2014-10-01  9:03 UTC (permalink / raw)
  To: Dmitry Antipov; +Cc: Emacs development discussions

Hi. 

Go ahead. But isn't 2.12 something like 5 years old?

    Jan D. 


> 30 sep 2014 kl. 18:14 skrev Dmitry Antipov <dmantipov@yandex.ru>:
> 
> 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
> <gtk_adjustment_configure.patch>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-01  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 16:14 Undefined reference to 'gtk_adjustment_configure' Dmitry Antipov
2014-10-01  9:03 ` Jan Djärv

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.