comparison src/browser.c @ 2372:2927c2c26fe6

[gaim-migrate @ 2385] reformatting. nothing else. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 27 Sep 2001 19:17:11 +0000
parents 33a3b6b903d9
children ad4a0b3f0032
comparison
equal deleted inserted replaced
2371:db02399a9ad7 2372:2927c2c26fe6
95 95
96 if (XGetWindowProperty(dpy, children[i], 96 if (XGetWindowProperty(dpy, children[i],
97 __SWM_VROOT, 0, 1, False, XA_WINDOW, 97 __SWM_VROOT, 0, 1, False, XA_WINDOW,
98 &actual_type, &actual_format, 98 &actual_type, &actual_format,
99 &nitems, &bytesafter, 99 &nitems, &bytesafter,
100 (unsigned char **)&newRoot) == Success && newRoot) { 100 (unsigned char **)&newRoot) == Success
101 && newRoot) {
101 root = *newRoot; 102 root = *newRoot;
102 break; 103 break;
103 } 104 }
104 } 105 }
105 if (children) 106 if (children)
458 done = True; 459 done = True;
459 } 460 }
460 461
461 if (data) 462 if (data)
462 g_free(data); 463 g_free(data);
463 } 464 } else if (event->type == GDK_PROPERTY_NOTIFY &&
464 else if (event->type == GDK_PROPERTY_NOTIFY && 465 event->property.window == window &&
465 event->property.window == window && 466 event->property.state == GDK_PROPERTY_DELETE &&
466 event->property.state == GDK_PROPERTY_DELETE && 467 event->property.atom == XA_MOZILLA_COMMAND) {
467 event->property.atom == XA_MOZILLA_COMMAND) {
468 debug_printf("%s: (server 0x%x has accepted " 468 debug_printf("%s: (server 0x%x has accepted "
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 }
607 607
608 if (strstr(web_command, "\"%s\"")) 608 if (strstr(web_command, "\"%s\""))
609 g_snprintf(command, sizeof(command), web_command, url); 609 g_snprintf(command, sizeof(command), web_command, url);
610 else if ((ms = strstr(web_command, "%s")) != NULL) { 610 else if ((ms = strstr(web_command, "%s")) != NULL) {
611 *ms = 0; 611 *ms = 0;
612 g_snprintf(command, sizeof(command), "%s\"%s\"%s", web_command, url, ms + 2); 612 g_snprintf(command, sizeof(command), "%s\"%s\"%s", web_command, url,
613 ms + 2);
613 } 614 }
614 615
615 args[0] = "sh"; 616 args[0] = "sh";
616 args[1] = "-c"; 617 args[1] = "-c";
617 args[2] = command; 618 args[2] = command;
665 void open_url(GtkWidget *w, char *url) 666 void open_url(GtkWidget *w, char *url)
666 { 667 {
667 } 668 }
668 669
669 670
670 #endif /* _WIN32 */ 671 #endif /* _WIN32 */