comparison src/dialogs.c @ 247:f6e8ea29b24f

[gaim-migrate @ 257] OSCAR: getting a user's info now displays in the dialog window as opposed to the debug window you can add people to your permit/deny list (but be warned - you will get a lot of noise if you do) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 20 May 2000 23:00:20 +0000
parents 7cdc778e6e55
children 5b28ef2b550e
comparison
equal deleted inserted replaced
246:2c5713cd9d8c 247:f6e8ea29b24f
1335 1335
1336 /*------------------------------------------------------------------------*/ 1336 /*------------------------------------------------------------------------*/
1337 /* The dialog for the info requests */ 1337 /* The dialog for the info requests */
1338 /*------------------------------------------------------------------------*/ 1338 /*------------------------------------------------------------------------*/
1339 1339
1340 void g_show_info(char *url) 1340 void g_show_info_text(char *info)
1341 { 1341 {
1342 GtkWidget *ok; 1342 GtkWidget *ok;
1343 GtkWidget *label; 1343 GtkWidget *label;
1344 GtkWidget *text; 1344 GtkWidget *text;
1345 GtkWidget *bbox; 1345 GtkWidget *bbox;
1346 GtkWidget *sw; 1346 GtkWidget *sw;
1347 char *url_text;
1348 1347
1349 struct info_dlg *b = g_new0(struct info_dlg, 1); 1348 struct info_dlg *b = g_new0(struct info_dlg, 1);
1350 1349
1351 b->window = gtk_window_new(GTK_WINDOW_DIALOG); 1350 b->window = gtk_window_new(GTK_WINDOW_DIALOG);
1352 dialogwindows = g_list_prepend(dialogwindows, b->window); 1351 dialogwindows = g_list_prepend(dialogwindows, b->window);
1380 1379
1381 gtk_widget_realize(b->window); 1380 gtk_widget_realize(b->window);
1382 aol_icon(b->window->window); 1381 aol_icon(b->window->window);
1383 gtk_widget_show_all(b->window); 1382 gtk_widget_show_all(b->window);
1384 1383
1385 url_text = grab_url(url); 1384 gtk_html_append_text(GTK_HTML(b->text), info, 0);
1386 gtk_html_append_text(GTK_HTML(b->text), url_text, 0); 1385 }
1386
1387 void g_show_info(char *url) {
1388 char *url_text = grab_url(url);
1389 g_show_info_text(url_text);
1387 g_free(url_text); 1390 g_free(url_text);
1388 } 1391 }
1389 1392
1390 /*------------------------------------------------------------------------*/ 1393 /*------------------------------------------------------------------------*/
1391 /* The dialog for adding to permit/deny */ 1394 /* The dialog for adding to permit/deny */