comparison src/dialogs.c @ 4236:9641bd9c79f5

[gaim-migrate @ 4482] Hi there. Me again. A small patch from Mr. Reisner that makes the rename buddy dialog and jabber's vcard dialog (set jabber info) dialog buttons follow the gnome HIG. Thank you thank you. Pizza pizza. Changes to oscar.c... Make some debug_printf's not i18nish. 1) They don't really help us if they're in another language. 2) Translators have enough strings as it is I made a few more of the ICQ auth dialogs show ##### (alias) instead of just #####. Change how some data in ssi.c is allocated/freed. It's a cleaner implementation this way, but maybe just a little slower. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 08 Jan 2003 01:37:11 +0000
parents a614423c648f
children cd84b0fd63fc
comparison
equal deleted inserted replaced
4235:cba92ec56248 4236:9641bd9c79f5
4462 gtk_widget_grab_focus(name_entry); 4462 gtk_widget_grab_focus(name_entry);
4463 4463
4464 bbox = gtk_hbox_new(FALSE, 5); 4464 bbox = gtk_hbox_new(FALSE, 5);
4465 gtk_box_pack_start(GTK_BOX(mainbox), bbox, FALSE, FALSE, 0); 4465 gtk_box_pack_start(GTK_BOX(mainbox), bbox, FALSE, FALSE, 0);
4466 4466
4467 button = picture_button(rename_bud_dialog, _("Cancel"), cancel_xpm);
4468 gtk_box_pack_end(GTK_BOX(bbox), button, FALSE, FALSE, 0);
4469 g_signal_connect(GTK_OBJECT(button), "clicked",
4470 G_CALLBACK(destroy_dialog), rename_bud_dialog);
4471
4472 button = picture_button(rename_bud_dialog, _("OK"), ok_xpm); 4467 button = picture_button(rename_bud_dialog, _("OK"), ok_xpm);
4473 gtk_object_set_user_data(GTK_OBJECT(button), b); 4468 gtk_object_set_user_data(GTK_OBJECT(button), b);
4474 gtk_box_pack_end(GTK_BOX(bbox), button, FALSE, FALSE, 0); 4469 gtk_box_pack_end(GTK_BOX(bbox), button, FALSE, FALSE, 0);
4475 g_signal_connect(GTK_OBJECT(button), "clicked", 4470 g_signal_connect(GTK_OBJECT(button), "clicked",
4476 G_CALLBACK(do_rename_buddy), name_entry); 4471 G_CALLBACK(do_rename_buddy), name_entry);
4472
4473 button = picture_button(rename_bud_dialog, _("Cancel"), cancel_xpm);
4474 gtk_box_pack_end(GTK_BOX(bbox), button, FALSE, FALSE, 0);
4475 g_signal_connect(GTK_OBJECT(button), "clicked",
4476 G_CALLBACK(destroy_dialog), rename_bud_dialog);
4477 } 4477 }
4478 4478
4479 gtk_widget_show_all(rename_bud_dialog); 4479 gtk_widget_show_all(rename_bud_dialog);
4480 } 4480 }
4481 4481
5204 5204
5205 hbox = gtk_hbox_new(FALSE, 0); 5205 hbox = gtk_hbox_new(FALSE, 0);
5206 gtk_box_pack_start(GTK_BOX (vbox), hbox, FALSE, FALSE, 5); 5206 gtk_box_pack_start(GTK_BOX (vbox), hbox, FALSE, FALSE, 5);
5207 gtk_widget_show(hbox); 5207 gtk_widget_show(hbox);
5208 5208
5209 button = picture_button(b->window, _("Save"), save_xpm);
5210 g_signal_connect(GTK_OBJECT (button), "clicked",
5211 G_CALLBACK (b->ok), (gpointer) b);
5212 gtk_box_pack_end(GTK_BOX (hbox), button, FALSE, FALSE, 5);
5213 gtk_widget_show(button);
5214
5209 button = picture_button(b->window, _("Cancel"), cancel_xpm); 5215 button = picture_button(b->window, _("Cancel"), cancel_xpm);
5210 5216
5211 /* Let "destroy handling" (set above) handle cleanup */ 5217 /* Let "destroy handling" (set above) handle cleanup */
5212 g_signal_connect_swapped(GTK_OBJECT (button), "clicked", 5218 g_signal_connect_swapped(GTK_OBJECT (button), "clicked",
5213 G_CALLBACK (gtk_widget_destroy), GTK_OBJECT (b->window)); 5219 G_CALLBACK (gtk_widget_destroy), GTK_OBJECT (b->window));
5214 gtk_box_pack_end(GTK_BOX (hbox), button, FALSE, FALSE, 5);
5215 gtk_widget_show(button);
5216
5217 button = picture_button(b->window, _("Save"), save_xpm);
5218 g_signal_connect(GTK_OBJECT (button), "clicked",
5219 G_CALLBACK (b->ok), (gpointer) b);
5220 gtk_box_pack_end(GTK_BOX (hbox), button, FALSE, FALSE, 5); 5220 gtk_box_pack_end(GTK_BOX (hbox), button, FALSE, FALSE, 5);
5221 gtk_widget_show(button); 5221 gtk_widget_show(button);
5222 5222
5223 gtk_widget_show(vbox); 5223 gtk_widget_show(vbox);
5224 gtk_widget_show(b->window); 5224 gtk_widget_show(b->window);