Mercurial > pidgin
comparison src/dialogs.c @ 535:f03f041c1aa9
[gaim-migrate @ 545]
fflewddur wrote a really cool patch to make buttons borderless, like the
buttons in winaim. of course, unlike winaim, it's optional. :)
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Thu, 27 Jul 2000 17:48:15 +0000 |
| parents | 0fcb7e7a263c |
| children | 6bd2bbc1b6c8 |
comparison
equal
deleted
inserted
replaced
| 534:d7cdcd9e28f4 | 535:f03f041c1aa9 |
|---|---|
| 380 char *buf = g_malloc(128); | 380 char *buf = g_malloc(128); |
| 381 w->window = gtk_window_new(GTK_WINDOW_DIALOG); | 381 w->window = gtk_window_new(GTK_WINDOW_DIALOG); |
| 382 gtk_window_set_policy(GTK_WINDOW(w->window), FALSE, FALSE, TRUE); | 382 gtk_window_set_policy(GTK_WINDOW(w->window), FALSE, FALSE, TRUE); |
| 383 gtk_widget_show(w->window); | 383 gtk_widget_show(w->window); |
| 384 dialogwindows = g_list_prepend(dialogwindows, w->window); | 384 dialogwindows = g_list_prepend(dialogwindows, w->window); |
| 385 cancel = gtk_button_new_with_label(_("Cancel")); | |
| 386 warn = gtk_button_new_with_label(_("Warn")); | |
| 387 bbox = gtk_hbox_new(TRUE, 10); | 385 bbox = gtk_hbox_new(TRUE, 10); |
| 388 vbox = gtk_vbox_new(FALSE, 5); | 386 vbox = gtk_vbox_new(FALSE, 5); |
| 389 fbox = gtk_vbox_new(FALSE, 5); | 387 fbox = gtk_vbox_new(FALSE, 5); |
| 390 | 388 |
| 391 frame = gtk_frame_new(_("Warn")); | 389 frame = gtk_frame_new(_("Warn")); |
| 392 | 390 |
| 393 /* Build Warn Button */ | 391 /* Build Warn Button */ |
| 394 | 392 |
| 395 warn = gtk_button_new(); | 393 warn = gtk_button_new(); |
| 396 | 394 |
| 397 button_box = gtk_hbox_new(FALSE, 5); | 395 button_box = gtk_hbox_new(FALSE, 5); |
| 432 gtk_widget_show(button_box); | 430 gtk_widget_show(button_box); |
| 433 | 431 |
| 434 gtk_container_add(GTK_CONTAINER(cancel), button_box); | 432 gtk_container_add(GTK_CONTAINER(cancel), button_box); |
| 435 | 433 |
| 436 /* End of Cancel Button */ | 434 /* End of Cancel Button */ |
| 437 /* Put the buttons in the box */ | 435 |
| 436 | |
| 437 if (display_options & OPT_DISP_COOL_LOOK) | |
| 438 { | |
| 439 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); | |
| 440 gtk_button_set_relief(GTK_BUTTON(warn), GTK_RELIEF_NONE); | |
| 441 } | |
| 442 | |
| 443 /* Put the buttons in the box */ | |
| 438 | 444 |
| 439 gtk_widget_set_usize(warn, 75, 30); | 445 gtk_widget_set_usize(warn, 75, 30); |
| 440 gtk_widget_set_usize(cancel, 75, 30); | 446 gtk_widget_set_usize(cancel, 75, 30); |
| 441 | 447 |
| 442 gtk_box_pack_start(GTK_BOX(bbox), warn, FALSE, FALSE, 5); | 448 gtk_box_pack_start(GTK_BOX(bbox), warn, FALSE, FALSE, 5); |
| 534 gtk_widget_set_usize(close, 75, 30); | 540 gtk_widget_set_usize(close, 75, 30); |
| 535 gtk_widget_show(close); | 541 gtk_widget_show(close); |
| 536 | 542 |
| 537 /* End of Close Button */ | 543 /* End of Close Button */ |
| 538 | 544 |
| 545 | |
| 546 if (display_options & OPT_DISP_COOL_LOOK) | |
| 547 gtk_button_set_relief(GTK_BUTTON(close), GTK_RELIEF_NONE); | |
| 548 | |
| 539 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(d)->action_area), | 549 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(d)->action_area), |
| 540 close, FALSE, FALSE, 5); | 550 close, FALSE, FALSE, 5); |
| 541 | 551 |
| 542 gtk_container_set_border_width(GTK_CONTAINER(d), 5); | 552 gtk_container_set_border_width(GTK_CONTAINER(d), 5); |
| 543 gtk_window_set_title(GTK_WINDOW(d), title); | 553 gtk_window_set_title(GTK_WINDOW(d), title); |
| 699 | 709 |
| 700 eedialog = gtk_window_new(GTK_WINDOW_DIALOG); | 710 eedialog = gtk_window_new(GTK_WINDOW_DIALOG); |
| 701 ok = gtk_button_new_with_label(_("OK")); | 711 ok = gtk_button_new_with_label(_("OK")); |
| 702 box = gtk_vbox_new(FALSE, 10); | 712 box = gtk_vbox_new(FALSE, 10); |
| 703 | 713 |
| 714 | |
| 715 if (display_options & OPT_DISP_COOL_LOOK) | |
| 716 gtk_button_set_relief(GTK_BUTTON(ok), GTK_RELIEF_NONE); | |
| 717 | |
| 704 if (ee == 0) | 718 if (ee == 0) |
| 705 label = gtk_label_new("Amazing! Simply Amazing!"); | 719 label = gtk_label_new("Amazing! Simply Amazing!"); |
| 706 else if (ee == 1) | 720 else if (ee == 1) |
| 707 label = gtk_label_new("Pimpin\' Penguin Style! *Waddle Waddle*"); | 721 label = gtk_label_new("Pimpin\' Penguin Style! *Waddle Waddle*"); |
| 708 else if (ee == 2) | 722 else if (ee == 2) |
| 784 gtk_signal_connect(GTK_OBJECT(button), "clicked", | 798 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
| 785 GTK_SIGNAL_FUNC(do_im), imentry); | 799 GTK_SIGNAL_FUNC(do_im), imentry); |
| 786 | 800 |
| 787 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); | 801 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); |
| 788 | 802 |
| 803 if (display_options & OPT_DISP_COOL_LOOK) | |
| 804 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 805 | |
| 789 gtk_widget_set_usize(button, 75, 30); | 806 gtk_widget_set_usize(button, 75, 30); |
| 790 gtk_widget_show(button); | 807 gtk_widget_show(button); |
| 791 | 808 |
| 792 /* End of OK Button */ | 809 /* End of OK Button */ |
| 793 | 810 |
| 815 gtk_signal_connect(GTK_OBJECT(button), "clicked", | 832 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
| 816 GTK_SIGNAL_FUNC(destroy_dialog), imdialog); | 833 GTK_SIGNAL_FUNC(destroy_dialog), imdialog); |
| 817 | 834 |
| 818 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); | 835 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); |
| 819 | 836 |
| 837 if (display_options & OPT_DISP_COOL_LOOK) | |
| 838 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 839 | |
| 820 gtk_widget_set_usize(button, 75, 30); | 840 gtk_widget_set_usize(button, 75, 30); |
| 821 gtk_widget_show(button); | 841 gtk_widget_show(button); |
| 822 | 842 |
| 823 /* End of Cancel Button */ | 843 /* End of Cancel Button */ |
| 824 | 844 |
| 947 | 967 |
| 948 /* Build Add Button */ | 968 /* Build Add Button */ |
| 949 | 969 |
| 950 add = gtk_button_new(); | 970 add = gtk_button_new(); |
| 951 | 971 |
| 972 if (display_options & OPT_DISP_COOL_LOOK) | |
| 973 gtk_button_set_relief(GTK_BUTTON(add), GTK_RELIEF_NONE); | |
| 974 | |
| 952 button_box = gtk_hbox_new(FALSE, 5); | 975 button_box = gtk_hbox_new(FALSE, 5); |
| 953 icon = gdk_pixmap_create_from_xpm_d ( a->window->window, &mask, NULL, add_xpm); | 976 icon = gdk_pixmap_create_from_xpm_d ( a->window->window, &mask, NULL, add_xpm); |
| 954 icon_i = gtk_pixmap_new(icon, mask); | 977 icon_i = gtk_pixmap_new(icon, mask); |
| 955 | 978 |
| 956 label = gtk_label_new(_("Add")); | 979 label = gtk_label_new(_("Add")); |
| 969 | 992 |
| 970 /* Build Cancel Button */ | 993 /* Build Cancel Button */ |
| 971 | 994 |
| 972 cancel = gtk_button_new(); | 995 cancel = gtk_button_new(); |
| 973 | 996 |
| 997 if (display_options & OPT_DISP_COOL_LOOK) | |
| 998 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); | |
| 999 | |
| 974 button_box = gtk_hbox_new(FALSE, 5); | 1000 button_box = gtk_hbox_new(FALSE, 5); |
| 975 icon = gdk_pixmap_create_from_xpm_d ( a->window->window, &mask, NULL, cancel_xpm); | 1001 icon = gdk_pixmap_create_from_xpm_d ( a->window->window, &mask, NULL, cancel_xpm); |
| 976 icon_i = gtk_pixmap_new(icon, mask); | 1002 icon_i = gtk_pixmap_new(icon, mask); |
| 977 | 1003 |
| 978 label = gtk_label_new(_("Cancel")); | 1004 label = gtk_label_new(_("Cancel")); |
| 1123 gtk_signal_connect(GTK_OBJECT(button), "clicked", | 1149 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
| 1124 GTK_SIGNAL_FUNC(do_new_bp), b); | 1150 GTK_SIGNAL_FUNC(do_new_bp), b); |
| 1125 | 1151 |
| 1126 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); | 1152 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); |
| 1127 | 1153 |
| 1154 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1155 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 1156 | |
| 1128 gtk_widget_set_usize(button, 75, 30); | 1157 gtk_widget_set_usize(button, 75, 30); |
| 1129 gtk_widget_show(button); | 1158 gtk_widget_show(button); |
| 1130 | 1159 |
| 1131 /* End of OK Button */ | 1160 /* End of OK Button */ |
| 1132 | 1161 |
| 1153 gtk_signal_connect(GTK_OBJECT(button), "clicked", | 1182 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
| 1154 GTK_SIGNAL_FUNC(destroy_dialog), b->window); | 1183 GTK_SIGNAL_FUNC(destroy_dialog), b->window); |
| 1155 | 1184 |
| 1156 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); | 1185 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); |
| 1157 | 1186 |
| 1187 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1188 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 1189 | |
| 1158 gtk_widget_set_usize(button, 75, 30); | 1190 gtk_widget_set_usize(button, 75, 30); |
| 1159 gtk_widget_show(button); | 1191 gtk_widget_show(button); |
| 1160 | 1192 |
| 1161 /* End of Cancel Button */ | 1193 /* End of Cancel Button */ |
| 1162 | 1194 |
| 1300 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 1332 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 1301 | 1333 |
| 1302 gtk_widget_show(label); | 1334 gtk_widget_show(label); |
| 1303 gtk_widget_show(icon_i); | 1335 gtk_widget_show(icon_i); |
| 1304 | 1336 |
| 1337 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1338 gtk_button_set_relief(GTK_BUTTON(b->save), GTK_RELIEF_NONE); | |
| 1339 | |
| 1305 gtk_widget_show(button_box); | 1340 gtk_widget_show(button_box); |
| 1306 | 1341 |
| 1307 gtk_container_add(GTK_CONTAINER(b->save), button_box); | 1342 gtk_container_add(GTK_CONTAINER(b->save), button_box); |
| 1308 | 1343 |
| 1309 /* End of OK Button */ | 1344 /* End of OK Button */ |
| 1322 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 1357 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 1323 | 1358 |
| 1324 gtk_widget_show(label); | 1359 gtk_widget_show(label); |
| 1325 gtk_widget_show(icon_i); | 1360 gtk_widget_show(icon_i); |
| 1326 | 1361 |
| 1362 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1363 gtk_button_set_relief(GTK_BUTTON(b->cancel), GTK_RELIEF_NONE); | |
| 1364 | |
| 1327 gtk_widget_show(button_box); | 1365 gtk_widget_show(button_box); |
| 1328 | 1366 |
| 1329 gtk_container_add(GTK_CONTAINER(b->cancel), button_box); | 1367 gtk_container_add(GTK_CONTAINER(b->cancel), button_box); |
| 1330 | 1368 |
| 1331 /* End of Cancel Button */ | 1369 /* End of Cancel Button */ |
| 1536 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 1574 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 1537 | 1575 |
| 1538 gtk_widget_show(label); | 1576 gtk_widget_show(label); |
| 1539 gtk_widget_show(icon_i); | 1577 gtk_widget_show(icon_i); |
| 1540 | 1578 |
| 1579 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1580 gtk_button_set_relief(GTK_BUTTON(b->ok), GTK_RELIEF_NONE); | |
| 1581 | |
| 1541 gtk_widget_show(button_box); | 1582 gtk_widget_show(button_box); |
| 1542 | 1583 |
| 1543 gtk_container_add(GTK_CONTAINER(b->ok), button_box); | 1584 gtk_container_add(GTK_CONTAINER(b->ok), button_box); |
| 1544 | 1585 |
| 1545 /* End of OK Button */ | 1586 /* End of OK Button */ |
| 1558 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 1599 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 1559 | 1600 |
| 1560 gtk_widget_show(label); | 1601 gtk_widget_show(label); |
| 1561 gtk_widget_show(icon_i); | 1602 gtk_widget_show(icon_i); |
| 1562 | 1603 |
| 1604 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1605 gtk_button_set_relief(GTK_BUTTON(b->cancel), GTK_RELIEF_NONE); | |
| 1606 | |
| 1563 gtk_widget_show(button_box); | 1607 gtk_widget_show(button_box); |
| 1564 | 1608 |
| 1565 gtk_container_add(GTK_CONTAINER(b->cancel), button_box); | 1609 gtk_container_add(GTK_CONTAINER(b->cancel), button_box); |
| 1566 | 1610 |
| 1567 /* End of Cancel Button */ | 1611 /* End of Cancel Button */ |
| 1690 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 1734 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 1691 | 1735 |
| 1692 gtk_widget_show(label); | 1736 gtk_widget_show(label); |
| 1693 gtk_widget_show(icon_i); | 1737 gtk_widget_show(icon_i); |
| 1694 | 1738 |
| 1739 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1740 gtk_button_set_relief(GTK_BUTTON(b->save), GTK_RELIEF_NONE); | |
| 1741 | |
| 1695 gtk_widget_show(button_box); | 1742 gtk_widget_show(button_box); |
| 1696 | 1743 |
| 1697 gtk_container_add(GTK_CONTAINER(b->save), button_box); | 1744 gtk_container_add(GTK_CONTAINER(b->save), button_box); |
| 1698 | 1745 |
| 1699 /* End of OK Button */ | 1746 /* End of OK Button */ |
| 1712 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 1759 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 1713 | 1760 |
| 1714 gtk_widget_show(label); | 1761 gtk_widget_show(label); |
| 1715 gtk_widget_show(icon_i); | 1762 gtk_widget_show(icon_i); |
| 1716 | 1763 |
| 1764 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1765 gtk_button_set_relief(GTK_BUTTON(b->cancel), GTK_RELIEF_NONE); | |
| 1766 | |
| 1717 gtk_widget_show(button_box); | 1767 gtk_widget_show(button_box); |
| 1718 | 1768 |
| 1719 gtk_container_add(GTK_CONTAINER(b->cancel), button_box); | 1769 gtk_container_add(GTK_CONTAINER(b->cancel), button_box); |
| 1720 | 1770 |
| 1721 /* End of Cancel Button */ | 1771 /* End of Cancel Button */ |
| 1845 gtk_table_attach_defaults(GTK_TABLE(table), b->uname, 0, 2, 5, 6); | 1895 gtk_table_attach_defaults(GTK_TABLE(table), b->uname, 0, 2, 5, 6); |
| 1846 | 1896 |
| 1847 gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 5); | 1897 gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 5); |
| 1848 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 5); | 1898 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 5); |
| 1849 | 1899 |
| 1900 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1901 { | |
| 1902 gtk_button_set_relief(GTK_BUTTON(ok), GTK_RELIEF_NONE); | |
| 1903 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); | |
| 1904 } | |
| 1905 | |
| 1850 gtk_signal_connect(GTK_OBJECT(b->window), "destroy", | 1906 gtk_signal_connect(GTK_OBJECT(b->window), "destroy", |
| 1851 GTK_SIGNAL_FUNC(destroy_dialog), b->window); | 1907 GTK_SIGNAL_FUNC(destroy_dialog), b->window); |
| 1852 gtk_signal_connect(GTK_OBJECT(cancel), "clicked", | 1908 gtk_signal_connect(GTK_OBJECT(cancel), "clicked", |
| 1853 GTK_SIGNAL_FUNC(set_reg_flag), b); | 1909 GTK_SIGNAL_FUNC(set_reg_flag), b); |
| 1854 gtk_signal_connect(GTK_OBJECT(ok), "clicked", | 1910 gtk_signal_connect(GTK_OBJECT(ok), "clicked", |
| 1899 gtk_signal_connect(GTK_OBJECT(b->window), "destroy", | 1955 gtk_signal_connect(GTK_OBJECT(b->window), "destroy", |
| 1900 GTK_SIGNAL_FUNC(destroy_dialog), b->window); | 1956 GTK_SIGNAL_FUNC(destroy_dialog), b->window); |
| 1901 gtk_signal_connect(GTK_OBJECT(ok), "clicked", | 1957 gtk_signal_connect(GTK_OBJECT(ok), "clicked", |
| 1902 GTK_SIGNAL_FUNC(destroy_dialog), b->window); | 1958 GTK_SIGNAL_FUNC(destroy_dialog), b->window); |
| 1903 | 1959 |
| 1960 if (display_options & OPT_DISP_COOL_LOOK) | |
| 1961 gtk_button_set_relief(GTK_BUTTON(ok), GTK_RELIEF_NONE); | |
| 1962 | |
| 1904 label = gtk_label_new(_("Below are the results of your search: ")); | 1963 label = gtk_label_new(_("Below are the results of your search: ")); |
| 1905 | 1964 |
| 1906 sw = gtk_scrolled_window_new (NULL, NULL); | 1965 sw = gtk_scrolled_window_new (NULL, NULL); |
| 1907 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), | 1966 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), |
| 1908 GTK_POLICY_NEVER, | 1967 GTK_POLICY_NEVER, |
| 2028 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 2087 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 2029 | 2088 |
| 2030 gtk_widget_show(label); | 2089 gtk_widget_show(label); |
| 2031 gtk_widget_show(icon_i); | 2090 gtk_widget_show(icon_i); |
| 2032 | 2091 |
| 2092 if (display_options & OPT_DISP_COOL_LOOK) | |
| 2093 gtk_button_set_relief(GTK_BUTTON(add), GTK_RELIEF_NONE); | |
| 2094 | |
| 2033 gtk_widget_show(button_box); | 2095 gtk_widget_show(button_box); |
| 2034 | 2096 |
| 2035 gtk_container_add(GTK_CONTAINER(add), button_box); | 2097 gtk_container_add(GTK_CONTAINER(add), button_box); |
| 2036 | 2098 |
| 2037 /* End of Add Button */ | 2099 /* End of Add Button */ |
| 2051 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 2113 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 2052 | 2114 |
| 2053 gtk_widget_show(label); | 2115 gtk_widget_show(label); |
| 2054 gtk_widget_show(icon_i); | 2116 gtk_widget_show(icon_i); |
| 2055 | 2117 |
| 2118 if (display_options & OPT_DISP_COOL_LOOK) | |
| 2119 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); | |
| 2120 | |
| 2056 gtk_widget_show(button_box); | 2121 gtk_widget_show(button_box); |
| 2057 | 2122 |
| 2058 gtk_container_add(GTK_CONTAINER(cancel), button_box); | 2123 gtk_container_add(GTK_CONTAINER(cancel), button_box); |
| 2059 | 2124 |
| 2060 /* End of Cancel Button */ | 2125 /* End of Cancel Button */ |
| 2269 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 2334 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 2270 | 2335 |
| 2271 gtk_widget_show(label); | 2336 gtk_widget_show(label); |
| 2272 gtk_widget_show(icon_i); | 2337 gtk_widget_show(icon_i); |
| 2273 | 2338 |
| 2339 if (display_options & OPT_DISP_COOL_LOOK) | |
| 2340 gtk_button_set_relief(GTK_BUTTON(ok), GTK_RELIEF_NONE); | |
| 2341 | |
| 2274 gtk_widget_show(button_box); | 2342 gtk_widget_show(button_box); |
| 2275 | 2343 |
| 2276 gtk_container_add(GTK_CONTAINER(ok), button_box); | 2344 gtk_container_add(GTK_CONTAINER(ok), button_box); |
| 2277 gtk_widget_set_usize(ok, 75, 30); | 2345 gtk_widget_set_usize(ok, 75, 30); |
| 2278 | 2346 |
| 2292 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); | 2360 gtk_box_pack_end(GTK_BOX(button_box), label, FALSE, FALSE, 2); |
| 2293 | 2361 |
| 2294 gtk_widget_show(label); | 2362 gtk_widget_show(label); |
| 2295 gtk_widget_show(icon_i); | 2363 gtk_widget_show(icon_i); |
| 2296 | 2364 |
| 2365 if (display_options & OPT_DISP_COOL_LOOK) | |
| 2366 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); | |
| 2367 | |
| 2297 gtk_widget_show(button_box); | 2368 gtk_widget_show(button_box); |
| 2298 | 2369 |
| 2299 gtk_container_add(GTK_CONTAINER(cancel), button_box); | 2370 gtk_container_add(GTK_CONTAINER(cancel), button_box); |
| 2300 gtk_widget_set_usize(cancel, 75, 30); | 2371 gtk_widget_set_usize(cancel, 75, 30); |
| 2301 | 2372 |
| 2465 | 2536 |
| 2466 /* Build OK Button */ | 2537 /* Build OK Button */ |
| 2467 | 2538 |
| 2468 button = gtk_button_new(); | 2539 button = gtk_button_new(); |
| 2469 | 2540 |
| 2541 if (display_options & OPT_DISP_COOL_LOOK) | |
| 2542 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 2543 | |
| 2470 button_box = gtk_hbox_new(FALSE, 5); | 2544 button_box = gtk_hbox_new(FALSE, 5); |
| 2471 icon = gdk_pixmap_create_from_xpm_d ( b->window->window, &mask, NULL, ok_xpm); | 2545 icon = gdk_pixmap_create_from_xpm_d ( b->window->window, &mask, NULL, ok_xpm); |
| 2472 icon_i = gtk_pixmap_new(icon, mask); | 2546 icon_i = gtk_pixmap_new(icon, mask); |
| 2473 | 2547 |
| 2474 label = gtk_label_new(_("OK")); | 2548 label = gtk_label_new(_("OK")); |
| 2516 gtk_signal_connect(GTK_OBJECT(button), "clicked", | 2590 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
| 2517 GTK_SIGNAL_FUNC(destroy_dialog), b->window); | 2591 GTK_SIGNAL_FUNC(destroy_dialog), b->window); |
| 2518 | 2592 |
| 2519 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); | 2593 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); |
| 2520 | 2594 |
| 2595 if (display_options & OPT_DISP_COOL_LOOK) | |
| 2596 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 2597 | |
| 2521 gtk_widget_set_usize(button, 75, 30); | 2598 gtk_widget_set_usize(button, 75, 30); |
| 2522 gtk_widget_show(button); | 2599 gtk_widget_show(button); |
| 2523 | 2600 |
| 2524 /* End of Cancel Button */ | 2601 /* End of Cancel Button */ |
| 2525 | 2602 |
| 2596 linkdialog = gtk_window_new(GTK_WINDOW_DIALOG); | 2673 linkdialog = gtk_window_new(GTK_WINDOW_DIALOG); |
| 2597 dialogwindows = g_list_prepend(dialogwindows, linkdialog); | 2674 dialogwindows = g_list_prepend(dialogwindows, linkdialog); |
| 2598 | 2675 |
| 2599 b->cancel = gtk_button_new_with_label(_("Cancel")); | 2676 b->cancel = gtk_button_new_with_label(_("Cancel")); |
| 2600 b->ok = gtk_button_new_with_label(_("Ok")); | 2677 b->ok = gtk_button_new_with_label(_("Ok")); |
| 2601 | 2678 |
| 2679 if (display_options & OPT_DISP_COOL_LOOK) | |
| 2680 { | |
| 2681 gtk_button_set_relief(GTK_BUTTON(b->cancel), GTK_RELIEF_NONE); | |
| 2682 gtk_button_set_relief(GTK_BUTTON(b->ok), GTK_RELIEF_NONE); | |
| 2683 } | |
| 2684 | |
| 2602 vbox = gtk_vbox_new(FALSE, 10); | 2685 vbox = gtk_vbox_new(FALSE, 10); |
| 2603 bbox = gtk_hbox_new(TRUE, 10); | 2686 bbox = gtk_hbox_new(TRUE, 10); |
| 2604 | 2687 |
| 2605 gtk_widget_show(b->ok); | 2688 gtk_widget_show(b->ok); |
| 2606 gtk_widget_show(b->cancel); | 2689 gtk_widget_show(b->cancel); |
| 3208 | 3291 |
| 3209 button = gtk_button_new(); | 3292 button = gtk_button_new(); |
| 3210 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(create_mess), ca); | 3293 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(create_mess), ca); |
| 3211 gtk_widget_show(button_box); | 3294 gtk_widget_show(button_box); |
| 3212 gtk_container_add(GTK_CONTAINER(button), button_box); | 3295 gtk_container_add(GTK_CONTAINER(button), button_box); |
| 3296 | |
| 3297 if (display_options & OPT_DISP_COOL_LOOK) | |
| 3298 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 3299 | |
| 3213 gtk_widget_show(button); | 3300 gtk_widget_show(button); |
| 3214 | 3301 |
| 3215 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 5); | 3302 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 5); |
| 3216 | 3303 |
| 3217 /* End of our create button code */ | 3304 /* End of our create button code */ |
| 3231 | 3318 |
| 3232 button = gtk_button_new(); | 3319 button = gtk_button_new(); |
| 3233 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(destroy_dialog), ca->window); | 3320 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(destroy_dialog), ca->window); |
| 3234 gtk_widget_show(button_box); | 3321 gtk_widget_show(button_box); |
| 3235 gtk_container_add(GTK_CONTAINER(button), button_box); | 3322 gtk_container_add(GTK_CONTAINER(button), button_box); |
| 3323 | |
| 3324 if (display_options & OPT_DISP_COOL_LOOK) | |
| 3325 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | |
| 3326 | |
| 3236 gtk_widget_show(button); | 3327 gtk_widget_show(button); |
| 3237 | 3328 |
| 3238 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 5); | 3329 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 5); |
| 3239 | 3330 |
| 3240 /* End of our cancel button code */ | 3331 /* End of our cancel button code */ |
