Mercurial > pidgin
changeset 5584:cade2082f760
[gaim-migrate @ 5988]
(01:09:43) LSchiere: Robot101: you still don't have the docklet compiling
(01:10:05) Robot101: http://people.debian.org/~robot101/docklet-ping.diff
(01:10:59) LSchiere: commit message?
(01:11:15) Sean: why bother?
(01:11:27) Robot101: yes
(01:11:30) Sean: It still doesn't work.
(01:11:34) Robot101: that's why I didn't ask anyone to commit that yet. =)
(01:11:37) Robot101: it will work
(01:11:50) Robot101: it will just not show connecting icons or an auto-login menu entry
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 31 May 2003 05:12:24 +0000 |
parents | e46efd264489 |
children | f6650bfe4f51 |
files | plugins/docklet/docklet.c |
diffstat | 1 files changed, 22 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/docklet/docklet.c Sat May 31 04:56:12 2003 +0000 +++ b/plugins/docklet/docklet.c Sat May 31 05:12:24 2003 +0000 @@ -86,7 +86,10 @@ switch (status) { case offline: case offline_connecting: +/* XXX CHIP KILLED AUTO CONNECTING */ +#if 0 gaim_new_item_from_stock(menu, _("Auto-login"), GAIM_STOCK_SIGN_ON, G_CALLBACK(auto_login), NULL, 0, 0, NULL); +#endif break; default: gaim_new_item_from_stock(menu, _("New Message.."), GAIM_STOCK_IM, G_CALLBACK(show_im_dialog), NULL, 0, 0, NULL); @@ -246,7 +249,7 @@ oldstatus = status; - if (connections) { + if (gaim_connections_get_all()) { if (unread_message_queue) { status = online_pending; } else if (awaymessage) { @@ -255,17 +258,26 @@ } else { status = away; } +/* XXX Chip killed my dog... */ +#if 0 } else if (connecting_count) { status = online_connecting; +#endif } else { status = online; } } else { +/* XXX ... and my pet goldfish ... */ +#if 0 if (connecting_count) { status = offline_connecting; } else { +#endif status = offline; +/* XXX ... both of them. */ +#if 0 } +#endif } /* update the icon if we changed status */ @@ -346,27 +358,27 @@ return FALSE; /* for when we're called by the glib idle handler */ } -static void gaim_signon(struct gaim_connection *gc, void *data) { +static void gaim_signon(GaimConnection *gc, void *data) { docklet_update_status(); } -static void gaim_signoff(struct gaim_connection *gc, void *data) { +static void gaim_signoff(GaimConnection *gc, void *data) { /* do this when idle so that if the prpl was connecting and was cancelled, we register that connecting_count has returned to 0 */ g_idle_add(docklet_update_status, &docklet); } -static void gaim_connecting(struct gaim_account *account, void *data) { +static void gaim_connecting(GaimAccount *account, void *data) { docklet_update_status(); } -static void gaim_away(struct gaim_connection *gc, char *state, char *message, void *data) { +static void gaim_away(GaimConnection *gc, char *state, char *message, void *data) { /* we only support global away. this is the way it is, ok? */ docklet_update_status(); } -static void gaim_im_recv(struct gaim_connection *gc, char **who, char **what, void *data) { +static void gaim_im_recv(GaimConnection *gc, char **who, char **what, void *data) { /* if message queuing while away is enabled, this event could be the first message so we need to see if the status (and hence icon) needs changing. do this when idle so that all message processing is completed, queuing @@ -374,16 +386,16 @@ g_idle_add(docklet_update_status, &docklet); } -/* static void gaim_buddy_signon(struct gaim_connection *gc, char *who, void *data) { +/* static void gaim_buddy_signon(GaimConnection *gc, char *who, void *data) { } -static void gaim_buddy_signoff(struct gaim_connection *gc, char *who, void *data) { +static void gaim_buddy_signoff(GaimConnection *gc, char *who, void *data) { } -static void gaim_buddy_away(struct gaim_connection *gc, char *who, void *data) { +static void gaim_buddy_away(GaimConnection *gc, char *who, void *data) { } -static void gaim_buddy_back(struct gaim_connection *gc, char *who, void *data) { +static void gaim_buddy_back(GaimConnection *gc, char *who, void *data) { } static void gaim_new_conversation(char *who, void *data) {