* gdk-pixbuf-new-from-xpm-data
@ 2003-08-28 1:02 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2003-08-28 1:02 UTC (permalink / raw)
To: guile-gtk
[-- 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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-28 1:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-28 1:02 gdk-pixbuf-new-from-xpm-data Kevin Ryde
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).