/pidgin/main: 8565e8e51e38: Fix win32 build

Tomasz Wasilczyk twasilczyk at pidgin.im
Sat Apr 5 17:16:36 EDT 2014


Changeset: 8565e8e51e38fda257ad3d395b59f4c22acd673a
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-04-05 23:16 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/8565e8e51e38

Description:

Fix win32 build

diffstat:

 libpurple/Makefile.mingw                |  7 +++++++
 libpurple/plugins/perl/common/Purple.xs |  2 --
 libpurple/protocols/mxit/Makefile.mingw |  3 +--
 pidgin/Makefile.mingw                   |  5 ++---
 pidgin/gtkconv.c                        |  9 +++++++--
 pidgin/plugins/perl/common/Pidgin.xs    |  2 --
 6 files changed, 17 insertions(+), 11 deletions(-)

diffs (133 lines):

diff --git a/libpurple/Makefile.mingw b/libpurple/Makefile.mingw
--- a/libpurple/Makefile.mingw
+++ b/libpurple/Makefile.mingw
@@ -102,6 +102,7 @@ C_SRC =	\
 			media/enum-types.c \
 			mediamanager.c \
 			media.c \
+			memorypool.c \
 			mime.c \
 			nat-pmp.c \
 			network.c \
@@ -122,6 +123,11 @@ C_SRC =	\
 			server.c \
 			signals.c \
 			smiley.c \
+			smiley-custom.c \
+			smiley-list.c \
+			smiley-parser.c \
+			smiley-remote.c \
+			smiley-theme.c \
 			sound-theme-loader.c \
 			sound-theme.c \
 			sound.c \
@@ -132,6 +138,7 @@ C_SRC =	\
 			theme-loader.c \
 			theme-manager.c \
 			theme.c \
+			trie.c \
 			upnp.c \
 			util.c \
 			version.c \
diff --git a/libpurple/plugins/perl/common/Purple.xs b/libpurple/plugins/perl/common/Purple.xs
--- a/libpurple/plugins/perl/common/Purple.xs
+++ b/libpurple/plugins/perl/common/Purple.xs
@@ -31,7 +31,6 @@ PURPLE_PERL_BOOT_PROTO(SSL);
 PURPLE_PERL_BOOT_PROTO(SavedStatus);
 PURPLE_PERL_BOOT_PROTO(Serv);
 PURPLE_PERL_BOOT_PROTO(Signal);
-PURPLE_PERL_BOOT_PROTO(Smiley);
 PURPLE_PERL_BOOT_PROTO(Sound);
 PURPLE_PERL_BOOT_PROTO(Status);
 PURPLE_PERL_BOOT_PROTO(Stringref);
@@ -72,7 +71,6 @@ BOOT:
 	PURPLE_PERL_BOOT(SavedStatus);
 	PURPLE_PERL_BOOT(Serv);
 	PURPLE_PERL_BOOT(Signal);
-	PURPLE_PERL_BOOT(Smiley);
 	PURPLE_PERL_BOOT(Sound);
 	PURPLE_PERL_BOOT(Status);
 	PURPLE_PERL_BOOT(Stringref);
diff --git a/libpurple/protocols/mxit/Makefile.mingw b/libpurple/protocols/mxit/Makefile.mingw
--- a/libpurple/protocols/mxit/Makefile.mingw
+++ b/libpurple/protocols/mxit/Makefile.mingw
@@ -38,9 +38,8 @@ LIB_PATHS +=		-L$(GTK_TOP)/lib \
 ##  SOURCES, OBJECTS
 ##
 C_SRC =			actions.c \
-			aes.c \
 			chunk.c \
-			cipher.c \
+			cipher-mxit.c \
 			filexfer.c \
 			formcmds.c \
 			login.c \
diff --git a/pidgin/Makefile.mingw b/pidgin/Makefile.mingw
--- a/pidgin/Makefile.mingw
+++ b/pidgin/Makefile.mingw
@@ -89,11 +89,11 @@ PIDGIN_C_SRC =	\
 			gtkroomlist.c \
 			gtksavedstatuses.c \
 			gtkscrollbook.c \
-			gtksmiley.c \
+			gtksmiley-manager.c \
+			gtksmiley-theme.c \
 			gtksound.c \
 			gtkstatus-icon-theme.c \
 			gtkstatusbox.c \
-			gtkthemes.c \
 			gtkutils.c \
 			gtkwebview.c \
 			gtkwebviewtoolbar.c \
@@ -104,7 +104,6 @@ PIDGIN_C_SRC =	\
 			pidgin.c \
 			pidginstock.c \
 			pidgintooltip.c \
-			smileyparser.c \
 			win32/gtkwin32dep.c \
 			win32/untar.c \
 			win32/wspell.c
diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -6633,6 +6633,11 @@ pidgin_conv_write_smiley(GString *out, P
 {
 	gchar *escaped_shortcut;
 	const gchar *path = purple_smiley_get_path(smiley);
+	const gchar *path_prefix = "";
+
+#ifdef _WIN32
+	path_prefix = "file:///";
+#endif
 
 	escaped_shortcut = g_markup_escape_text(
 		purple_smiley_get_shortcut(smiley), -1);
@@ -6640,8 +6645,8 @@ pidgin_conv_write_smiley(GString *out, P
 	if (purple_smiley_is_ready(smiley) && path) {
 		g_string_append_printf(out,
 			"<img class=\"emoticon\" alt=\"%s\" title=\"%s\" "
-			"src=\"%s\" />", escaped_shortcut,
-			escaped_shortcut, path);
+			"src=\"%s%s\" />", escaped_shortcut,
+			escaped_shortcut, path_prefix, path);
 	} else if (purple_smiley_is_ready(smiley) && !path) {
 		PurpleStoredImage *img = purple_smiley_get_image(smiley);
 		int imgid = purple_imgstore_add_with_id(img);
diff --git a/pidgin/plugins/perl/common/Pidgin.xs b/pidgin/plugins/perl/common/Pidgin.xs
--- a/pidgin/plugins/perl/common/Pidgin.xs
+++ b/pidgin/plugins/perl/common/Pidgin.xs
@@ -28,7 +28,6 @@ PIDGIN_PERL_BOOT_PROTO(Session);
 #endif
 PIDGIN_PERL_BOOT_PROTO(Sound);
 PIDGIN_PERL_BOOT_PROTO(StatusBox);
-PIDGIN_PERL_BOOT_PROTO(Themes);
 PIDGIN_PERL_BOOT_PROTO(Utils);
 PIDGIN_PERL_BOOT_PROTO(Xfer);
 
@@ -57,6 +56,5 @@ BOOT:
 #endif
 	PIDGIN_PERL_BOOT(Sound);
 	PIDGIN_PERL_BOOT(StatusBox);
-	PIDGIN_PERL_BOOT(Themes);
 	PIDGIN_PERL_BOOT(Utils);
 	PIDGIN_PERL_BOOT(Xfer);



More information about the Commits mailing list