1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GnomeDialog</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
<link rel="start" href="index.html" title="GNOME UI Library Reference Manual">
<link rel="up" href="deprecated.html" title="Deprecated Modules">
<link rel="prev" href="GnomeColorPicker.html" title="GnomeColorPicker">
<link rel="next" href="libgnomeui-gnome-dialog-util.html" title="gnome-dialog-util">
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="pt01.html" title="Part I. GNOME UI Library (libgnomeui)">
<link rel="chapter" href="initialization.html" title="Initialization and Session Management">
<link rel="chapter" href="application-mgmt.html" title="Application Management">
<link rel="chapter" href="druids.html" title="Druids">
<link rel="chapter" href="fixme.html" title="Miscellaneous Widgets">
<link rel="chapter" href="miscellaneous.html" title="Miscellaneous Utility Functions and Macros">
<link rel="chapter" href="deprecated.html" title="Deprecated Modules">
<link rel="chapter" href="libgnomeui-objects.html" title="Object Hierarchy">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
<link rel="index" href="ix08.html" title="Index of new symbols in 2.12">
<link rel="index" href="ix09.html" title="Index of new symbols in 2.14">
<link rel="index" href="ix10.html" title="Index of new symbols in 2.16">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GnomeColorPicker.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="deprecated.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GNOME UI Library Reference Manual</th>
<td><a accesskey="n" href="libgnomeui-gnome-dialog-util.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2710427" class="shortcut">Top</a>
 | 
<a href="#id2712104" class="shortcut">Description</a>
 | 
<a href="#id2711984" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id2712050" class="shortcut">Implemented Interfaces</a>
 | 
