comparison src/dialogs.c @ 483:1a9d2b345b79

[gaim-migrate @ 493] I tried to make some of the buttons more of a standard size. Who knows. Who cares. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Mon, 10 Jul 2000 06:59:44 +0000
parents 320c2f9c0315
children a9e485c388c4
comparison
equal deleted inserted replaced
482:cf6b2efaac35 483:1a9d2b345b79
434 gtk_container_add(GTK_CONTAINER(cancel), button_box); 434 gtk_container_add(GTK_CONTAINER(cancel), button_box);
435 435
436 /* End of Cancel Button */ 436 /* End of Cancel Button */
437 /* Put the buttons in the box */ 437 /* Put the buttons in the box */
438 438
439 gtk_widget_set_usize(warn, 75, 30);
440 gtk_widget_set_usize(cancel, 75, 30);
441
439 gtk_box_pack_start(GTK_BOX(bbox), warn, TRUE, TRUE, 5); 442 gtk_box_pack_start(GTK_BOX(bbox), warn, TRUE, TRUE, 5);
440 gtk_box_pack_end(GTK_BOX(bbox), cancel, TRUE, TRUE, 5); 443 gtk_box_pack_end(GTK_BOX(bbox), cancel, TRUE, TRUE, 5);
441 444
442 g_snprintf(buf, 127, _("Do you really want to warn %s?"), who); 445 g_snprintf(buf, 127, _("Do you really want to warn %s?"), who);
443 label = gtk_label_new(buf); 446 label = gtk_label_new(buf);
526 gtk_widget_show(icon_i); 529 gtk_widget_show(icon_i);
527 530
528 gtk_widget_show(button_box); 531 gtk_widget_show(button_box);
529 532
530 gtk_container_add(GTK_CONTAINER(close), button_box); 533 gtk_container_add(GTK_CONTAINER(close), button_box);
534 gtk_widget_set_usize(close, 75, 30);
531 gtk_widget_show(close); 535 gtk_widget_show(close);
532 536
533 /* End of Close Button */ 537 /* End of Close Button */
534 538
535 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(d)->action_area), 539 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(d)->action_area),
780 gtk_signal_connect(GTK_OBJECT(button), "clicked", 784 gtk_signal_connect(GTK_OBJECT(button), "clicked",
781 GTK_SIGNAL_FUNC(do_im), imentry); 785 GTK_SIGNAL_FUNC(do_im), imentry);
782 786
783 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); 787 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5);
784 788
789 gtk_widget_set_usize(button, 75, 30);
785 gtk_widget_show(button); 790 gtk_widget_show(button);
786 791
787 /* End of OK Button */ 792 /* End of OK Button */
788 793
789 /* Build Cancel Button */ 794 /* Build Cancel Button */
810 gtk_signal_connect(GTK_OBJECT(button), "clicked", 815 gtk_signal_connect(GTK_OBJECT(button), "clicked",
811 GTK_SIGNAL_FUNC(destroy_dialog), imdialog); 816 GTK_SIGNAL_FUNC(destroy_dialog), imdialog);
812 817
813 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); 818 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5);
814 819
820 gtk_widget_set_usize(button, 75, 30);
815 gtk_widget_show(button); 821 gtk_widget_show(button);
816 822
817 /* End of Cancel Button */ 823 /* End of Cancel Button */
818 824
819 label = gtk_label_new(_("IM who: ")); 825 label = gtk_label_new(_("IM who: "));
980 gtk_widget_show(button_box); 986 gtk_widget_show(button_box);
981 987
982 gtk_container_add(GTK_CONTAINER(cancel), button_box); 988 gtk_container_add(GTK_CONTAINER(cancel), button_box);
983 989
984 /* End of Cancel Button */ 990 /* End of Cancel Button */
991
992 gtk_widget_set_usize(add, 75, 30);
993 gtk_widget_set_usize(cancel, 75, 30);
985 994
986 gtk_box_pack_start(GTK_BOX(bbox), add, FALSE, FALSE, 5); 995 gtk_box_pack_start(GTK_BOX(bbox), add, FALSE, FALSE, 5);
987 gtk_box_pack_end(GTK_BOX(bbox), cancel, FALSE, FALSE, 5); 996 gtk_box_pack_end(GTK_BOX(bbox), cancel, FALSE, FALSE, 5);
988 997
989 frame = gtk_frame_new(NULL); 998 frame = gtk_frame_new(NULL);
1114 gtk_signal_connect(GTK_OBJECT(button), "clicked", 1123 gtk_signal_connect(GTK_OBJECT(button), "clicked",
1115 GTK_SIGNAL_FUNC(do_new_bp), b); 1124 GTK_SIGNAL_FUNC(do_new_bp), b);
1116 1125
1117 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); 1126 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5);
1118 1127
1128 gtk_widget_set_usize(button, 75, 30);
1119 gtk_widget_show(button); 1129 gtk_widget_show(button);
1120 1130
1121 /* End of OK Button */ 1131 /* End of OK Button */
1122 1132
1123 /* Build Cancel Button */ 1133 /* Build Cancel Button */
1143 gtk_signal_connect(GTK_OBJECT(button), "clicked", 1153 gtk_signal_connect(GTK_OBJECT(button), "clicked",
1144 GTK_SIGNAL_FUNC(destroy_dialog), b->window); 1154 GTK_SIGNAL_FUNC(destroy_dialog), b->window);
1145 1155
1146 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); 1156 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5);
1147 1157
1158 gtk_widget_set_usize(button, 75, 30);
1148 gtk_widget_show(button); 1159 gtk_widget_show(button);
1149 1160
1150 /* End of Cancel Button */ 1161 /* End of Cancel Button */
1151 1162
1152 /* Put the buttons in the box */ 1163 /* Put the buttons in the box */
1446 1457
1447 gtk_container_add(GTK_CONTAINER(b->cancel), button_box); 1458 gtk_container_add(GTK_CONTAINER(b->cancel), button_box);
1448 1459
1449 /* End of Cancel Button */ 1460 /* End of Cancel Button */
1450 1461
1462 gtk_widget_set_usize(b->ok, 75, 30);
1463 gtk_widget_set_usize(b->cancel, 75, 30);
1464
1451 gtk_widget_show(b->ok); 1465 gtk_widget_show(b->ok);
1452 gtk_widget_show(b->cancel); 1466 gtk_widget_show(b->cancel);
1453 1467
1454 /* Create our vbox */ 1468 /* Create our vbox */
1455 vbox = gtk_vbox_new(FALSE, 5); 1469 vbox = gtk_vbox_new(FALSE, 5);
1597 1611
1598 gtk_container_add(GTK_CONTAINER(b->cancel), button_box); 1612 gtk_container_add(GTK_CONTAINER(b->cancel), button_box);
1599 1613
1600 /* End of Cancel Button */ 1614 /* End of Cancel Button */
1601 1615
1616 gtk_widget_set_usize(b->save, 75, 30);
1617 gtk_widget_set_usize(b->cancel, 75, 30);
1602 1618
1603 gtk_widget_show(b->save); 1619 gtk_widget_show(b->save);
1604 gtk_widget_show(b->cancel); 1620 gtk_widget_show(b->cancel);
1605 1621
1606 gtk_box_pack_start(GTK_BOX(bot), b->save, FALSE, FALSE, 10); 1622 gtk_box_pack_start(GTK_BOX(bot), b->save, FALSE, FALSE, 10);
2087 gtk_widget_show(icon_i); 2103 gtk_widget_show(icon_i);
2088 2104
2089 gtk_widget_show(button_box); 2105 gtk_widget_show(button_box);
2090 2106
2091 gtk_container_add(GTK_CONTAINER(ok), button_box); 2107 gtk_container_add(GTK_CONTAINER(ok), button_box);
2108 gtk_widget_set_usize(ok, 75, 30);
2092 2109
2093 /* End of OK Button */ 2110 /* End of OK Button */
2094 2111
2095 /* Build Cancel Button */ 2112 /* Build Cancel Button */
2096 2113
2109 gtk_widget_show(icon_i); 2126 gtk_widget_show(icon_i);
2110 2127
2111 gtk_widget_show(button_box); 2128 gtk_widget_show(button_box);
2112 2129
2113 gtk_container_add(GTK_CONTAINER(cancel), button_box); 2130 gtk_container_add(GTK_CONTAINER(cancel), button_box);
2131 gtk_widget_set_usize(cancel, 75, 30);
2114 2132
2115 /* End of Cancel Button */ 2133 /* End of Cancel Button */
2116 2134
2117 bbox = gtk_hbox_new(TRUE, 10); 2135 bbox = gtk_hbox_new(TRUE, 10);
2118 vbox = gtk_vbox_new(FALSE, 2); 2136 vbox = gtk_vbox_new(FALSE, 2);
2123 b->maidenentry = gtk_entry_new(); 2141 b->maidenentry = gtk_entry_new();
2124 b->cityentry = gtk_entry_new(); 2142 b->cityentry = gtk_entry_new();
2125 b->stateentry = gtk_entry_new(); 2143 b->stateentry = gtk_entry_new();
2126 b->countryentry = gtk_entry_new(); 2144 b->countryentry = gtk_entry_new();
2127 2145
2128 gtk_box_pack_start(GTK_BOX(bbox), ok, TRUE, TRUE, 10); 2146 gtk_widget_set_usize(ok, 75, 30);
2129 gtk_box_pack_start(GTK_BOX(bbox), cancel, TRUE, TRUE, 10); 2147 gtk_widget_set_usize(cancel, 75, 30);
2148 gtk_box_pack_end(GTK_BOX(bbox), ok, FALSE, FALSE, 10);
2149 gtk_box_pack_end(GTK_BOX(bbox), cancel, FALSE, FALSE, 10);
2130 2150
2131 /* Line 1 */ 2151 /* Line 1 */
2132 label = gtk_label_new(_("First Name")); 2152 label = gtk_label_new(_("First Name"));
2133 gtk_widget_show(label); 2153 gtk_widget_show(label);
2134 2154
2297 gtk_signal_connect(GTK_OBJECT(button), "clicked", 2317 gtk_signal_connect(GTK_OBJECT(button), "clicked",
2298 GTK_SIGNAL_FUNC(do_find_email), b); 2318 GTK_SIGNAL_FUNC(do_find_email), b);
2299 2319
2300 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); 2320 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5);
2301 2321
2322 gtk_widget_set_usize(button, 75, 30);
2302 gtk_widget_show(button); 2323 gtk_widget_show(button);
2303 2324
2304 /* End of OK Button */ 2325 /* End of OK Button */
2305 2326
2306 /* Build Cancel Button */ 2327 /* Build Cancel Button */
2326 gtk_signal_connect(GTK_OBJECT(button), "clicked", 2347 gtk_signal_connect(GTK_OBJECT(button), "clicked",
2327 GTK_SIGNAL_FUNC(destroy_dialog), b->window); 2348 GTK_SIGNAL_FUNC(destroy_dialog), b->window);
2328 2349
2329 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); 2350 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5);
2330 2351
2352 gtk_widget_set_usize(button, 75, 30);
2331 gtk_widget_show(button); 2353 gtk_widget_show(button);
2332 2354
2333 /* End of Cancel Button */ 2355 /* End of Cancel Button */
2334 2356
2335 label = gtk_label_new(_("Email")); 2357 label = gtk_label_new(_("Email"));