Mercurial > pidgin
changeset 4354:dd6671b5378c
[gaim-migrate @ 4619]
application should not exit when the login/main window is closed if the docklet is loaded...
Thanks, Nicol?s Lichtmaier (niqueco)
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 20 Jan 2003 03:13:50 +0000 |
parents | 539cccfffa46 |
children | 33e5c088346b |
files | src/aim.c |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aim.c Mon Jan 20 00:49:52 2003 +0000 +++ b/src/aim.c Mon Jan 20 03:13:50 2003 +0000 @@ -268,6 +268,17 @@ return tmp; } +static void login_window_closed(GtkWidget *w, GdkEvent *ev, gpointer d) +{ + if(docklet_count) { +#if _WIN32 + wgaim_systray_minimize(mainwindow); +#endif + gtk_widget_hide(mainwindow); + } else + do_quit(); +} + void show_login() { GdkPixbuf *icon; @@ -294,7 +305,7 @@ gdk_window_set_group(mainwindow->window, mainwindow->window); gtk_container_set_border_width(GTK_CONTAINER(mainwindow), 5); g_signal_connect(G_OBJECT(mainwindow), "delete_event", - G_CALLBACK(do_quit), mainwindow); + G_CALLBACK(login_window_closed), mainwindow); icon = gaim_pixbuf(NULL, "gaim.png");