<a href="#id2712074" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GnomeDialog"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2710427"></a><span class="refentrytitle">GnomeDialog</span>
</h2>
<p>GnomeDialog — Create generic dialog boxes.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <libgnomeui/libgnomeui.h>
<a href="GnomeDialog.html#GnomeDialog-struct">GnomeDialog</a>;
GtkWidget* <a href="GnomeDialog.html#gnome-dialog-new">gnome_dialog_new</a> (const gchar *title,
...);
GtkWidget* <a href="GnomeDialog.html#gnome-dialog-newv">gnome_dialog_newv</a> (const gchar *title,
const gchar **buttons);
void <a href="GnomeDialog.html#gnome-dialog-set-parent">gnome_dialog_set_parent</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
GtkWindow *parent);
void <a href="GnomeDialog.html#gnome-dialog-button-connect">gnome_dialog_button_connect</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button,
GCallback callback,
gpointer data);
void <a href="GnomeDialog.html#gnome-dialog-button-connect-object">gnome_dialog_button_connect_object</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button,
GCallback callback,
GtkObject *obj);
gint <a href="GnomeDialog.html#gnome-dialog-run">gnome_dialog_run</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog);
gint <a href="GnomeDialog.html#gnome-dialog-run-and-close">gnome_dialog_run_and_close</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog);
void <a href="GnomeDialog.html#gnome-dialog-set-default">gnome_dialog_set_default</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button);
void <a href="GnomeDialog.html#gnome-dialog-grab-focus">gnome_dialog_grab_focus</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button);
void <a href="GnomeDialog.html#gnome-dialog-set-sensitive">gnome_dialog_set_sensitive</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button,
gboolean setting);
void <a href="GnomeDialog.html#gnome-dialog-set-accelerator">gnome_dialog_set_accelerator</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button,
const guchar accelerator_key,
guint8 accelerator_mods);
void <a href="GnomeDialog.html#gnome-dialog-close">gnome_dialog_close</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog);
void <a href="GnomeDialog.html#gnome-dialog-close-hides">gnome_dialog_close_hides</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gboolean just_hide);
void <a href="GnomeDialog.html#gnome-dialog-set-close">gnome_dialog_set_close</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gboolean click_closes);
void <a href="GnomeDialog.html#gnome-dialog-editable-enters">gnome_dialog_editable_enters</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
GtkEditable *editable);
void <a href="GnomeDialog.html#gnome-dialog-append-buttons">gnome_dialog_append_buttons</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *first,
...);
void <a href="GnomeDialog.html#gnome-dialog-append-button">gnome_dialog_append_button</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *button_name);
void <a href="GnomeDialog.html#gnome-dialog-append-buttonsv">gnome_dialog_append_buttonsv</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar **buttons);
void <a href="GnomeDialog.html#gnome-dialog-append-button-with-pixmap">gnome_dialog_append_button_with_pixmap</a>
(<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *button_name,
const gchar *pixmap_name);
void <a href="GnomeDialog.html#gnome-dialog-append-buttons-with-pixmaps">gnome_dialog_append_buttons_with_pixmaps</a>
(<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar **names,
const gchar **pixmaps);
void <a href="GnomeDialog.html#gnome-dialog-construct">gnome_dialog_construct</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *title,
va_list ap);
void <a href="GnomeDialog.html#gnome-dialog-constructv">gnome_dialog_constructv</a> (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *title,
const gchar **buttons);
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-OK:CAPS">GNOME_STOCK_BUTTON_OK</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-CANCEL:CAPS">GNOME_STOCK_BUTTON_CANCEL</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-YES:CAPS">GNOME_STOCK_BUTTON_YES</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-NO:CAPS">GNOME_STOCK_BUTTON_NO</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-CLOSE:CAPS">GNOME_STOCK_BUTTON_CLOSE</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-APPLY:CAPS">GNOME_STOCK_BUTTON_APPLY</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-HELP:CAPS">GNOME_STOCK_BUTTON_HELP</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-NEXT:CAPS">GNOME_STOCK_BUTTON_NEXT</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-PREV:CAPS">GNOME_STOCK_BUTTON_PREV</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-UP:CAPS">GNOME_STOCK_BUTTON_UP</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-DOWN:CAPS">GNOME_STOCK_BUTTON_DOWN</a>
#define <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-FONT:CAPS">GNOME_STOCK_BUTTON_FONT</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2711984"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkWindow
+----GnomeDialog
+----<a href="GnomeMessageBox.html" title="GnomeMessageBox">GnomeMessageBox</a>
+----<a href="GnomePropertyBox.html" title="GnomePropertyBox">GnomePropertyBox</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2712050"></a><h2>Implemented Interfaces</h2>
<p>
GnomeDialog implements
AtkImplementorIface and GtkBuildable.</p>
</div>
<div class="refsect1" lang="en">
<a name="id2712074"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GnomeDialog.html#GnomeDialog-clicked">clicked</a>" : Run Last
"<a href="GnomeDialog.html#GnomeDialog-close">close</a>" : Run Last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2712104"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2712117"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2712126"></a><h3>
<a name="GnomeDialog-struct"></a>GnomeDialog</h3>
<a class="indexterm" name="id2712137"></a><pre class="programlisting">typedef struct {
GtkWidget * vbox;
} GnomeDialog;
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GnomeDialog</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Client code can pack widgets (for example, text or images) into <em class="parameter"><code>vbox</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><span class="term">GtkWidget *<em class="structfield"><code>vbox</code></em>;</span></td>
<td> The middle portion of the dialog box.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2712196"></a><h3>
<a name="gnome-dialog-new"></a>gnome_dialog_new ()</h3>
<a class="indexterm" name="id2712208"></a><pre class="programlisting">GtkWidget* gnome_dialog_new (const gchar *title,
...);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_new</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Creates a new <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a>, with the given title, and any button names
in the arg list. Buttons can be simple names, such as _("My Button"),
or gnome-stock defines such as <a href="GnomeDialog.html#GNOME-STOCK-BUTTON-OK:CAPS"><code class="literal">GNOME_STOCK_BUTTON_OK</code></a>, etc. The last
argument should be NULL to terminate the list.
</p>
<p>
Buttons passed to this function are numbered from left to right,
starting with 0. So the first button in the arglist is button 0,
then button 1, etc. These numbers are used throughout the
<a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> API.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>title</code></em> :</span></td>
<td> The title of the dialog; appears in window titlebar.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>...</code></em> :</span></td>
<td> NULL-terminated varargs list of button names or GNOME_STOCK_BUTTON_* defines.
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> The new <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2712327"></a><h3>
<a name="gnome-dialog-newv"></a>gnome_dialog_newv ()</h3>
<a class="indexterm" name="id2712340"></a><pre class="programlisting">GtkWidget* gnome_dialog_newv (const gchar *title,
const gchar **buttons);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_newv</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
See <a href="GnomeDialog.html#gnome-dialog-new"><code class="function">gnome_dialog_new()</code></a>, this function is identical but does not use
varargs.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>title</code></em> :</span></td>
<td> Title of the dialog.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>buttons</code></em> :</span></td>
<td> NULL-terminated vector of buttons names.
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> The new <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2712440"></a><h3>
<a name="gnome-dialog-set-parent"></a>gnome_dialog_set_parent ()</h3>
<a class="indexterm" name="id2712453"></a><pre class="programlisting">void gnome_dialog_set_parent (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
GtkWindow *parent);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_set_parent</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Dialogs have "parents," usually the main application window which spawned
them. This function will let the window manager know about the parent-child
relationship. Usually this means the dialog must stay on top of the parent,
and will be minimized when the parent is. Gnome also allows users to
request dialog placement above the parent window (vs. at the mouse position,
or at a default window manger location).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to set the parent of.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>parent</code></em> :</span></td>
<td> Parent <span class="type">GtkWindow</span>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2710326"></a><h3>
<a name="gnome-dialog-button-connect"></a>gnome_dialog_button_connect ()</h3>
<a class="indexterm" name="id2710340"></a><pre class="programlisting">void gnome_dialog_button_connect (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button,
GCallback callback,
gpointer data);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_button_connect</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Simply <code class="function">g_signal_connect()</code> to the "clicked" signal of the specified button.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>button</code></em> :</span></td>
<td> Button number.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
<td> A standard Gtk callback.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
<td> Callback data.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2712842"></a><h3>
<a name="gnome-dialog-button-connect-object"></a>gnome_dialog_button_connect_object ()</h3>
<a class="indexterm" name="id2712858"></a><pre class="programlisting">void gnome_dialog_button_connect_object (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button,
GCallback callback,
GtkObject *obj);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_button_connect_object</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
<code class="function">g_signal_connect_swapped()</code> to the "clicked" signal of the given button.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>button</code></em> :</span></td>
<td> Button to connect to.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>callback</code></em> :</span></td>
<td> Callback.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>obj</code></em> :</span></td>
<td> As for <code class="function">g_signal_connect_swapped()</code>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2712995"></a><h3>
<a name="gnome-dialog-run"></a>gnome_dialog_run ()</h3>
<a class="indexterm" name="id2713007"></a><pre class="programlisting">gint gnome_dialog_run (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_run</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Blocks until the user clicks a button, or closes the dialog with the
window manager's close decoration (or by pressing Escape).
</p>
<p>
You need to set up the dialog to do the right thing when a button
is clicked or delete_event is received; you must consider both of
those possibilities so that you know the status of the dialog when
<a href="GnomeDialog.html#gnome-dialog-run"><code class="function">gnome_dialog_run()</code></a> returns. A common mistake is to forget about
Escape and the window manager close decoration; by default, these
call <a href="GnomeDialog.html#gnome-dialog-close"><code class="function">gnome_dialog_close()</code></a>, which by default destroys the dialog. If
your button clicks do not destroy the dialog, you don't know
whether the dialog is destroyed when <a href="GnomeDialog.html#gnome-dialog-run"><code class="function">gnome_dialog_run()</code></a>
returns. This is bad.
</p>
<p>
So you should either close the dialog on button clicks as well, or
change the <a href="GnomeDialog.html#gnome-dialog-close"><code class="function">gnome_dialog_close()</code></a> behavior to hide instead of
destroy. You can do this with <a href="GnomeDialog.html#gnome-dialog-close-hides"><code class="function">gnome_dialog_close_hides()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to use.
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> If a button was pressed, the button number is returned. If not, -1 is returned.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2713141"></a><h3>
<a name="gnome-dialog-run-and-close"></a>gnome_dialog_run_and_close ()</h3>
<a class="indexterm" name="id2713154"></a><pre class="programlisting">gint gnome_dialog_run_and_close (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_run_and_close</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
See <a href="GnomeDialog.html#gnome-dialog-run"><code class="function">gnome_dialog_run()</code></a>. The only difference is that this function calls
<a href="GnomeDialog.html#gnome-dialog-close"><code class="function">gnome_dialog_close()</code></a> before returning, if the dialog was not already closed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to use.
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> If a button was pressed, the button number. Otherwise -1.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2713245"></a><h3>
<a name="gnome-dialog-set-default"></a>gnome_dialog_set_default ()</h3>
<a class="indexterm" name="id2713257"></a><pre class="programlisting">void gnome_dialog_set_default (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_set_default</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
The default button will be activated if the user just presses return.
Usually you should make the least-destructive button the default.
Otherwise, the most commonly-used button.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>button</code></em> :</span></td>
<td> Number of the default button.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2713342"></a><h3>
<a name="gnome-dialog-grab-focus"></a>gnome_dialog_grab_focus ()</h3>
<a class="indexterm" name="id2713354"></a><pre class="programlisting">void gnome_dialog_grab_focus (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_grab_focus</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
The button <em class="parameter"><code>button</code></em> will grab the focus. Use this for dialogs
Where only buttons are displayed and you want to change the
default button.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>button</code></em> :</span></td>
<td> Number of the default button.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2713446"></a><h3>
<a name="gnome-dialog-set-sensitive"></a>gnome_dialog_set_sensitive ()</h3>
<a class="indexterm" name="id2713463"></a><pre class="programlisting">void gnome_dialog_set_sensitive (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button,
gboolean setting);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_set_sensitive</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Calls <code class="function">gtk_widget_set_sensitive()</code> on the specified button number.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>button</code></em> :</span></td>
<td> Which button to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>setting</code></em> :</span></td>
<td> TRUE means it's sensitive.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2713589"></a><h3>
<a name="gnome-dialog-set-accelerator"></a>gnome_dialog_set_accelerator ()</h3>
<a class="indexterm" name="id2713605"></a><pre class="programlisting">void gnome_dialog_set_accelerator (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint button,
const guchar accelerator_key,
guint8 accelerator_mods);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_set_accelerator</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Set an accelerator key for a button.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>button</code></em> :</span></td>
<td> Button number.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>accelerator_key</code></em> :</span></td>
<td> Key for the accelerator.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>accelerator_mods</code></em> :</span></td>
<td> Modifier.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2713743"></a><h3>
<a name="gnome-dialog-close"></a>gnome_dialog_close ()</h3>
<a class="indexterm" name="id2713758"></a><pre class="programlisting">void gnome_dialog_close (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_close</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
See also <a href="GnomeDialog.html#gnome-dialog-close-hides"><code class="function">gnome_dialog_close_hides()</code></a>. This function emits the
"close" signal, which either hides or destroys the dialog (destroy
by default). If you connect to the "close" signal, and your
callback returns TRUE, the hide or destroy will be blocked. You can
do this to avoid closing the dialog if the user gives invalid
input, for example.
</p>
<p>
Using <a href="GnomeDialog.html#gnome-dialog-close"><code class="function">gnome_dialog_close()</code></a> in place of <code class="function">gtk_widget_hide()</code> or
<code class="function">gtk_widget_destroy()</code> allows you to easily catch all sources of
dialog closure, including delete_event and button clicks, and
handle them in a central location.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to close.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2713884"></a><h3>
<a name="gnome-dialog-close-hides"></a>gnome_dialog_close_hides ()</h3>
<a class="indexterm" name="id2713900"></a><pre class="programlisting">void gnome_dialog_close_hides (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gboolean just_hide);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_close_hides</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Some dialogs are expensive to create, so you want to keep them around and just
<code class="function">gtk_widget_show()</code> them when they are opened, and <code class="function">gtk_widget_hide()</code> them when
they're closed. Other dialogs are expensive to keep around, so you want to
<code class="function">gtk_widget_destroy()</code> them when they're closed. It's a judgment call you
will need to make for each dialog.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>just_hide</code></em> :</span></td>
<td> If TRUE, <a href="GnomeDialog.html#gnome-dialog-close"><code class="function">gnome_dialog_close()</code></a> calls <code class="function">gtk_widget_hide()</code> instead of <code class="function">gtk_widget_destroy()</code>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2714061"></a><h3>
<a name="gnome-dialog-set-close"></a>gnome_dialog_set_close ()</h3>
<a class="indexterm" name="id2714077"></a><pre class="programlisting">void gnome_dialog_set_close (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gboolean click_closes);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_set_close</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This is a convenience function so you don't have to connect callbacks
to each button just to close the dialog. By default, <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a>
has this parameter set the FALSE and it will not close on any click.
(This was a design error.) However, almost all the <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> subclasses,
such as <a href="GnomeMessageBox.html" title="GnomeMessageBox"><span class="type">GnomeMessageBox</span></a> and <a href="GnomePropertyBox.html" title="GnomePropertyBox"><span class="type">GnomePropertyBox</span></a>, have this parameter set to
TRUE by default.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>click_closes</code></em> :</span></td>
<td> TRUE if clicking any button should call <a href="GnomeDialog.html#gnome-dialog-close"><code class="function">gnome_dialog_close()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2714218"></a><h3>
<a name="gnome-dialog-editable-enters"></a>gnome_dialog_editable_enters ()</h3>
<a class="indexterm" name="id2714234"></a><pre class="programlisting">void gnome_dialog_editable_enters (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
GtkEditable *editable);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_editable_enters</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Normally if there's an editable widget (such as <span class="type">GtkEntry</span>) in your
dialog, pressing Enter will activate the editable rather than the
default dialog button. However, in most cases, the user expects to
type something in and then press enter to close the dialog. This
function enables that behavior.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to affect.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>editable</code></em> :</span></td>
<td> Editable to affect.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2714340"></a><h3>
<a name="gnome-dialog-append-buttons"></a>gnome_dialog_append_buttons ()</h3>
<a class="indexterm" name="id2714356"></a><pre class="programlisting">void gnome_dialog_append_buttons (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *first,
...);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_append_buttons</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function is mostly for internal library use. You should use
<a href="GnomeDialog.html#gnome-dialog-new"><code class="function">gnome_dialog_new()</code></a> instead. See that function for a description of
the button arguments.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to add buttons to.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>first</code></em> :</span></td>
<td> First button to add.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>...</code></em> :</span></td>
<td> varargs list of additional buttons, NULL-terminated.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2714476"></a><h3>
<a name="gnome-dialog-append-button"></a>gnome_dialog_append_button ()</h3>
<a class="indexterm" name="id2714493"></a><pre class="programlisting">void gnome_dialog_append_button (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *button_name);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_append_button</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Add a button to a dialog after its initial construction.
This function is mostly for internal library use. You should use
<a href="GnomeDialog.html#gnome-dialog-new"><code class="function">gnome_dialog_new()</code></a> instead. See that function for a description of
the button argument.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to add button to.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>button_name</code></em> :</span></td>
<td> Button to add.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2714598"></a><h3>
<a name="gnome-dialog-append-buttonsv"></a>gnome_dialog_append_buttonsv ()</h3>
<a class="indexterm" name="id2714614"></a><pre class="programlisting">void gnome_dialog_append_buttonsv (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar **buttons);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_append_buttonsv</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
For internal use, language bindings, etc. Use <a href="GnomeDialog.html#gnome-dialog-new"><code class="function">gnome_dialog_new()</code></a> instead.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to append to.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>buttons</code></em> :</span></td>
<td> NULL-terminated vector of buttons to append.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2714719"></a><h3>
<a name="gnome-dialog-append-button-with-pixmap"></a>gnome_dialog_append_button_with_pixmap ()</h3>
<a class="indexterm" name="id2714735"></a><pre class="programlisting">void gnome_dialog_append_button_with_pixmap
(<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *button_name,
const gchar *pixmap_name);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_append_button_with_pixmap</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Add a pixmap button to a dialog.
<a href="GnomeDialog.html#gnome-dialog-new"><code class="function">gnome_dialog_new()</code></a> does not permit custom buttons with pixmaps, so if you
want one of those you need to use this function.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to add the button to.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>button_name</code></em> :</span></td>
<td> Name of the button, or stock button #define.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>pixmap_name</code></em> :</span></td>
<td> Stock pixmap name.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2714865"></a><h3>
<a name="gnome-dialog-append-buttons-with-pixmaps"></a>gnome_dialog_append_buttons_with_pixmaps ()</h3>
<a class="indexterm" name="id2714881"></a><pre class="programlisting">void gnome_dialog_append_buttons_with_pixmaps
(<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar **names,
const gchar **pixmaps);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_append_buttons_with_pixmaps</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Simply calls <a href="GnomeDialog.html#gnome-dialog-append-button-with-pixmap"><code class="function">gnome_dialog_append_button_with_pixmap()</code></a> repeatedly.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> <a href="GnomeDialog.html" title="GnomeDialog"><span class="type">GnomeDialog</span></a> to append to.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>names</code></em> :</span></td>
<td> NULL-terminated vector of button names.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>pixmaps</code></em> :</span></td>
<td> NULL-terminated vector of pixmap names.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715010"></a><h3>
<a name="gnome-dialog-construct"></a>gnome_dialog_construct ()</h3>
<a class="indexterm" name="id2715026"></a><pre class="programlisting">void gnome_dialog_construct (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *title,
va_list ap);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_construct</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
See <a href="GnomeDialog.html#gnome-dialog-new"><code class="function">gnome_dialog_new()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> Dialog to construct.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>title</code></em> :</span></td>
<td> Title of the dialog.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>ap</code></em> :</span></td>
<td> va_list of buttons, NULL-terminated.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715143"></a><h3>
<a name="gnome-dialog-constructv"></a>gnome_dialog_constructv ()</h3>
<a class="indexterm" name="id2715158"></a><pre class="programlisting">void gnome_dialog_constructv (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
const gchar *title,
const gchar **buttons);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gnome_dialog_constructv</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
See <a href="GnomeDialog.html#gnome-dialog-new"><code class="function">gnome_dialog_new()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td> Dialog to construct.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>title</code></em> :</span></td>
<td> Title of the dialog.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>buttons</code></em> :</span></td>
<td> NULL-terminated array of buttons.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715276"></a><h3>
<a name="GNOME-STOCK-BUTTON-OK:CAPS"></a>GNOME_STOCK_BUTTON_OK</h3>
<a class="indexterm" name="id2715292"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_OK GTK_STOCK_OK
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_OK</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715321"></a><h3>
<a name="GNOME-STOCK-BUTTON-CANCEL:CAPS"></a>GNOME_STOCK_BUTTON_CANCEL</h3>
<a class="indexterm" name="id2715337"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_CANCEL GTK_STOCK_CANCEL
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_CANCEL</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715367"></a><h3>
<a name="GNOME-STOCK-BUTTON-YES:CAPS"></a>GNOME_STOCK_BUTTON_YES</h3>
<a class="indexterm" name="id2715383"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_YES GTK_STOCK_YES
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_YES</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715413"></a><h3>
<a name="GNOME-STOCK-BUTTON-NO:CAPS"></a>GNOME_STOCK_BUTTON_NO</h3>
<a class="indexterm" name="id2715428"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_NO GTK_STOCK_NO
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_NO</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715458"></a><h3>
<a name="GNOME-STOCK-BUTTON-CLOSE:CAPS"></a>GNOME_STOCK_BUTTON_CLOSE</h3>
<a class="indexterm" name="id2715474"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_CLOSE GTK_STOCK_CLOSE
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_CLOSE</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715504"></a><h3>
<a name="GNOME-STOCK-BUTTON-APPLY:CAPS"></a>GNOME_STOCK_BUTTON_APPLY</h3>
<a class="indexterm" name="id2715520"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_APPLY GTK_STOCK_APPLY
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_APPLY</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715550"></a><h3>
<a name="GNOME-STOCK-BUTTON-HELP:CAPS"></a>GNOME_STOCK_BUTTON_HELP</h3>
<a class="indexterm" name="id2715566"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_HELP GTK_STOCK_HELP
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_HELP</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715595"></a><h3>
<a name="GNOME-STOCK-BUTTON-NEXT:CAPS"></a>GNOME_STOCK_BUTTON_NEXT</h3>
<a class="indexterm" name="id2715611"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_NEXT GTK_STOCK_GO_FORWARD
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_NEXT</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715641"></a><h3>
<a name="GNOME-STOCK-BUTTON-PREV:CAPS"></a>GNOME_STOCK_BUTTON_PREV</h3>
<a class="indexterm" name="id2715657"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_PREV GTK_STOCK_GO_BACK
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_PREV</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715687"></a><h3>
<a name="GNOME-STOCK-BUTTON-UP:CAPS"></a>GNOME_STOCK_BUTTON_UP</h3>
<a class="indexterm" name="id2715702"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_UP GTK_STOCK_GO_UP
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_UP</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715732"></a><h3>
<a name="GNOME-STOCK-BUTTON-DOWN:CAPS"></a>GNOME_STOCK_BUTTON_DOWN</h3>
<a class="indexterm" name="id2715748"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_DOWN GTK_STOCK_GO_DOWN
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_DOWN</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715778"></a><h3>
<a name="GNOME-STOCK-BUTTON-FONT:CAPS"></a>GNOME_STOCK_BUTTON_FONT</h3>
<a class="indexterm" name="id2715794"></a><pre class="programlisting">#define GNOME_STOCK_BUTTON_FONT GTK_STOCK_SELECT_FONT
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">GNOME_STOCK_BUTTON_FONT</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This button has been replaced by one in GTK+ and new code should use that.
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2715825"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id2715835"></a><h3>
<a name="GnomeDialog-clicked"></a>The <code class="literal">"clicked"</code> signal</h3>
<a class="indexterm" name="id2715851"></a><pre class="programlisting">void user_function (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gint arg1,
gpointer user_data) : Run Last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2715940"></a><h3>
<a name="GnomeDialog-close"></a>The <code class="literal">"close"</code> signal</h3>
<a class="indexterm" name="id2715956"></a><pre class="programlisting">gboolean user_function (<a href="GnomeDialog.html" title="GnomeDialog">GnomeDialog</a> *dialog,
gpointer user_data) : Run Last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>dialog</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>
|