Mercurial > pidgin.yaz
comparison src/gtkaccount.c @ 6485:70d5122bc3ff
[gaim-migrate @ 6999]
Removed the old event system and replaced it with a much better signal
system. There will most likely be some bugs in this, but it seems to be
working for now. Plugins can now generate their own signals, and other
plugins can find those plugins and connect to them. This could give
plugins a form of IPC. It's also useful for other things. It's rather
flexible, except for the damn marshalling, but there's no way around that
that I or the glib people can see.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 18 Aug 2003 01:03:43 +0000 |
parents | 8f94cce8faa5 |
children | 0473a28ce807 |
comparison
equal
deleted
inserted
replaced
6484:5ced8e111473 | 6485:70d5122bc3ff |
---|---|
3 * @ingroup gtkui | 3 * @ingroup gtkui |
4 * | 4 * |
5 * gaim | 5 * gaim |
6 * | 6 * |
7 * Copyright (C) 2002-2003, Christian Hammond <chipx86@gnupdate.org> | 7 * Copyright (C) 2002-2003, Christian Hammond <chipx86@gnupdate.org> |
8 * | 8 * |
9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
10 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
11 * the Free Software Foundation; either version 2 of the License, or | 11 * the Free Software Foundation; either version 2 of the License, or |
12 * (at your option) any later version. | 12 * (at your option) any later version. |
13 * | 13 * |
24 | 24 |
25 #include "account.h" | 25 #include "account.h" |
26 #include "accountopt.h" | 26 #include "accountopt.h" |
27 #include "core.h" | 27 #include "core.h" |
28 #include "debug.h" | 28 #include "debug.h" |
29 #include "event.h" | |
30 #include "plugin.h" | 29 #include "plugin.h" |
31 #include "prefs.h" | 30 #include "prefs.h" |
32 #include "request.h" | 31 #include "request.h" |
32 #include "signals.h" | |
33 #include "util.h" | 33 #include "util.h" |
34 | 34 |
35 #include "gaim-disclosure.h" | 35 #include "gaim-disclosure.h" |
36 #include "gtkaccount.h" | 36 #include "gtkaccount.h" |
37 #include "gtkblist.h" | 37 #include "gtkblist.h" |
1819 | 1819 |
1820 g_signal_connect(G_OBJECT(button), "clicked", | 1820 g_signal_connect(G_OBJECT(button), "clicked", |
1821 G_CALLBACK(close_accounts_cb), dialog); | 1821 G_CALLBACK(close_accounts_cb), dialog); |
1822 | 1822 |
1823 /* Setup some gaim signal handlers. */ | 1823 /* Setup some gaim signal handlers. */ |
1824 gaim_signal_connect(dialog, event_signon, signed_on_off_cb, dialog); | 1824 gaim_signal_connect(gaim_connections_get_handle(), "signed-on", |
1825 gaim_signal_connect(dialog, event_signoff, signed_on_off_cb, dialog); | 1825 dialog, GAIM_CALLBACK(signed_on_off_cb), dialog); |
1826 gaim_signal_connect(gaim_connections_get_handle(), "signed-off", | |
1827 dialog, GAIM_CALLBACK(signed_on_off_cb), dialog); | |
1826 | 1828 |
1827 gtk_widget_show(win); | 1829 gtk_widget_show(win); |
1828 } | 1830 } |
1829 | 1831 |
1830 void | 1832 void |