comparison src/buddy.c @ 4833:a6960b4b0c9b

[gaim-migrate @ 5158] A fix for the bug described in patch 702766, filed by darkrain: "gaim still segfaults if you click on the docklet just after starting gaim in the account editor." https://sourceforge.net/tracker/index.php?func=detail&aid=702766&group_id=235&atid=300235 committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 19 Mar 2003 22:31:05 +0000
parents cd60c41e6e4a
children 0ed37c803503
comparison
equal deleted inserted replaced
4832:edfe778868e2 4833:a6960b4b0c9b
1368 } 1368 }
1369 } else if (connections) { 1369 } else if (connections) {
1370 /* we're logging in or something... do nothing */ 1370 /* we're logging in or something... do nothing */
1371 debug_printf("docklet_toggle called with connections but no blist!\n"); 1371 debug_printf("docklet_toggle called with connections but no blist!\n");
1372 } else { 1372 } else {
1373 if (GTK_WIDGET_VISIBLE(mainwindow)) { 1373 if (mainwindow && GTK_WIDGET_VISIBLE(mainwindow)) {
1374 if (GAIM_WINDOW_ICONIFIED(mainwindow)) { 1374 if (GAIM_WINDOW_ICONIFIED(mainwindow)) {
1375 gtk_window_present(GTK_WINDOW(mainwindow)); 1375 gtk_window_present(GTK_WINDOW(mainwindow));
1376 } else { 1376 } else {
1377 #if _WIN32 1377 #if _WIN32
1378 wgaim_systray_minimize(mainwindow); 1378 wgaim_systray_minimize(mainwindow);
1381 } 1381 }
1382 } else { 1382 } else {
1383 #if _WIN32 1383 #if _WIN32
1384 wgaim_systray_maximize(mainwindow); 1384 wgaim_systray_maximize(mainwindow);
1385 #endif 1385 #endif
1386 gtk_window_present(GTK_WINDOW(mainwindow)); 1386 show_login();
1387 } 1387 }
1388 } 1388 }
1389 } 1389 }
1390 1390
1391 void gaim_gtk_blist_docklet_add() 1391 void gaim_gtk_blist_docklet_add()