Mercurial > pidgin
comparison src/aim.c @ 4082:4b04ecb3eb97
[gaim-migrate @ 4297]
(22:54:38) Robot101: * Make sure prefs are saved before plugins are removed, and not afterwards.
(22:54:59) Robot101: * Move do_quit() into aim.c and make sure everything appropriate uses it.
(22:55:12) Robot101: * Remove duplicated cancel_login for closing the main window, use do_quit instead.
(22:55:49) Robot101: * Remove uncalled code pertaining to closing the about window from when it was called via gaim -v.
(22:56:06) LSchiere: what's this in sounds?
(22:56:29) Robot101: * Add correct ifdefs to prefs so only compiled-in sound methods are shown.
(22:56:34) LSchiere: if you broke my sounds...
(22:57:07) Robot101: * Remove unused sound order data, and clarify comments and debug output.
(22:57:56) Robot101: * Remove duplicated check which is performed at the start of play_file anyway.
(22:58:03) Robot101: that's the lot
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Mon, 16 Dec 2002 03:58:54 +0000 |
| parents | 3ccbdf8e7f8d |
| children | 9c31ddae80a1 |
comparison
equal
deleted
inserted
replaced
| 4081:b35cf600fe30 | 4082:4b04ecb3eb97 |
|---|---|
| 99 SIGPIPE, | 99 SIGPIPE, |
| 100 -1 | 100 -1 |
| 101 }; | 101 }; |
| 102 #endif | 102 #endif |
| 103 | 103 |
| 104 | 104 void do_quit() |
| 105 void cancel_logon(void) | 105 { |
| 106 { | 106 /* captain's log, stardate... */ |
| 107 system_log(log_quit, NULL, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); | |
| 108 | |
| 109 /* the self destruct sequence has been initiated */ | |
| 110 plugin_event(event_quit); | |
| 111 | |
| 112 /* transmission ends */ | |
| 113 signoff_all(); | |
| 114 | |
| 115 /* record what we have before we blow it away... */ | |
| 116 save_prefs(); | |
| 117 | |
| 107 #ifdef GAIM_PLUGINS | 118 #ifdef GAIM_PLUGINS |
| 108 /* first we tell those who have requested it we're quitting */ | 119 /* jettison cargo */ |
| 109 plugin_event(event_quit); | |
| 110 | |
| 111 /* then we remove everyone in a mass suicide */ | |
| 112 remove_all_plugins(); | 120 remove_all_plugins(); |
| 113 #endif /* GAIM_PLUGINS */ | 121 #endif |
| 122 | |
| 114 #ifdef USE_PERL | 123 #ifdef USE_PERL |
| 124 /* yup, perl too */ | |
| 115 perl_end(); | 125 perl_end(); |
| 116 #endif | 126 #endif |
| 117 | 127 |
| 118 save_prefs(); | 128 /* and end it all... */ |
| 119 | |
| 120 gtk_main_quit(); | 129 gtk_main_quit(); |
| 121 } | 130 } |
| 122 | 131 |
| 123 static int snd_tmout; | 132 static int snd_tmout; |
| 124 int logins_not_muted = 1; | 133 int logins_not_muted = 1; |
| 269 gtk_window_set_title(GTK_WINDOW(mainwindow), _("Gaim - Login")); | 278 gtk_window_set_title(GTK_WINDOW(mainwindow), _("Gaim - Login")); |
| 270 gtk_widget_realize(mainwindow); | 279 gtk_widget_realize(mainwindow); |
| 271 gdk_window_set_group(mainwindow->window, mainwindow->window); | 280 gdk_window_set_group(mainwindow->window, mainwindow->window); |
| 272 gtk_container_set_border_width(GTK_CONTAINER(mainwindow), 5); | 281 gtk_container_set_border_width(GTK_CONTAINER(mainwindow), 5); |
| 273 gtk_signal_connect(GTK_OBJECT(mainwindow), "delete_event", | 282 gtk_signal_connect(GTK_OBJECT(mainwindow), "delete_event", |
| 274 GTK_SIGNAL_FUNC(cancel_logon), mainwindow); | 283 GTK_SIGNAL_FUNC(do_quit), mainwindow); |
| 275 | 284 |
| 276 | 285 |
| 277 icon = gaim_pixbuf(NULL, "gaim.png"); | 286 icon = gaim_pixbuf(NULL, "gaim.png"); |
| 278 if (icon) { | 287 if (icon) { |
| 279 gtk_window_set_icon(GTK_WINDOW(mainwindow), icon); | 288 gtk_window_set_icon(GTK_WINDOW(mainwindow), icon); |
