diff options
author | Chandni Verma <chandniverma2112@gmail.com> | 2011-02-14 10:11:30 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-15 16:20:22 +0800 |
commit | 2d295e9cc7b2ce7a173144624e7226765a125c65 (patch) | |
tree | 89bc069160bf6df363dbeb1c3312e4bb2ad0ea2a /libempathy/empathy-irc-network.c | |
parent | b3399c7cdfc007245179797e44f5edae1fc27dd3 (diff) | |
download | gsoc2013-empathy-2d295e9cc7b2ce7a173144624e7226765a125c65.tar gsoc2013-empathy-2d295e9cc7b2ce7a173144624e7226765a125c65.tar.gz gsoc2013-empathy-2d295e9cc7b2ce7a173144624e7226765a125c65.tar.bz2 gsoc2013-empathy-2d295e9cc7b2ce7a173144624e7226765a125c65.tar.lz gsoc2013-empathy-2d295e9cc7b2ce7a173144624e7226765a125c65.tar.xz gsoc2013-empathy-2d295e9cc7b2ce7a173144624e7226765a125c65.tar.zst gsoc2013-empathy-2d295e9cc7b2ce7a173144624e7226765a125c65.zip |
Reset network list button
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=642264
Diffstat (limited to 'libempathy/empathy-irc-network.c')
-rw-r--r-- | libempathy/empathy-irc-network.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/libempathy/empathy-irc-network.c b/libempathy/empathy-irc-network.c index d5b0bdcb9..68e071be8 100644 --- a/libempathy/empathy-irc-network.c +++ b/libempathy/empathy-irc-network.c @@ -206,7 +206,8 @@ empathy_irc_network_class_init (EmpathyIrcNetworkClass *klass) * EmpathyIrcNetwork::modified: * @network: the object that received the signal * - * Emitted when either a property or a server of the network is modified. + * Emitted when either a property or a server of the network is modified or + * when a network is activated. * */ signals[MODIFIED] = g_signal_new ( @@ -220,6 +221,24 @@ empathy_irc_network_class_init (EmpathyIrcNetworkClass *klass) } /** + * empathy_irc_network_activate: + * @self: the name of the network + * + * Activates a #EmpathyIrcNetwork. + * + */ +void +empathy_irc_network_activate (EmpathyIrcNetwork *self) +{ + g_return_if_fail (EMPATHY_IS_IRC_NETWORK (self)); + g_return_if_fail (self->dropped); + + self->dropped = FALSE; + + g_signal_emit (self, signals[MODIFIED], 0); +} + +/** * empathy_irc_network_new: * @name: the name of the network * |