diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-23 00:28:38 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-23 22:09:42 +0800 |
commit | a7b6b344618cceca174eea62954373edf84543ac (patch) | |
tree | 02150e3b92b1e995504795a700b046d8f9712931 /src | |
parent | f4e6cbe11974883a3883536461c0be08f75cdd39 (diff) | |
download | gsoc2013-empathy-a7b6b344618cceca174eea62954373edf84543ac.tar gsoc2013-empathy-a7b6b344618cceca174eea62954373edf84543ac.tar.gz gsoc2013-empathy-a7b6b344618cceca174eea62954373edf84543ac.tar.bz2 gsoc2013-empathy-a7b6b344618cceca174eea62954373edf84543ac.tar.lz gsoc2013-empathy-a7b6b344618cceca174eea62954373edf84543ac.tar.xz gsoc2013-empathy-a7b6b344618cceca174eea62954373edf84543ac.tar.zst gsoc2013-empathy-a7b6b344618cceca174eea62954373edf84543ac.zip |
empathy.c: document how the reference on the newly created EmpathyChat is managed
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/empathy.c b/src/empathy.c index 9fddda22e..69210760e 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -118,9 +118,16 @@ dispatch_cb (EmpathyDispatcher *dispatcher, } if (chat) - empathy_chat_set_tp_chat (chat, tp_chat); + { + empathy_chat_set_tp_chat (chat, tp_chat); + } else - chat = empathy_chat_new (tp_chat); + { + chat = empathy_chat_new (tp_chat); + /* empathy_chat_new returns a floating reference as EmpathyChat is + * a GtkWidget. This reference will be taken by a container + * (a GtkNotebook) when we'll call empathy_chat_window_present_chat */ + } empathy_chat_window_present_chat (chat); |