/usr/share/doc/libgladeui-1-dev/html/gladeui-Glade-Utils.html is in libgladeui-1-dev 3.8.0-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Glade Utils</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Glade User Interface Designer Reference Manual">
<link rel="up" href="misc.html" title="Part IV. Miscellaneous utilities">
<link rel="prev" href="gladeui-Glade-Parameter.html" title="Glade Parameter">
<link rel="next" href="ix01.html" title="Index">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</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="gladeui-Glade-Parameter.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="misc.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">Glade User Interface Designer Reference Manual</th>
<td><a accesskey="n" href="ix01.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gladeui-Glade-Utils.synopsis" class="shortcut">Top</a>
|
<a href="#gladeui-Glade-Utils.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gladeui-Glade-Utils"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gladeui-Glade-Utils.top_of_page"></a>Glade Utils</span></h2>
<p>Glade Utils — Welcome to the zoo.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gladeui-Glade-Utils.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">enum <a class="link" href="gladeui-Glade-Utils.html#GladeUtilFileDialogType" title="enum GladeUtilFileDialogType">GladeUtilFileDialogType</a>;
enum <a class="link" href="gladeui-Glade-Utils.html#GladeUIMessageType" title="enum GladeUIMessageType">GladeUIMessageType</a>;
<span class="returnvalue">GType</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-get-type-from-name" title="glade_util_get_type_from_name ()">glade_util_get_type_from_name</a> (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> have_func</code></em>);
<span class="returnvalue">GParamSpec</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-utils-get-pspec-from-funcname" title="glade_utils_get_pspec_from_funcname ()">glade_utils_get_pspec_from_funcname</a> (<em class="parameter"><code>const <span class="type">gchar</span> *funcname</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-ui-message" title="glade_util_ui_message ()">glade_util_ui_message</a> (<em class="parameter"><code><span class="type">GtkWidget</span> *parent</code></em>,
<em class="parameter"><code><a class="link" href="gladeui-Glade-Utils.html#GladeUIMessageType" title="enum GladeUIMessageType"><span class="type">GladeUIMessageType</span></a> type</code></em>,
<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *format</code></em>,
<em class="parameter"><code>...</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-flash-message" title="glade_util_flash_message ()">glade_util_flash_message</a> (<em class="parameter"><code><span class="type">GtkWidget</span> *statusbar</code></em>,
<em class="parameter"><code><span class="type">guint</span> context_id</code></em>,
<em class="parameter"><code><span class="type">gchar</span> *format</code></em>,
<em class="parameter"><code>...</code></em>);
<span class="returnvalue">gint</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-compare-stock-labels" title="glade_util_compare_stock_labels ()">glade_util_compare_stock_labels</a> (<em class="parameter"><code><span class="type">gconstpointer</span> a</code></em>,
<em class="parameter"><code><span class="type">gconstpointer</span> b</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-hide-window" title="glade_util_hide_window ()">glade_util_hide_window</a> (<em class="parameter"><code><span class="type">GtkWindow</span> *window</code></em>);
<span class="returnvalue">gchar</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-gtk-combo-func" title="glade_util_gtk_combo_func ()">glade_util_gtk_combo_func</a> (<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">gpointer</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-gtk-combo-find" title="glade_util_gtk_combo_find ()">glade_util_gtk_combo_find</a> (<em class="parameter"><code><span class="type">GtkCombo</span> *combo</code></em>);
<span class="returnvalue">GtkWidget</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-file-dialog-new" title="glade_util_file_dialog_new ()">glade_util_file_dialog_new</a> (<em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
<em class="parameter"><code><a class="link" href="GladeProject.html" title="GladeProject"><span class="type">GladeProject</span></a> *project</code></em>,
<em class="parameter"><code><span class="type">GtkWindow</span> *parent</code></em>,
<em class="parameter"><code><a class="link" href="gladeui-Glade-Utils.html#GladeUtilFileDialogType" title="enum GladeUtilFileDialogType"><span class="type">GladeUtilFileDialogType</span></a> action</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-replace" title="glade_util_replace ()">glade_util_replace</a> (<em class="parameter"><code><span class="type">gchar</span> *str</code></em>,
<em class="parameter"><code><span class="type">gchar</span> a</code></em>,
<em class="parameter"><code><span class="type">gchar</span> b</code></em>);
<span class="returnvalue">gchar</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-read-prop-name" title="glade_util_read_prop_name ()">glade_util_read_prop_name</a> (<em class="parameter"><code>const <span class="type">gchar</span> *str</code></em>);
<span class="returnvalue">gchar</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-duplicate-underscores" title="glade_util_duplicate_underscores ()">glade_util_duplicate_underscores</a> (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-add-selection" title="glade_util_add_selection ()">glade_util_add_selection</a> (<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-remove-selection" title="glade_util_remove_selection ()">glade_util_remove_selection</a> (<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-has-selection" title="glade_util_has_selection ()">glade_util_has_selection</a> (<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-clear-selection" title="glade_util_clear_selection ()">glade_util_clear_selection</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">GList</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-get-selection" title="glade_util_get_selection ()">glade_util_get_selection</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">GList</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-container-get-all-children" title="glade_util_container_get_all_children ()">glade_util_container_get_all_children</a>
(<em class="parameter"><code><span class="type">GtkContainer</span> *container</code></em>);
<span class="returnvalue">gint</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-count-placeholders" title="glade_util_count_placeholders ()">glade_util_count_placeholders</a> (<em class="parameter"><code><a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a> *parent</code></em>);
<span class="returnvalue">GtkTreeIter</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-find-iter-by-widget" title="glade_util_find_iter_by_widget ()">glade_util_find_iter_by_widget</a> (<em class="parameter"><code><span class="type">GtkTreeModel</span> *model</code></em>,
<em class="parameter"><code><a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a> *findme</code></em>,
<em class="parameter"><code><span class="type">gint</span> column</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-basenames-match" title="glade_util_basenames_match ()">glade_util_basenames_match</a> (<em class="parameter"><code>const <span class="type">gchar</span> *path1</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *path2</code></em>);
<span class="returnvalue">GList</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-purify-list" title="glade_util_purify_list ()">glade_util_purify_list</a> (<em class="parameter"><code><span class="type">GList</span> *list</code></em>);
<span class="returnvalue">GList</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-added-in-list" title="glade_util_added_in_list ()">glade_util_added_in_list</a> (<em class="parameter"><code><span class="type">GList</span> *old_list</code></em>,
<em class="parameter"><code><span class="type">GList</span> *new_list</code></em>);
<span class="returnvalue">GList</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-removed-from-list" title="glade_util_removed_from_list ()">glade_util_removed_from_list</a> (<em class="parameter"><code><span class="type">GList</span> *old_list</code></em>,
<em class="parameter"><code><span class="type">GList</span> *new_list</code></em>);
<span class="returnvalue">gchar</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-canonical-path" title="glade_util_canonical_path ()">glade_util_canonical_path</a> (<em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-copy-file" title="glade_util_copy_file ()">glade_util_copy_file</a> (<em class="parameter"><code>const <span class="type">gchar</span> *src_path</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *dest_path</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-class-implements-interface" title="glade_util_class_implements_interface ()">glade_util_class_implements_interface</a>
(<em class="parameter"><code><span class="type">GType</span> class_type</code></em>,
<em class="parameter"><code><span class="type">GType</span> iface_type</code></em>);
<span class="returnvalue">GModule</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-load-library" title="glade_util_load_library ()">glade_util_load_library</a> (<em class="parameter"><code>const <span class="type">gchar</span> *library_name</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-file-is-writeable" title="glade_util_file_is_writeable ()">glade_util_file_is_writeable</a> (<em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-have-devhelp" title="glade_util_have_devhelp ()">glade_util_have_devhelp</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">GtkWidget</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-get-devhelp-icon" title="glade_util_get_devhelp_icon ()">glade_util_get_devhelp_icon</a> (<em class="parameter"><code><span class="type">GtkIconSize</span> size</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-search-devhelp" title="glade_util_search_devhelp ()">glade_util_search_devhelp</a> (<em class="parameter"><code>const <span class="type">gchar</span> *book</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *page</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *search</code></em>);
<span class="returnvalue">GtkWidget</span> * <a class="link" href="gladeui-Glade-Utils.html#glade-util-get-placeholder-from-pointer" title="glade_util_get_placeholder_from_pointer ()">glade_util_get_placeholder_from_pointer</a>
(<em class="parameter"><code><span class="type">GtkContainer</span> *container</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-object-is-loading" title="glade_util_object_is_loading ()">glade_util_object_is_loading</a> (<em class="parameter"><code><span class="type">GObject</span> *object</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-url-show" title="glade_util_url_show ()">glade_util_url_show</a> (<em class="parameter"><code>const <span class="type">gchar</span> *url</code></em>);
<span class="returnvalue">time_t</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-get-file-mtime" title="glade_util_get_file_mtime ()">glade_util_get_file_mtime</a> (<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">void</span> <a class="link" href="gladeui-Glade-Utils.html#glade-util-draw-selection-nodes" title="glade_util_draw_selection_nodes ()">glade_util_draw_selection_nodes</a> (<em class="parameter"><code><span class="type">GdkWindow</span> *expose_win</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gladeui-Glade-Utils.description"></a><h2>Description</h2>
<p>
This is where all of that really usefull miscalanious stuff lands up.
</p>
</div>
<div class="refsect1">
<a name="gladeui-Glade-Utils.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GladeUtilFileDialogType"></a><h3>enum GladeUtilFileDialogType</h3>
<pre class="programlisting">typedef enum {
GLADE_FILE_DIALOG_ACTION_OPEN,
GLADE_FILE_DIALOG_ACTION_SAVE
} GladeUtilFileDialogType;
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GladeUIMessageType"></a><h3>enum GladeUIMessageType</h3>
<pre class="programlisting">typedef enum {
GLADE_UI_INFO,
GLADE_UI_WARN,
GLADE_UI_ERROR,
GLADE_UI_ARE_YOU_SURE,
GLADE_UI_YES_OR_NO
} GladeUIMessageType;
</pre>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-get-type-from-name"></a><h3>glade_util_get_type_from_name ()</h3>
<pre class="programlisting"><span class="returnvalue">GType</span> glade_util_get_type_from_name (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> have_func</code></em>);</pre>
<p>
Returns the type using the "get type" function name based on <em class="parameter"><code>name</code></em>.
If the <em class="parameter"><code>have_func</code></em> flag is true,<em class="parameter"><code>name</code></em> is used directly, otherwise the get-type
function is contrived from <em class="parameter"><code>name</code></em> then used.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>the name of the <span class="type">GType</span> - like 'GtkWidget' or a "get-type" function.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>have_func</code></em> :</span></p></td>
<td>function-name flag -- true if the name is a "get-type" function.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <span class="type">GType</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-utils-get-pspec-from-funcname"></a><h3>glade_utils_get_pspec_from_funcname ()</h3>
<pre class="programlisting"><span class="returnvalue">GParamSpec</span> * glade_utils_get_pspec_from_funcname (<em class="parameter"><code>const <span class="type">gchar</span> *funcname</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>funcname</code></em> :</span></p></td>
<td>the symbol name of a function to generate a <span class="type">GParamSpec</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <span class="type">GParamSpec</span> created by the delagate function
specified by <em class="parameter"><code>funcname</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-ui-message"></a><h3>glade_util_ui_message ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> glade_util_ui_message (<em class="parameter"><code><span class="type">GtkWidget</span> *parent</code></em>,
<em class="parameter"><code><a class="link" href="gladeui-Glade-Utils.html#GladeUIMessageType" title="enum GladeUIMessageType"><span class="type">GladeUIMessageType</span></a> type</code></em>,
<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *format</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
Creates a new warning dialog window as a child of <em class="parameter"><code>parent</code></em> containing
the text of <em class="parameter"><code>format</code></em>, runs it, then destroys it on close. Depending
on <em class="parameter"><code>type</code></em>, a cancel button may apear or the icon may change.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
<td>a <span class="type">GtkWindow</span> cast as a <span class="type">GtkWidget</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>a <a class="link" href="gladeui-Glade-Utils.html#GladeUIMessageType" title="enum GladeUIMessageType"><span class="type">GladeUIMessageType</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td>a <span class="type">GtkWidget</span> to append to the dialog vbox</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
<td>a printf style format string</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>args for the format.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>True if the <em class="parameter"><code>type</code></em> was GLADE_UI_ARE_YOU_SURE and the user
selected "OK", True if the <em class="parameter"><code>type</code></em> was GLADE_UI_YES_OR_NO and
the user selected "YES"; False otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-flash-message"></a><h3>glade_util_flash_message ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> glade_util_flash_message (<em class="parameter"><code><span class="type">GtkWidget</span> *statusbar</code></em>,
<em class="parameter"><code><span class="type">guint</span> context_id</code></em>,
<em class="parameter"><code><span class="type">gchar</span> *format</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-compare-stock-labels"></a><h3>glade_util_compare_stock_labels ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span> glade_util_compare_stock_labels (<em class="parameter"><code><span class="type">gconstpointer</span> a</code></em>,
<em class="parameter"><code><span class="type">gconstpointer</span> b</code></em>);</pre>
<p>
This is a <span class="type">GCompareFunc</span> that compares the labels of two stock items,
ignoring any '_' characters. It isn't particularly efficient.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <span class="type">gconstpointer</span> to a <span class="type">GtkStockItem</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <span class="type">gconstpointer</span> to a <span class="type">GtkStockItem</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>negative value if <em class="parameter"><code>a</code></em> < <em class="parameter"><code>b</code></em>; zero if <em class="parameter"><code>a</code></em> = <em class="parameter"><code>b</code></em>;
positive value if <em class="parameter"><code>a</code></em> > <em class="parameter"><code>b</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-hide-window"></a><h3>glade_util_hide_window ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> glade_util_hide_window (<em class="parameter"><code><span class="type">GtkWindow</span> *window</code></em>);</pre>
<p>
If you use this function to handle the delete_event of a window, when it
will be shown again it will appear in the position where it was before
beeing hidden.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>a <span class="type">GtkWindow</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-gtk-combo-func"></a><h3>glade_util_gtk_combo_func ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> * glade_util_gtk_combo_func (<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
TODO: write me
</p>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-gtk-combo-find"></a><h3>glade_util_gtk_combo_find ()</h3>
<pre class="programlisting"><span class="returnvalue">gpointer</span> glade_util_gtk_combo_find (<em class="parameter"><code><span class="type">GtkCombo</span> *combo</code></em>);</pre>
<p>
TODO: write me
</p>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-file-dialog-new"></a><h3>glade_util_file_dialog_new ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * glade_util_file_dialog_new (<em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
<em class="parameter"><code><a class="link" href="GladeProject.html" title="GladeProject"><span class="type">GladeProject</span></a> *project</code></em>,
<em class="parameter"><code><span class="type">GtkWindow</span> *parent</code></em>,
<em class="parameter"><code><a class="link" href="gladeui-Glade-Utils.html#GladeUtilFileDialogType" title="enum GladeUtilFileDialogType"><span class="type">GladeUtilFileDialogType</span></a> action</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
<td>dialog title</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>project</code></em> :</span></p></td>
<td>a <a class="link" href="GladeProject.html" title="GladeProject"><span class="type">GladeProject</span></a> used when saving</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
<td>a parent <span class="type">GtkWindow</span> for the dialog</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gladeui-Glade-Utils.html#GladeUtilFileDialogType" title="enum GladeUtilFileDialogType"><span class="type">GladeUtilFileDialogType</span></a> to say if the dialog will open or save</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a "glade file" file chooser dialog. The caller is responsible
for showing the dialog</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-replace"></a><h3>glade_util_replace ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> glade_util_replace (<em class="parameter"><code><span class="type">gchar</span> *str</code></em>,
<em class="parameter"><code><span class="type">gchar</span> a</code></em>,
<em class="parameter"><code><span class="type">gchar</span> b</code></em>);</pre>
<p>
Replaces each occurance of the character <em class="parameter"><code>a</code></em> in <em class="parameter"><code>str</code></em> to <em class="parameter"><code>b</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
<td>a string</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
<td>a <span class="type">gchar</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
<td>a <span class="type">gchar</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-read-prop-name"></a><h3>glade_util_read_prop_name ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> * glade_util_read_prop_name (<em class="parameter"><code>const <span class="type">gchar</span> *str</code></em>);</pre>
<p>
Return a usable version of a property identifier as found
in a freshly parserd <span class="type">GladeInterface</span>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
<td>a string</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-duplicate-underscores"></a><h3>glade_util_duplicate_underscores ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> * glade_util_duplicate_underscores (<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>);</pre>
<p>
Duplicates <em class="parameter"><code>name</code></em>, but the copy has two underscores in place of any single
underscore in the original.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>a string</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated string</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-add-selection"></a><h3>glade_util_add_selection ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> glade_util_add_selection (<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>);</pre>
<p>
Add visual selection to this GtkWidget
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td>a <span class="type">GtkWidget</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-remove-selection"></a><h3>glade_util_remove_selection ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> glade_util_remove_selection (<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>);</pre>
<p>
Remove visual selection from this GtkWidget
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td>a <span class="type">GtkWidget</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-has-selection"></a><h3>glade_util_has_selection ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> glade_util_has_selection (<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td>a <span class="type">GtkWidget</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if <em class="parameter"><code>widget</code></em> has visual selection, <code class="literal">FALSE</code> otherwise</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-clear-selection"></a><h3>glade_util_clear_selection ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> glade_util_clear_selection (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Clear all visual selections
</p>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-get-selection"></a><h3>glade_util_get_selection ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> * glade_util_get_selection (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-container-get-all-children"></a><h3>glade_util_container_get_all_children ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> * glade_util_container_get_all_children
(<em class="parameter"><code><span class="type">GtkContainer</span> *container</code></em>);</pre>
<p>
Use this to itterate over all children in a GtkContainer,
as it used <code class="function">_forall()</code> instead of <code class="function">_foreach()</code> (and the GTK+ version
of this function is simply not exposed).
</p>
<p>
Note that <code class="function">glade_widget_class_get_children()</code> is the high-level
abstraction and will usually end up calling this function.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>container</code></em> :</span></p></td>
<td>a <span class="type">GtkContainer</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">GList</span> giving the contents of <em class="parameter"><code>container</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-count-placeholders"></a><h3>glade_util_count_placeholders ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span> glade_util_count_placeholders (<em class="parameter"><code><a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a> *parent</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
<td>a <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the amount of <a href="GladePlaceholder.html"><span class="type">GladePlaceholders</span></a> parented by <em class="parameter"><code>parent</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-find-iter-by-widget"></a><h3>glade_util_find_iter_by_widget ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkTreeIter</span> * glade_util_find_iter_by_widget (<em class="parameter"><code><span class="type">GtkTreeModel</span> *model</code></em>,
<em class="parameter"><code><a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a> *findme</code></em>,
<em class="parameter"><code><span class="type">gint</span> column</code></em>);</pre>
<p>
Looks through <em class="parameter"><code>model</code></em> for the <span class="type">GtkTreeIter</span> corresponding to
<em class="parameter"><code>findme</code></em> under <em class="parameter"><code>column</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>a <span class="type">GtkTreeModel</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>findme</code></em> :</span></p></td>
<td>a <a class="link" href="GladeWidget.html" title="GladeWidget"><span class="type">GladeWidget</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>column</code></em> :</span></p></td>
<td>a <span class="type">gint</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated <span class="type">GtkTreeIter</span> from <em class="parameter"><code>model</code></em> corresponding
to <em class="parameter"><code>findme</code></em> which should be freed with <code class="function">gtk_tree_iter_free()</code>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-basenames-match"></a><h3>glade_util_basenames_match ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> glade_util_basenames_match (<em class="parameter"><code>const <span class="type">gchar</span> *path1</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *path2</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-purify-list"></a><h3>glade_util_purify_list ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> * glade_util_purify_list (<em class="parameter"><code><span class="type">GList</span> *list</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
<td>A <span class="type">GList</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly allocated version of <em class="parameter"><code>list</code></em> with no
duplicate data entries</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-added-in-list"></a><h3>glade_util_added_in_list ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> * glade_util_added_in_list (<em class="parameter"><code><span class="type">GList</span> *old_list</code></em>,
<em class="parameter"><code><span class="type">GList</span> *new_list</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>old_list</code></em> :</span></p></td>
<td>the old <span class="type">GList</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>new_list</code></em> :</span></p></td>
<td>the new <span class="type">GList</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly allocated <span class="type">GList</span> of elements that
are in <em class="parameter"><code>new</code></em> but not in <em class="parameter"><code>old</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-removed-from-list"></a><h3>glade_util_removed_from_list ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> * glade_util_removed_from_list (<em class="parameter"><code><span class="type">GList</span> *old_list</code></em>,
<em class="parameter"><code><span class="type">GList</span> *new_list</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>old_list</code></em> :</span></p></td>
<td>the old <span class="type">GList</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>new_list</code></em> :</span></p></td>
<td>the new <span class="type">GList</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly allocated <span class="type">GList</span> of elements that
are in <em class="parameter"><code>old</code></em> no longer in <em class="parameter"><code>new</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-canonical-path"></a><h3>glade_util_canonical_path ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> * glade_util_canonical_path (<em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>any path that may contain ".." or "." components</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>an absolute path to the specified file or directory
that contains no ".." or "." components (this does
not call readlink like <code class="function">realpath()</code> does).
Note: on some systems; I think its possible that we dont have
permission to execute in the directory in which the glade
file resides; I decided finally to do it this way anyway
since libc's <code class="function">realpath()</code> does exactly the same.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-copy-file"></a><h3>glade_util_copy_file ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> glade_util_copy_file (<em class="parameter"><code>const <span class="type">gchar</span> *src_path</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *dest_path</code></em>);</pre>
<p>
Copies a file from <em class="parameter"><code>src</code></em> to <em class="parameter"><code>dest</code></em>, queries the user
if it involves overwriting the target and displays an
error message upon failure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>src_path</code></em> :</span></p></td>
<td>the path to the source file</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest_path</code></em> :</span></p></td>
<td>the path to the destination file to create or overwrite.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>True if the copy was successfull.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-class-implements-interface"></a><h3>glade_util_class_implements_interface ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> glade_util_class_implements_interface
(<em class="parameter"><code><span class="type">GType</span> class_type</code></em>,
<em class="parameter"><code><span class="type">GType</span> iface_type</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_type</code></em> :</span></p></td>
<td>A <span class="type">GType</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iface_type</code></em> :</span></p></td>
<td>A <span class="type">GType</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether <em class="parameter"><code>class_type</code></em> implements the <em class="parameter"><code>iface_type</code></em> interface</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-load-library"></a><h3>glade_util_load_library ()</h3>
<pre class="programlisting"><span class="returnvalue">GModule</span> * glade_util_load_library (<em class="parameter"><code>const <span class="type">gchar</span> *library_name</code></em>);</pre>
<p>
Loads the named library from the Glade modules directory, or failing that
from the standard platform specific directories.
</p>
<p>
The <em class="parameter"><code>library_name</code></em> should not include any platform specifix prefix or suffix,
those are automatically added, if needed, by <code class="function">g_module_build_path()</code>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>library_name</code></em> :</span></p></td>
<td>name of the library</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">GModule</span> on success, or <code class="literal">NULL</code> on failure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-file-is-writeable"></a><h3>glade_util_file_is_writeable ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> glade_util_file_is_writeable (<em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>);</pre>
<p>
Checks whether the file at <em class="parameter"><code>path</code></em> is writeable
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>the path to the file</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if file is writeable</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-have-devhelp"></a><h3>glade_util_have_devhelp ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> glade_util_have_devhelp (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the devhelp module is loaded</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-get-devhelp-icon"></a><h3>glade_util_get_devhelp_icon ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * glade_util_get_devhelp_icon (<em class="parameter"><code><span class="type">GtkIconSize</span> size</code></em>);</pre>
<p>
Creates an image displaying the devhelp icon.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the preferred icon size</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <span class="type">GtkImage</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-search-devhelp"></a><h3>glade_util_search_devhelp ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> glade_util_search_devhelp (<em class="parameter"><code>const <span class="type">gchar</span> *book</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *page</code></em>,
<em class="parameter"><code>const <span class="type">gchar</span> *search</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-get-placeholder-from-pointer"></a><h3>glade_util_get_placeholder_from_pointer ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * glade_util_get_placeholder_from_pointer
(<em class="parameter"><code><span class="type">GtkContainer</span> *container</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-object-is-loading"></a><h3>glade_util_object_is_loading ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> glade_util_object_is_loading (<em class="parameter"><code><span class="type">GObject</span> *object</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>A <span class="type">GObject</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether the object's project is being loaded or not.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-url-show"></a><h3>glade_util_url_show ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> glade_util_url_show (<em class="parameter"><code>const <span class="type">gchar</span> *url</code></em>);</pre>
<p>
Portable function for showing an URL <em class="parameter"><code>url</code></em> in a web browser.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>url</code></em> :</span></p></td>
<td>An URL to display</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if a web browser was successfully launched, or FALSE</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-get-file-mtime"></a><h3>glade_util_get_file_mtime ()</h3>
<pre class="programlisting"><span class="returnvalue">time_t</span> glade_util_get_file_mtime (<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Gets the UTC modification time of file <em class="parameter"><code>filename</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
<td>A filename</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for errors</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The mtime of the file, or <code class="literal">0</code> if the file attributes
could not be read.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="glade-util-draw-selection-nodes"></a><h3>glade_util_draw_selection_nodes ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> glade_util_draw_selection_nodes (<em class="parameter"><code><span class="type">GdkWindow</span> *expose_win</code></em>);</pre>
<p>
Redraws any selection nodes that intersect <em class="parameter"><code>expose_win</code></em>. Steps through all
selected widgets, finds their coordinates, and calls <code class="function">glade_util_draw_nodes()</code>
if appropriate.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>expose_win</code></em> :</span></p></td>
<td>a <span class="type">GdkWindow</span>
</td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|