comparison src/browser.c @ 1267:9cff8ff01d37

[gaim-migrate @ 1277] WHAT THE FUCK. Why do people use goto? It pisses me off. To no end. Let me say right now, if anyone submits a patch that has a goto in it, they'll probably be very ridiculed, possibly publicly, before i put them on my block list and refuse to accept any patches from them. Ever. Even if they don't have gotos in them. You can't excuse a goto. Ever. X-Chat has them all over. Read src/common/inbound.c. It made me do no fewer than three full-body shivers. Oh yeah, and i moved blist files from %s.blist to %d.blist. gaim will take care of moving it for you. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 14 Dec 2000 13:22:58 +0000
parents b5783215b245
children 2d5fef1f986d
comparison
equal deleted inserted replaced
1266:aac04affc65d 1267:9cff8ff01d37
396 if (event->type == GDK_DESTROY && event->any.window == window) { 396 if (event->type == GDK_DESTROY && event->any.window == window) {
397 397
398 /* Print to warn user... */ 398 /* Print to warn user... */
399 debug_printf("%s: window 0x%x was destroyed.\n", progname, (unsigned int)window); 399 debug_printf("%s: window 0x%x was destroyed.\n", progname, (unsigned int)window);
400 result = 6; 400 result = 6;
401 goto DONE; 401 done = True;
402 } else if (event->type == GDK_PROPERTY_NOTIFY && 402 } else if (event->type == GDK_PROPERTY_NOTIFY &&
403 event->property.state == GDK_PROPERTY_NEW_VALUE && 403 event->property.state == GDK_PROPERTY_NEW_VALUE &&
404 event->property.window == window && 404 event->property.window == window &&
405 event->property.atom == XA_MOZILLA_RESPONSE) { 405 event->property.atom == XA_MOZILLA_RESPONSE) {
406 GdkAtom actual_type; 406 GdkAtom actual_type;
469 MOZILLA_COMMAND_PROP ".)\n", progname, (unsigned int)window); 469 MOZILLA_COMMAND_PROP ".)\n", progname, (unsigned int)window);
470 } 470 }
471 gdk_event_free(event); 471 gdk_event_free(event);
472 } 472 }
473 473
474 DONE:
475
476 if (new_command) 474 if (new_command)
477 g_free(new_command); 475 g_free(new_command);
478 476
479 return result; 477 return result;
480 } 478 }