Mercurial > pidgin
diff src/gtkconn.c @ 10643:868aafbe859b
[gaim-migrate @ 12153]
GtkGaimStatusBox, a new status selection widget.
It currently sucks. Pretty much just the UI code with enough copy/paste
code hacked in from gtkstatusselector to minimally work.
Minimally work provided you're only using protocol which have already been
updated to handle offline/online as statuses. Which I think is limited to
AIM and Yahoo! right now. Anyway, it's cool.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 27 Feb 2005 08:35:11 +0000 |
parents | 1a97d5e88d12 |
children | 55af3fa46329 |
line wrap: on
line diff
--- a/src/gtkconn.c Sat Feb 26 19:25:44 2005 +0000 +++ b/src/gtkconn.c Sun Feb 27 08:35:11 2005 +0000 @@ -29,6 +29,8 @@ #include "debug.h" #include "notify.h" #include "prefs.h" +#include "gtkblist.h" +#include "gtkstatusbox.h" #include "gtkstock.h" #include "util.h" @@ -39,24 +41,32 @@ static void gaim_gtk_connection_connect_progress(GaimConnection *gc, const char *text, size_t step, size_t step_count) { - /* SME - Pulse the statusselector */ + GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist(); + if (!gtkblist) + return; + gtk_gaim_status_box_set_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), + (gaim_connections_get_connecting() != NULL)); + gtk_gaim_status_box_pulse_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox)); } static void gaim_gtk_connection_connected(GaimConnection *gc) { - -#if 0 /* XXX CORE/UI */ - do_away_menu(); -#endif + GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist(); + if (!gtkblist) + return; + gtk_gaim_status_box_set_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), + (gaim_connections_get_connecting() != NULL)); gaim_gtk_blist_update_protocol_actions(); } static void gaim_gtk_connection_disconnected(GaimConnection *gc) { -#if 0 /* XXX CORE/UI */ - do_away_menu(); -#endif + GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist(); + if (!gtkblist) + return; + gtk_gaim_status_box_set_connecting(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), + (gaim_connections_get_connecting() != NULL)); gaim_gtk_blist_update_protocol_actions(); if (gaim_connections_get_all() != NULL)