comparison src/dialogs.c @ 976:2586b2a3725e

[gaim-migrate @ 986] warning works better, i hope :-P for every one fixme i get rid of i add 3, i swear committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 11 Oct 2000 04:30:26 +0000
parents 17ff662183b2
children 563c409e26a1
comparison
equal deleted inserted replaced
975:a45991891aba 976:2586b2a3725e
90 90
91 struct warning { 91 struct warning {
92 GtkWidget *window; 92 GtkWidget *window;
93 GtkWidget *anon; 93 GtkWidget *anon;
94 char *who; 94 char *who;
95 struct gaim_connection *gc;
95 }; 96 };
96 97
97 struct addbuddy { 98 struct addbuddy {
98 GtkWidget *window; 99 GtkWidget *window;
99 GtkWidget *combo; 100 GtkWidget *combo;
297 } 298 }
298 } 299 }
299 300
300 static void do_warn(GtkWidget *widget, struct warning *w) 301 static void do_warn(GtkWidget *widget, struct warning *w)
301 { 302 {
302 serv_warn(w->who, (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w->anon))) ? 303 serv_warn(w->gc, w->who, (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w->anon))) ?
303 1 : 0); 304 1 : 0);
304 305
305 destroy_dialog(NULL, w->window); 306 destroy_dialog(NULL, w->window);
306 } 307 }
307 308
308 309
309 void show_warn_dialog(char *who) 310 void show_warn_dialog(struct gaim_connection *gc, char *who)
310 { 311 {
311 GtkWidget *cancel; 312 GtkWidget *cancel;
312 GtkWidget *warn; 313 GtkWidget *warn;
313 GtkWidget *label; 314 GtkWidget *label;
314 GtkWidget *vbox; 315 GtkWidget *vbox;
355 label = gtk_label_new(_("Anonymous warnings are less harsh.")); 356 label = gtk_label_new(_("Anonymous warnings are less harsh."));
356 gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 5); 357 gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 5);
357 gtk_widget_show(label); 358 gtk_widget_show(label);
358 359
359 w->who = who; 360 w->who = who;
361 w->gc = gc;
360 362
361 gtk_container_add(GTK_CONTAINER(frame), vbox); 363 gtk_container_add(GTK_CONTAINER(frame), vbox);
362 364
363 gtk_box_pack_start(GTK_BOX(fbox), frame, FALSE, FALSE, 5); 365 gtk_box_pack_start(GTK_BOX(fbox), frame, FALSE, FALSE, 5);
364 gtk_box_pack_start(GTK_BOX(fbox), bbox, FALSE, FALSE, 5); 366 gtk_box_pack_start(GTK_BOX(fbox), bbox, FALSE, FALSE, 5);