Bump min. version of GTK2 to 2.24 and GLib to 2.28
Note: This is mostly search and replace. I've only tested with my GTK+ 2.24.20 and not at all the Waf build system.
This commit is contained in:
parent
b9e090d2c8
commit
bdc082cb77
10
HACKING
10
HACKING
@ -167,16 +167,16 @@ unmanageable diffs.
|
||||
|
||||
GTK versions & API documentation
|
||||
--------------------------------
|
||||
Geany requires GTK >= 2.16 and GLib >= 2.20. API symbols from newer
|
||||
Geany requires GTK >= 2.24 and GLib >= 2.28. API symbols from newer
|
||||
GTK/GLib versions should be avoided or made optional to keep the source
|
||||
code building on older systems.
|
||||
|
||||
The official GTK 2.16 API documentation may not be available online
|
||||
The official GTK 2.24 API documentation may not be available online
|
||||
anymore, so we put it on http://www.geany.org/manual/gtk/. There
|
||||
is also a tarball with all available files for download and use with
|
||||
devhelp.
|
||||
|
||||
Using the 2.16 API documentation of the GTK libs (including GLib, GDK
|
||||
Using the 2.24 API documentation of the GTK libs (including GLib, GDK
|
||||
and Pango) has the advantages that you don't get confused by any
|
||||
newer API additions and you don't have to take care about whether
|
||||
you can use them or not.
|
||||
@ -187,8 +187,8 @@ Coding
|
||||
them down into smaller static functions where possible. This makes code
|
||||
much easier to read and maintain.
|
||||
* Use GLib types and functions - gint not int, g_free() not free().
|
||||
* Your code should build against GLib 2.20 and GTK 2.16. At least for the
|
||||
moment, we want to keep the minimum requirement for GTK at 2.16 (of
|
||||
* Your code should build against GLib 2.27.3 and GTK 2.24. At least for the
|
||||
moment, we want to keep the minimum requirement for GTK at 2.24 (of
|
||||
course, you can use the GTK_CHECK_VERSION macro to protect code using
|
||||
later versions).
|
||||
* Variables should be declared before statements. You can use
|
||||
|
||||
4
README
4
README
@ -28,8 +28,8 @@ The basic features of Geany are:
|
||||
|
||||
Requirements
|
||||
------------
|
||||
For compiling Geany yourself, you will need the GTK (>= 2.16.0)
|
||||
libraries and header files. You will also need its dependency libraries
|
||||
For compiling Geany yourself, you will need the GTK2 (>= 2.24) or
|
||||
GTK3 libraries and header files. You will also need its dependency libraries
|
||||
and header files, such as Pango, Glib and ATK. All these files are
|
||||
available at http://www.gtk.org.
|
||||
|
||||
|
||||
@ -70,12 +70,12 @@ AS_IF([test "x$enable_gtk3" = xyes],
|
||||
[gtk_package=gtk+-3.0
|
||||
gtk_min_version=3.0],
|
||||
[gtk_package=gtk+-2.0
|
||||
gtk_min_version=2.16])
|
||||
gtk_min_version=2.24])
|
||||
AM_CONDITIONAL([GTK3], [test "x$gtk_package" = "xgtk+-3.0"])
|
||||
|
||||
# GTK/GLib/GIO checks
|
||||
gtk_modules="$gtk_package >= $gtk_min_version glib-2.0 >= 2.20"
|
||||
gtk_modules_private="gio-2.0 >= 2.20 gmodule-no-export-2.0"
|
||||
gtk_modules_private="gio-2.0 >= 2.28 gmodule-no-export-2.0"
|
||||
PKG_CHECK_MODULES([GTK], [$gtk_modules $gtk_modules_private])
|
||||
AC_SUBST([DEPENDENCIES], [$gtk_modules])
|
||||
AC_SUBST([GTK_CFLAGS])
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk+" version="2.16"/>
|
||||
<requires lib="gtk+" version="2.24"/>
|
||||
<!-- interface-naming-policy project-wide -->
|
||||
<object class="GtkAccelGroup" id="accelgroup1"/>
|
||||
<object class="GtkAdjustment" id="adjustment1">
|
||||
|
||||
@ -103,7 +103,7 @@ Installation
|
||||
Requirements
|
||||
------------
|
||||
|
||||
You will need the GTK (>= 2.16.0) libraries and their dependencies
|
||||
You will need the GTK (>= 2.24) libraries and their dependencies
|
||||
(Pango, GLib and ATK). Your distro should provide packages for these,
|
||||
usually installed by default. For Windows, you can download an installer
|
||||
from the website which bundles these libraries.
|
||||
@ -120,7 +120,7 @@ Source compilation
|
||||
------------------
|
||||
|
||||
Compiling Geany is quite easy.
|
||||
To do so, you need the GTK (>= 2.16.0) libraries and header files.
|
||||
To do so, you need the GTK (>= 2.24) libraries and header files.
|
||||
You also need the Pango, GLib and ATK libraries and header files.
|
||||
All these files are available at http://www.gtk.org, but very often
|
||||
your distro will provide development packages to save the trouble of
|
||||
|
||||
4
wscript
4
wscript
@ -54,9 +54,9 @@ from waflib.Tools.compiler_cxx import cxx_compiler
|
||||
APPNAME = 'geany'
|
||||
VERSION = '1.25'
|
||||
LINGUAS_FILE = os.path.join('po', 'LINGUAS')
|
||||
MINIMUM_GTK_VERSION = '2.16.0'
|
||||
MINIMUM_GTK_VERSION = '2.24.0'
|
||||
MINIMUM_GTK3_VERSION = '3.0.0'
|
||||
MINIMUM_GLIB_VERSION = '2.20.0'
|
||||
MINIMUM_GLIB_VERSION = '2.28.0'
|
||||
|
||||
GEANY_LIB_VERSION = '0.0.0'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user