diff options
author | Ivan, Wong Yat Cheung <email@ivanwong.info> | 2005-04-11 18:57:22 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-04-11 18:57:22 +0000 |
commit | 5d4b86ba20cc07a2d71198dcd544856bdf937352 (patch) | |
tree | 035e9f2be9dcaba2ef9ff37fc0c77136617414b4 | |
parent | 18a13a1879d4a6d8cd4ebc42c2a1bbea54498e2e (diff) | |
download | gdk-pixbuf-5d4b86ba20cc07a2d71198dcd544856bdf937352.tar.gz |
Fix #300218:
2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info>
Fix #300218:
* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
C99ism.
* gtk/updateiconcache.c: Guard inclusion of unistd.h and
utime.h.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 10 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 10 | ||||
-rw-r--r-- | gdk/win32/gdkselection-win32.c | 4 | ||||
-rw-r--r-- | gtk/updateiconcache.c | 6 |
5 files changed, 39 insertions, 1 deletions
@@ -1,3 +1,13 @@ +2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info> + + Fix #300218: + + * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix + C99ism. + + * gtk/updateiconcache.c: Guard inclusion of unistd.h and + utime.h. + 2005-04-11 Matthias Clasen <mclasen@redhat.com> * configure.in: Bump version. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index c6123ed68..85a391580 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info> + + Fix #300218: + + * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix + C99ism. + + * gtk/updateiconcache.c: Guard inclusion of unistd.h and + utime.h. + 2005-04-11 Matthias Clasen <mclasen@redhat.com> * configure.in: Bump version. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index c6123ed68..85a391580 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +2005-04-11 Ivan, Wong Yat Cheung <email@ivanwong.info> + + Fix #300218: + + * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix + C99ism. + + * gtk/updateiconcache.c: Guard inclusion of unistd.h and + utime.h. + 2005-04-11 Matthias Clasen <mclasen@redhat.com> * configure.in: Bump version. diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c index c8c0d6e9d..e0d5c00c7 100644 --- a/gdk/win32/gdkselection-win32.c +++ b/gdk/win32/gdkselection-win32.c @@ -383,12 +383,14 @@ gdk_selection_convert (GdkWindow *requestor, if (GetClipboardFormatName (fmt, sFormat, 80) > 0 && strcmp (sFormat, "UTF8_STRING")) { + GdkAtom atom; + if (!has_bmp && (!strcmp (sFormat, "image/bmp") || !strcmp (sFormat, "image/x-bmp") || !strcmp (sFormat, "image/x-MS-bmp"))) has_bmp = TRUE; - GdkAtom atom = gdk_atom_intern (sFormat, FALSE); + atom = gdk_atom_intern (sFormat, FALSE); data[i++] = atom; } } diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 1aac164ba..57e6f9799 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -24,9 +24,15 @@ #include <string.h> #include <sys/types.h> #include <sys/stat.h> +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #include <errno.h> +#ifdef _MSC_VER +#include <sys/utime.h> +#else #include <utime.h> +#endif #include <glib.h> #include <glib/gstdio.h> |