From: Kevin Ryde <user42@zip.com.au>
To: guile-gtk@sources.redhat.com
Subject: gtk version stuff
Date: Thu, 03 Apr 2003 22:10:00 -0000 [thread overview]
Message-ID: <87llyrz0zi.fsf@zip.com.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 593 bytes --]
A bit of filling in the gaps for the gtk version numbers.
I propose taking gtk-major-version and gtk-minor-version from the
global variables rather having values in gtk.scm. Not that they'll be
anything except 1 and 2, but just to ensure guile-gtk exactly reflects
what libgtk says about itself.
* gtk-support.c (sgtk_init_gtk_support): Add gtk_major_version,
gtk_minor_version, gtk_micro_version, gtk_binary_age,
gtk_interface_age.
* gtk-1.2/gtk.scm (gtk-major-version, gtk-minor-version): Remove.
* gtk-1.2.defs (gtk_check_version): New function.
[-- Attachment #2: gtk-support.c.versions.diff --]
[-- Type: text/plain, Size: 1083 bytes --]
CVS_RSH not defined
/usr/bin/cvs -d :pserver:anoncvs@subversions.gnu.org:/cvsroot/guile-gtk diff -r1.4 -u gtk-support.c
Index: gtk-support.c
===================================================================
RCS file: /cvsroot/guile-gtk/guile-gtk-1.2/gtk-support.c,v
retrieving revision 1.4
diff -u -u -r1.4 gtk-support.c
--- gtk-support.c 30 Mar 2003 13:46:01 -0000 1.4
+++ gtk-support.c 3 Apr 2003 22:03:24 -0000
@@ -743,4 +743,12 @@
kw_type = scm_make_keyword_from_dash_symbol (sym_type);
kw_flags = scm_make_keyword_from_dash_symbol (sym_flags);
+
+ /* Use the library variables so as to indicate what we're running with,
+ not GTK_MAJOR_VERSION etc which would be what we compiled against. */
+ scm_c_define ("gtk-major-version", scm_ulong2num (gtk_major_version));
+ scm_c_define ("gtk-minor-version", scm_ulong2num (gtk_minor_version));
+ scm_c_define ("gtk-micro-version", scm_ulong2num (gtk_micro_version));
+ scm_c_define ("gtk-binary-age", scm_ulong2num (gtk_binary_age));
+ scm_c_define ("gtk-interface-age", scm_ulong2num (gtk_interface_age));
}
[-- Attachment #3: gtk.scm.versions.diff --]
[-- Type: text/plain, Size: 357 bytes --]
--- gtk.scm.~1.2.~ 2003-01-31 19:11:03.000000000 +1000
+++ gtk.scm 2003-04-03 15:26:43.000000000 +1000
@@ -2,9 +2,6 @@
:use-module (gtk-1.2 dynlink)
:use-module (gtk-1.2 gdk))
-(define-public gtk-major-version 1)
-(define-public gtk-minor-version 2)
-
(merge-compiled-code "sgtk_init_gtk_gtk_glue" "libguilegtk-1.2")
(define-public (gtk-update)
[-- Attachment #4: gtk-1.2.defs.versions.diff --]
[-- Type: text/plain, Size: 355 bytes --]
--- gtk-1.2.defs.~1.9.~ 2003-04-04 08:04:22.000000000 +1000
+++ gtk-1.2.defs 2003-04-04 08:07:41.000000000 +1000
@@ -4,6 +4,12 @@
(import "gdk-1.2.defs")
+(define-func gtk_check_version
+ static_string
+ ((uint major)
+ (uint minor)
+ (uint micro)))
+
(define-enum GtkWindowType
(toplevel GTK_WINDOW_TOPLEVEL)
(dialog GTK_WINDOW_DIALOG)
next reply other threads:[~2003-04-03 22:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-03 22:10 Kevin Ryde [this message]
2003-05-11 23:29 ` Kevin Ryde
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=87llyrz0zi.fsf@zip.com.au \
--to=user42@zip.com.au \
--cc=guile-gtk@sources.redhat.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).