From: Kevin Ryde <user42@zip.com.au>
To: guile-gtk@sources.redhat.com
Subject: gdk-pixbuf-new-from-xpm-data
Date: Thu, 28 Aug 2003 01:02:00 -0000 [thread overview]
Message-ID: <87brualhll.fsf@zip.com.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 309 bytes --]
Enabling a commented-out function,
* gdk-pixbuf/gdk-pixbuf.defs (gdk_pixbuf_new_from_xpm_data_interp):
New function.
* gdk-pixbuf/gdk-pixbuf-support.c, gdk-pixbuf/gdk-pixbuf-support.h:
New files.
* gdk-pixbuf/Makefile.am (libguilegdkpixbuf_1_2_la_SOURCES): Add them.
[-- Attachment #2: gdk-pixbuf.defs.xpm-data.diff --]
[-- Type: text/plain, Size: 459 bytes --]
--- gdk-pixbuf.defs.~1.5.~ 1970-01-01 10:00:01.000000000 +1000
+++ gdk-pixbuf.defs 2003-08-28 10:59:05.000000000 +1000
@@ -118,9 +118,9 @@
;; (GdkPixbufDestroyNotify destroy-fn)
;; (pointer destroy-fn-data)))
-;;(define-func gdk_pixbuf_new_from_xpm_data
-;; GdkPixbuf
-;; ((cvec string) data)))
+(define-func gdk_pixbuf_new_from_xpm_data_interp
+ (GdkPixbuf (copy #f))
+ (((cvec string) data)))
(define-func gdk_pixbuf_add_alpha
GdkPixbuf
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: gdk-pixbuf-support.c --]
[-- Type: text/x-csrc, Size: 1151 bytes --]
/*
* Copyright 2003 Kevin Ryde
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <guile-gtk.h>
#include <gdk-pixbuf-support.h>
/* sgtk_scm2cvec puts a zero element (ie. NULL) at the end of "data". This
interp is just to discard the len parameter. Maybe could do that with a
change to build-guile-gtk-1.2. */
GdkPixbuf *
gdk_pixbuf_new_from_xpm_data_interp (int len, const char **data)
{
return gdk_pixbuf_new_from_xpm_data (data);
}
reply other threads:[~2003-08-28 1:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87brualhll.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).