#include "gossip-chat.h"
#include "gossip-chat-window.h"
-//#include "gossip-geometry.h"
+#include "gossip-geometry.h"
#include "gossip-preferences.h"
#include "gossip-spell.h"
//#include "gossip-spell-dialog.h"
GtkTooltips *tooltips;
guint composing_stop_timeout_id;
gboolean sensitive;
+ gchar *id;
/* Used to automatically shrink a window that has temporarily
* grown due to long input.
*/
g_object_unref (priv->tp_chat);
}
+ g_free (priv->id);
+
G_OBJECT_CLASS (gossip_chat_parent_class)->finalize (object);
}
gint w,
gint h)
{
- //FIXME: gossip_geometry_save_for_chat (chat, x, y, w, h);
+ gossip_geometry_save (gossip_chat_get_id (chat), x, y, w, h);
}
void
gint *w,
gint *h)
{
- //FIXME: gossip_geometry_load_for_chat (chat, x, y, w, h);
+ gossip_geometry_load (gossip_chat_get_id (chat), x, y, w, h);
}
void
g_object_unref (priv->tp_chat);
}
+ g_free (priv->id);
priv->tp_chat = g_object_ref (tp_chat);
+ priv->id = g_strdup (empathy_tp_chat_get_id (tp_chat));
g_signal_connect (tp_chat, "message-received",
G_CALLBACK (chat_message_received_cb),
}
}
+const gchar *
+gossip_chat_get_id (GossipChat *chat)
+{
+ GossipChatPriv *priv;
+
+ priv = GET_PRIV (chat);
+
+ return priv->id;
+}
+
void
gossip_chat_clear (GossipChat *chat)
{