File gossip-0.31.patch of Package gossip
--- libgossip/gossip-chatroom.c.orig 2008-08-05 01:54:40.000000000 +0200
+++ libgossip/gossip-chatroom.c 2008-08-05 02:11:07.000000000 +0200
@@ -25,6 +25,27 @@
#include <glib.h>
#include <glib/gi18n.h>
+#if GLIB_CHECK_VERSION (2,14,0)
+/* Nothing */
+#else
+inline static void list_keys (gpointer key, gpointer value, GList **keys)
+{
+ *keys = g_list_append (*keys, key);
+}
+
+inline static void list_values (gpointer key, gpointer value, GList **values)
+{
+ *values = g_list_append (*values, key);
+}
+
+inline static GList* g_hash_table_get_keys (GHashTable *hash)
+{
+ GList *keys = NULL;
+ g_hash_table_foreach (hash, (GHFunc)list_values, &keys);
+ return keys;
+}
+#endif
+
#include "gossip-chatroom.h"
#include "gossip-utils.h"
#include "gossip-jid.h"
--- libgossip/gossip-contact-manager.c.orig 2008-08-05 02:11:16.000000000 +0200
+++ libgossip/gossip-contact-manager.c 2008-08-05 02:23:01.000000000 +0200
@@ -27,6 +27,8 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
+#include <glib.h>
+
#include "gossip-session.h"
#include "gossip-debug.h"
#include "gossip-jabber-utils.h"
@@ -37,6 +39,27 @@
#include "libgossip-marshal.h"
+#if GLIB_CHECK_VERSION (2,14,0)
+/* Nothing */
+#else
+inline static void list_keys (gpointer key, gpointer value, GList **keys)
+{
+ *keys = g_list_append (*keys, key);
+}
+
+inline static void list_values (gpointer key, gpointer value, GList **values)
+{
+ *values = g_list_append (*values, key);
+}
+
+inline static GList* g_hash_table_get_keys (GHashTable *hash)
+{
+ GList *keys = NULL;
+ g_hash_table_foreach (hash, (GHFunc)list_values, &keys);
+ return keys;
+}
+#endif
+
#define DEBUG_DOMAIN "ContactManager"
#define CONTACTS_XML_FILENAME "contacts.xml"
=============================================================================
--- src/gossip-presence-chooser.c.orig 2008-07-11 16:27:36.000000000 +0200
+++ src/gossip-presence-chooser.c 2008-08-05 02:09:09.000000000 +0200
@@ -986,11 +986,15 @@
layout = gtk_label_get_layout (GTK_LABEL (priv->label));
+#if GTK_CHECK_VERSION (2,12,0)
if (pango_layout_is_ellipsized (layout)) {
gtk_tooltips_enable (priv->tooltips);
} else {
gtk_tooltips_disable (priv->tooltips);
}
+#else
+ gtk_tooltips_enable(priv->tooltips);
+#endif
}
GtkWidget *