Mercurial > pidgin.yaz
comparison src/away.c @ 1591:5c74d8b6cb57
[gaim-migrate @ 1601]
applet fixes for when it's "removed from panel"
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 16 Mar 2001 10:59:57 +0000 |
parents | 427e1409917c |
children | 4ad4dac68317 |
comparison
equal
deleted
inserted
replaced
1590:b4e54a752676 | 1591:5c74d8b6cb57 |
---|---|
220 struct gaim_connection *gc = NULL; | 220 struct gaim_connection *gc = NULL; |
221 int count = 0; | 221 int count = 0; |
222 | 222 |
223 #ifdef USE_APPLET | 223 #ifdef USE_APPLET |
224 remove_applet_away(); | 224 remove_applet_away(); |
225 if (imaway) | 225 if (imaway && applet) |
226 applet_widget_register_callback(APPLET_WIDGET(applet), | 226 applet_widget_register_callback(APPLET_WIDGET(applet), |
227 "away", _("Back"), (AppletCallbackFunc)do_im_back, NULL); | 227 "away", _("Back"), (AppletCallbackFunc)do_im_back, NULL); |
228 else if (imaway) | |
229 insert_applet_away(); | |
228 else | 230 else |
229 insert_applet_away(); | 231 return; |
230 #endif | 232 #endif |
231 | 233 |
232 if (prefs_away_list != NULL) { | 234 if (prefs_away_list != NULL) { |
233 gtk_list_clear_items(GTK_LIST(prefs_away_list), 0, -1); | 235 gtk_list_clear_items(GTK_LIST(prefs_away_list), 0, -1); |
234 while (awy) { | 236 while (awy) { |