aboutsummaryrefslogtreecommitdiffhomepage
path: root/m4
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-07 17:58:54 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-08 18:48:16 +0200
commit073f5f28b835d3bda5e8771383c26d78d9740768 (patch)
tree20ed540730c940d82d9c6b4cd81408bec6c42cd1 /m4
parent0507d6a8b2bc590faf97c5f7d406218d1980470b (diff)
downloadsciteco-073f5f28b835d3bda5e8771383c26d78d9740768.tar.gz
get rid of the GObject Builder (GOB2): converted teco-gtk-info-popup.gob and teco-gtk-label.gob to plain C
* Using modern GObject idioms and macros greatly reduces the necessary boilerplate code. * The plain C versions of our GObject classes are now "final" (cannot be derived) This means we can hide the instance structures from the headers and avoid using explicit private fields. * Avoids some deprecation warnings when building the Gtk UI. * GOB2 is apparently no longer maintained, so this seems like a good idea in the long run. * The most important reason however is that there is no precompiled GOB2 for Windows which prevents compilation on native Windows hosts, eg. during nightly builds. This is even more important as Gtk+3 is distributed on Windows practically exclusively via MSYS. (ArchLinux contains MinGW gtk3 packages as well, so cross-compiling from ArchLinux would have been an alternative.)
Diffstat (limited to 'm4')
-rw-r--r--m4/gob2.m458
1 files changed, 0 insertions, 58 deletions
diff --git a/m4/gob2.m4 b/m4/gob2.m4
deleted file mode 100644
index 196d6c2..0000000
--- a/m4/gob2.m4
+++ /dev/null
@@ -1,58 +0,0 @@
-dnl
-dnl GOB_HOOK(script if found, fail)
-dnl if fail = "failure", abort if GOB not found
-dnl
-
-
-AC_DEFUN([GOB2_HOOK],[
- AC_PATH_PROG(GOB2,gob2)
- if test ! x$GOB2 = x; then
- if test ! x$1 = x; then
- AC_MSG_CHECKING(for gob-2 >= $1)
- g_r_ve=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- g_r_ma=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- g_r_mi=`echo $1|sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- g_ve=`$GOB2 --version 2>&1|sed 's/Gob version \([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- g_ma=`$GOB2 --version 2>&1|sed 's/Gob version \([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- g_mi=`$GOB2 --version 2>&1|sed 's/Gob version \([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
-
- if test $g_ve -eq $g_r_ve; then
- if test $g_ma -ge $g_r_ma; then
- if test $g_mi -ge $g_r_mi; then
- AC_MSG_RESULT(ok)
- else
- if test $g_ma -gt $g_r_ma; then
- AC_MSG_RESULT(ok)
- else
- AC_MSG_ERROR("found $g_ve.$g_ma.$g_mi requires $g_r_ve.$g_r_ma.$g_r_mi")
- fi
- fi
- else
- AC_MSG_ERROR("found $g_ve.$g_ma.$g_mi requires $g_r_ve.$g_r_ma.$g_r_mi")
- fi
- else
- if test $g_ve -gt $g_r_ve; then
- AC_MSG_RESULT(ok)
- else
- AC_MSG_ERROR(major version $g_ve found but $g_r_ve required)
- fi
- fi
-
- unset gob_version
- unset g_ve
- unset g_ma
- unset g_mi
- unset g_r_ve
- unset g_r_ma
- unset g_r_mi
- fi
- AC_SUBST(GOB2)
- $2
- else
- $3
- fi
-])
-
-AC_DEFUN([GOB2_CHECK],[
- GOB2_HOOK($1,[],[AC_MSG_ERROR([Cannot find GOB-2, check http://www.5z.com/jirka/gob.html])])
-])