[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/src image_window.c,1.1,1.2
From: |
Edward L. Haletky <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/src image_window.c,1.1,1.2 |
Date: |
Sun, 23 Mar 2003 17:35:04 -0500 |
Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv5839
Modified Files:
image_window.c
Log Message:
GDKPixbuf is not part on WIN32 so ifdef most of this code out for now until an
alternative can be found
Index: image_window.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/image_window.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- image_window.c 19 Mar 2003 17:56:51 -0000 1.1
+++ image_window.c 23 Mar 2003 22:35:01 -0000 1.2
@@ -1,12 +1,16 @@
#include "intl.h"
#include <gtk/gtk.h>
+#ifndef __MINGW32__
#include <gdk-pixbuf/gdk-pixbuf-loader.h>
+#endif
#include "llist.h"
struct ay_image_wnd {
GtkWidget *window;
GtkWidget *pixmap;
+#ifndef __MINGW32__
GdkPixbufLoader *loader;
+#endif
int tag;
};
@@ -114,6 +118,7 @@
#include <stdio.h>
int ay_image_window_add_data(int tag, const unsigned char *buf, int count, int
new)
{
+#ifndef __MINGW32__
struct ay_image_wnd * aiw = get_image_wnd_by_tag(tag);
GdkPixbuf *pixbuf;
GdkPixmap *gdkpixmap;
@@ -147,6 +152,9 @@
gtk_widget_show(aiw->pixmap);
return 1;
+#else
+ return 0;
+#endif
}
void ay_image_window_close(int tag)
@@ -158,7 +166,9 @@
images = l_list_remove(images, aiw);
+#ifndef __MINGW32__
gdk_pixbuf_loader_close(aiw->loader);
+#endif
gtk_widget_destroy(aiw->window);
if(aiw->tag == last_tag)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/src image_window.c,1.1,1.2,
Edward L. Haletky <address@hidden> <=