comparison src/dialogs.c @ 4371:8299114f5693

[gaim-migrate @ 4637] Removing the img handler stuff that used to be used in the profiles. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 21 Jan 2003 00:06:59 +0000
parents 5fb47ec9bfe4
children 00f4fa7a93ff
comparison
equal deleted inserted replaced
4370:d856987c72ca 4371:8299114f5693
2393 info_dlgs = g_slist_remove(info_dlgs, d); 2393 info_dlgs = g_slist_remove(info_dlgs, d);
2394 g_free(d->who); 2394 g_free(d->who);
2395 g_free(d); 2395 g_free(d);
2396 } 2396 }
2397 2397
2398 gchar **info_img_handler(gchar *url)
2399 {
2400 if (!g_strcasecmp(url, "free_icon.gif"))
2401 return free_icon_xpm;
2402 if (!g_strcasecmp(url, "aol_icon.gif"))
2403 return aol_icon_xpm;
2404 if (!g_strcasecmp(url, "dt_icon.gif"))
2405 return dt_icon_xpm;
2406 if (!g_strcasecmp(url, "admin_icon.gif"))
2407 return admin_icon_xpm;
2408 if (!g_strcasecmp(url, "ab_icon.gif"))
2409 return ab_xpm;
2410 if (!g_strcasecmp(url, "wireless_icon.gif"))
2411 return wireless_icon_xpm;
2412 if (!g_strcasecmp(url, "icq_icon.gif"))
2413 return icon_online_xpm;
2414 return NULL;
2415 }
2416
2417 /* if away is 0, show regardless and try to get away message 2398 /* if away is 0, show regardless and try to get away message
2418 * 1, don't show if regular info isn't shown 2399 * 1, don't show if regular info isn't shown
2419 * 2, show regardless but don't try to get away message 2400 * 2, show regardless but don't try to get away message
2420 * 2401 *
2421 * i wish this were my client. if i were i wouldn't have to deal with this shit. 2402 * i wish this were my client. if i were i wouldn't have to deal with this shit.
2459 2440
2460 text = gtk_imhtml_new(NULL, NULL); 2441 text = gtk_imhtml_new(NULL, NULL);
2461 b->text = text; 2442 b->text = text;
2462 gtk_container_add(GTK_CONTAINER(sw), text); 2443 gtk_container_add(GTK_CONTAINER(sw), text);
2463 gtk_widget_set_usize(sw, 300, 250); 2444 gtk_widget_set_usize(sw, 300, 250);
2464 gtk_imhtml_set_img_handler(GTK_IMHTML(text), info_img_handler);
2465 gaim_setup_imhtml(text); 2445 gaim_setup_imhtml(text);
2466 2446
2467 ok = picture_button(b->window, _("OK"), ok_xpm); 2447 ok = picture_button(b->window, _("OK"), ok_xpm);
2468 g_signal_connect_swapped(GTK_OBJECT(ok), "clicked", G_CALLBACK(gtk_widget_destroy), 2448 g_signal_connect_swapped(GTK_OBJECT(ok), "clicked", G_CALLBACK(gtk_widget_destroy),
2469 GTK_OBJECT(b->window)); 2449 GTK_OBJECT(b->window));