Mercurial > pidgin.yaz
comparison src/aim.c @ 746:5a908dd5cfc4
[gaim-migrate @ 756]
i finally got pissed off enough at gnome_applet_mgr.c that i redid it
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 23 Aug 2000 04:14:47 +0000 |
parents | e46cc3c6ff26 |
children | 531c58849b28 |
comparison
equal
deleted
inserted
replaced
745:d693b83e4933 | 746:5a908dd5cfc4 |
---|---|
83 gboolean running = FALSE; /* whether or not we're currently trying to sign on */ | 83 gboolean running = FALSE; /* whether or not we're currently trying to sign on */ |
84 | 84 |
85 void cancel_logon(void) | 85 void cancel_logon(void) |
86 { | 86 { |
87 #ifdef USE_APPLET | 87 #ifdef USE_APPLET |
88 set_applet_draw_closed(); | 88 applet_buddy_show = FALSE; |
89 AppletCancelLogon(); | 89 signoff(); |
90 gtk_widget_hide(mainwindow); | 90 gtk_widget_hide(mainwindow); |
91 #else | 91 #else |
92 #ifdef GAIM_PLUGINS | 92 #ifdef GAIM_PLUGINS |
93 GList *c; | 93 GList *c; |
94 struct gaim_callback *g; | 94 struct gaim_callback *g; |
197 | 197 |
198 for ( i = 0; i < strlen( g_screenname ); i++ ) | 198 for ( i = 0; i < strlen( g_screenname ); i++ ) |
199 g_screenname[i] = toupper( g_screenname[i] ); | 199 g_screenname[i] = toupper( g_screenname[i] ); |
200 | 200 |
201 #ifdef USE_APPLET | 201 #ifdef USE_APPLET |
202 set_applet_draw_closed(); | 202 set_user_state(signing_on); |
203 setUserState(signing_on); | |
204 #endif /* USE_APPLET */ | 203 #endif /* USE_APPLET */ |
205 | 204 |
206 if (running) return; | 205 if (running) return; |
207 running = TRUE; | 206 running = TRUE; |
208 | 207 |
229 snd_tmout = gtk_timeout_add(10000, (GtkFunction)sound_timeout, | 228 snd_tmout = gtk_timeout_add(10000, (GtkFunction)sound_timeout, |
230 NULL); | 229 NULL); |
231 } | 230 } |
232 | 231 |
233 #ifdef USE_APPLET | 232 #ifdef USE_APPLET |
234 setUserState(online); | 233 set_user_state(online); |
235 applet_widget_unregister_callback(APPLET_WIDGET(applet),"signon"); | 234 applet_widget_unregister_callback(APPLET_WIDGET(applet),"signon"); |
236 applet_widget_register_callback(APPLET_WIDGET(applet), | 235 applet_widget_register_callback(APPLET_WIDGET(applet), |
237 "signoff", | 236 "signoff", |
238 _("Signoff"), | 237 _("Signoff"), |
239 signoff, | 238 signoff, |
240 NULL); | 239 NULL); |
241 #endif /* USE_APPLET */ | 240 #endif /* USE_APPLET */ |
242 | 241 |
243 #ifdef GAIM_PLUGINS | 242 #ifdef GAIM_PLUGINS |
244 { | 243 { |
245 GList *c = callbacks; | 244 GList *c = callbacks; |
246 struct gaim_callback *g; | 245 struct gaim_callback *g; |
247 void (*function)(void *); | 246 void (*function)(void *); |
248 while (c) { | 247 while (c) { |
249 g = (struct gaim_callback *)c->data; | 248 g = (struct gaim_callback *)c->data; |
250 if (g->event == event_signon && g->function != NULL) { | 249 if (g->event == event_signon && g->function != NULL) { |
251 function = g->function; | 250 function = g->function; |
252 (*function)(g->data); | 251 (*function)(g->data); |
253 } | 252 } |
254 c = c->next; | 253 c = c->next; |
255 } | 254 } |
256 } | 255 } |
257 #endif /* GAIM_PLUGINS */ | 256 #endif /* GAIM_PLUGINS */ |
258 | 257 |
259 running = FALSE; | 258 running = FALSE; |
260 return; | 259 return; |