diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2007-04-27 04:51:09 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-04-27 04:51:09 +0800 |
commit | 69814b0fd3717aadde21b392c875033865903f07 (patch) | |
tree | 31af67384bdcdaacc5ea0bf23378dabe42f42474 /libempathy-gtk/gossip-chat.c | |
parent | 703a7db832de5d180a6880321fcee7919eb6094e (diff) | |
download | gsoc2013-empathy-69814b0fd3717aadde21b392c875033865903f07.tar gsoc2013-empathy-69814b0fd3717aadde21b392c875033865903f07.tar.gz gsoc2013-empathy-69814b0fd3717aadde21b392c875033865903f07.tar.bz2 gsoc2013-empathy-69814b0fd3717aadde21b392c875033865903f07.tar.lz gsoc2013-empathy-69814b0fd3717aadde21b392c875033865903f07.tar.xz gsoc2013-empathy-69814b0fd3717aadde21b392c875033865903f07.tar.zst gsoc2013-empathy-69814b0fd3717aadde21b392c875033865903f07.zip |
[darcs-to-svn @ Save/restore window geometry]
svn path=/trunk/; revision=6
Diffstat (limited to 'libempathy-gtk/gossip-chat.c')
-rw-r--r-- | libempathy-gtk/gossip-chat.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/libempathy-gtk/gossip-chat.c b/libempathy-gtk/gossip-chat.c index a60fc2896..f67c029be 100644 --- a/libempathy-gtk/gossip-chat.c +++ b/libempathy-gtk/gossip-chat.c @@ -43,7 +43,7 @@ #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" @@ -69,6 +69,7 @@ struct _GossipChatPriv { 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. */ @@ -1038,7 +1039,7 @@ gossip_chat_save_geometry (GossipChat *chat, 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 @@ -1048,7 +1049,7 @@ gossip_chat_load_geometry (GossipChat *chat, 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 @@ -1077,7 +1078,9 @@ gossip_chat_set_tp_chat (GossipChat *chat, 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), @@ -1096,6 +1099,16 @@ gossip_chat_set_tp_chat (GossipChat *chat, } } +const gchar * +gossip_chat_get_id (GossipChat *chat) +{ + GossipChatPriv *priv; + + priv = GET_PRIV (chat); + + return priv->id; +} + void gossip_chat_clear (GossipChat *chat) { |