pidgin/purple-plugin-pack

fixed warnings in splitter

2013-04-07, Gary Kramlich
cca84690a1cb
Parents e46bfbb16c6c
Children 85f983e21894
fixed warnings in splitter
--- a/splitter/splitter.c Sun Apr 07 18:12:21 2013 -0500
+++ b/splitter/splitter.c Sun Apr 07 18:15:26 2013 -0500
@@ -231,15 +231,7 @@
#ifdef _WIN32
return pango_win32_get_context();
#else
- PangoContext *context = NULL;
- PangoFontMap *fontmap = pango_cairo_font_map_get_default();
-
- context =
- pango_cairo_font_map_create_context(PANGO_CAIRO_FONT_MAP(fontmap));
-
- g_object_unref(G_OBJECT(fontmap));
-
- return context;
+ return pango_context_new();
#endif
}
@@ -339,10 +331,8 @@
GQueue *slices, *messages;
message_slice *slice;
char *stripped_message, *msg;
- gint stripped_len;
stripped_message = purple_markup_strip_html(message);
- stripped_len = strlen(stripped_message);
messages = g_queue_new();
slices = get_message_slices(stripped_message);