Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,126
Issues
1,126
List
Boards
Labels
Service Desk
Milestones
Merge Requests
150
Merge Requests
150
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gtk
Commits
6bda7a89
Commit
6bda7a89
authored
Nov 12, 2000
by
Hans Breuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portability fixes and corrected prototypes for self-contained build
parent
aceeae34
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
gdk-pixbuf/ChangeLog
gdk-pixbuf/ChangeLog
+8
-0
gdk-pixbuf/gdk-pixbuf-io.c
gdk-pixbuf/gdk-pixbuf-io.c
+6
-5
gdk-pixbuf/io-xpm.c
gdk-pixbuf/io-xpm.c
+3
-1
No files found.
gdk-pixbuf/ChangeLog
View file @
6bda7a89
2000
-
11
-
11
Hans
Breuer
<
Hans
@
Breuer
.
Org
>
*
gdk
-
pixbuf
-
io
.
c
:
Fix
all
function
prototype
macros
for
self
contained
image
handlers
(
!USE_G_MODULE). Files to save should
be
opened
in
binary
mode
,
fopen
(
s
,
"wb"
).
*
io
-
xpm
.
c
:
added
HAVE_UNISTD_H
condition
2000
-
11
-
11
Tor
Lillqvist
<
tml
@
iki
.
fi
>
*
gdk_pixbuf
.
def
:
Add
gdk_pixbuf_new_subpixbuf
.
...
...
gdk-pixbuf/gdk-pixbuf-io.c
View file @
6bda7a89
...
...
@@ -349,17 +349,18 @@ gdk_pixbuf_load_module (GdkPixbufModule *image_module,
#else
#define mname(type,fn) gdk_pixbuf__ ## type ## _image_ ##fn
#define m_load(type) extern GdkPixbuf * mname(type,load) (FILE *f);
#define m_load(type) extern GdkPixbuf * mname(type,load) (FILE *f
, GError **error
);
#define m_load_xpm_data(type) extern GdkPixbuf * mname(type,load_xpm_data) (const char **data);
#define m_begin_load(type) \
extern gpointer mname(type,begin_load) (ModulePreparedNotifyFunc prepare_func, \
ModuleUpdatedNotifyFunc update_func, \
ModuleFrameDoneNotifyFunc frame_done_func,\
ModuleAnimationDoneNotifyFunc anim_done_func,\
gpointer user_data);
gpointer user_data,\
GError **error);
#define m_stop_load(type) extern void mname(type,stop_load) (gpointer context);
#define m_load_increment(type) extern gboolean mname(type,load_increment) (gpointer context, const guchar *buf, guint size);
#define m_load_animation(type) extern GdkPixbufAnimation * mname(type,load_animation) (FILE *f);
#define m_load_increment(type) extern gboolean mname(type,load_increment) (gpointer context, const guchar *buf, guint size
, GError **error
);
#define m_load_animation(type) extern GdkPixbufAnimation * mname(type,load_animation) (FILE *f
, GError **error
);
#define m_save(type) \
extern gboolean mname(type,save) (FILE *f, \
GdkPixbuf *pixbuf, \
...
...
@@ -857,7 +858,7 @@ gdk_pixbuf_savev (GdkPixbuf *pixbuf,
g_return_val_if_fail
(
filename
!=
NULL
,
FALSE
);
g_return_val_if_fail
(
type
!=
NULL
,
FALSE
);
f
=
fopen
(
filename
,
"w"
);
f
=
fopen
(
filename
,
"w
b
"
);
if
(
f
==
NULL
)
{
g_set_error
(
error
,
...
...
gdk-pixbuf/io-xpm.c
View file @
6bda7a89
...
...
@@ -27,7 +27,9 @@
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <unistd.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
/* for unlink */
#endif
#include "gdk-pixbuf-private.h"
#include "gdk-pixbuf-io.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment