/usr/share/gtk-doc/html/epiphany/EphyNodeView.html is in epiphany-browser-dev 3.4.0.1-2ubuntu1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EphyNodeView</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Epiphany Reference Manual">
<link rel="up" href="ch03.html" title="Widgets">
<link rel="prev" href="EphyLocationEntry.html" title="EphyLocationEntry">
<link rel="next" href="EphySearchEntry.html" title="EphySearchEntry">
<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="EphyLocationEntry.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch03.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">Epiphany Reference Manual</th>
<td><a accesskey="n" href="EphySearchEntry.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#EphyNodeView.synopsis" class="shortcut">Top</a>
|
<a href="#EphyNodeView.description" class="shortcut">Description</a>
|
<a href="#EphyNodeView.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#EphyNodeView.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
<a href="#EphyNodeView.properties" class="shortcut">Properties</a>
|
<a href="#EphyNodeView.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="EphyNodeView"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="EphyNodeView.top_of_page"></a>EphyNodeView</span></h2>
<p>EphyNodeView — A <span class="type">GtkTreeView</span> displaying a collection of <span class="type">EphyNode</span> elements.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="EphyNodeView.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct <a class="link" href="EphyNodeView.html#EphyNodeView-struct" title="struct EphyNodeView">EphyNodeView</a>;
enum <a class="link" href="EphyNodeView.html#EphyNodeViewPriority" title="enum EphyNodeViewPriority">EphyNodeViewPriority</a>;
enum <a class="link" href="EphyNodeView.html#EphyNodeViewFlags" title="enum EphyNodeViewFlags">EphyNodeViewFlags</a>;
<span class="returnvalue">GtkWidget</span> * <a class="link" href="EphyNodeView.html#ephy-node-view-new" title="ephy_node_view_new ()">ephy_node_view_new</a> (<em class="parameter"><code><span class="type">EphyNode</span> *root</code></em>,
<em class="parameter"><code><span class="type">EphyNodeFilter</span> *filter</code></em>);
<span class="returnvalue">void</span> <a class="link" href="EphyNodeView.html#ephy-node-view-add-toggle" title="ephy_node_view_add_toggle ()">ephy_node_view_add_toggle</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">EphyTreeModelNodeValueFunc</span> value_func</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">int</span> <a class="link" href="EphyNodeView.html#ephy-node-view-add-column" title="ephy_node_view_add_column ()">ephy_node_view_add_column</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
<em class="parameter"><code><span class="type">GType</span> value_type</code></em>,
<em class="parameter"><code><span class="type">guint</span> prop_id</code></em>,
<em class="parameter"><code><a class="link" href="EphyNodeView.html#EphyNodeViewFlags" title="enum EphyNodeViewFlags"><span class="type">EphyNodeViewFlags</span></a> flags</code></em>,
<em class="parameter"><code><span class="type">EphyTreeModelNodeValueFunc</span> icon_func</code></em>,
<em class="parameter"><code><span class="type">GtkTreeViewColumn</span> **ret</code></em>);
<span class="returnvalue">int</span> <a class="link" href="EphyNodeView.html#ephy-node-view-add-data-column" title="ephy_node_view_add_data_column ()">ephy_node_view_add_data_column</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GType</span> value_type</code></em>,
<em class="parameter"><code><span class="type">guint</span> prop_id</code></em>,
<em class="parameter"><code><span class="type">EphyTreeModelNodeValueFunc</span> func</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);
<span class="returnvalue">void</span> <a class="link" href="EphyNodeView.html#ephy-node-view-set-sort" title="ephy_node_view_set_sort ()">ephy_node_view_set_sort</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GType</span> value_type</code></em>,
<em class="parameter"><code><span class="type">guint</span> prop_id</code></em>,
<em class="parameter"><code><span class="type">GtkSortType</span> sort_type</code></em>);
<span class="returnvalue">void</span> <a class="link" href="EphyNodeView.html#ephy-node-view-set-priority" title="ephy_node_view_set_priority ()">ephy_node_view_set_priority</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="EphyNodeView.html#EphyNodeViewPriority" title="enum EphyNodeViewPriority"><span class="type">EphyNodeViewPriority</span></a> priority_prop_id</code></em>);
<span class="returnvalue">void</span> <a class="link" href="EphyNodeView.html#ephy-node-view-remove" title="ephy_node_view_remove ()">ephy_node_view_remove</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>);
<span class="returnvalue">GList</span> * <a class="link" href="EphyNodeView.html#ephy-node-view-get-selection" title="ephy_node_view_get_selection ()">ephy_node_view_get_selection</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="EphyNodeView.html#ephy-node-view-select-node" title="ephy_node_view_select_node ()">ephy_node_view_select_node</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">EphyNode</span> *node</code></em>);
<span class="returnvalue">void</span> <a class="link" href="EphyNodeView.html#ephy-node-view-enable-drag-source" title="ephy_node_view_enable_drag_source ()">ephy_node_view_enable_drag_source</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code>const <span class="type">GtkTargetEntry</span> *types</code></em>,
<em class="parameter"><code><span class="type">int</span> n_types</code></em>,
<em class="parameter"><code><span class="type">int</span> base_drag_column_id</code></em>,
<em class="parameter"><code><span class="type">int</span> extra_drag_column_id</code></em>);
<span class="returnvalue">void</span> <a class="link" href="EphyNodeView.html#ephy-node-view-enable-drag-dest" title="ephy_node_view_enable_drag_dest ()">ephy_node_view_enable_drag_dest</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code>const <span class="type">GtkTargetEntry</span> *types</code></em>,
<em class="parameter"><code><span class="type">int</span> n_types</code></em>);
<span class="returnvalue">void</span> <a class="link" href="EphyNodeView.html#ephy-node-view-edit" title="ephy_node_view_edit ()">ephy_node_view_edit</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> remove_if_cancelled</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="EphyNodeView.html#ephy-node-view-is-target" title="ephy_node_view_is_target ()">ephy_node_view_is_target</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>);
<span class="returnvalue">void</span> <a class="link" href="EphyNodeView.html#ephy-node-view-popup" title="ephy_node_view_popup ()">ephy_node_view_popup</a> (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GtkWidget</span> *menu</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="EphyNodeView.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----GInitiallyUnowned
+----GtkWidget
+----GtkContainer
+----GtkTreeView
+----EphyNodeView
</pre>
</div>
<div class="refsect1">
<a name="EphyNodeView.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
EphyNodeView implements
AtkImplementorIface, GtkBuildable and GtkScrollable.</p>
</div>
<div class="refsect1">
<a name="EphyNodeView.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="EphyNodeView.html#EphyNodeView--filter" title='The "filter" property'>filter</a>" <span class="type">EphyNodeFilter</span>* : Read / Write
"<a class="link" href="EphyNodeView.html#EphyNodeView--root" title='The "root" property'>root</a>" <span class="type">gpointer</span> : Read / Write / Construct Only
</pre>
</div>
<div class="refsect1">
<a name="EphyNodeView.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="EphyNodeView.html#EphyNodeView-node-activated" title='The "node-activated" signal'>node-activated</a>" : <code class="literal">Run Last</code>
"<a class="link" href="EphyNodeView.html#EphyNodeView-node-dropped" title='The "node-dropped" signal'>node-dropped</a>" : <code class="literal">Run Last</code>
"<a class="link" href="EphyNodeView.html#EphyNodeView-node-middle-clicked" title='The "node-middle-clicked" signal'>node-middle-clicked</a>" : <code class="literal">Run Last</code>
"<a class="link" href="EphyNodeView.html#EphyNodeView-node-selected" title='The "node-selected" signal'>node-selected</a>" : <code class="literal">Run Last</code>
"<a class="link" href="EphyNodeView.html#EphyNodeView-node-toggled" title='The "node-toggled" signal'>node-toggled</a>" : <code class="literal">Run Last</code>
</pre>
</div>
<div class="refsect1">
<a name="EphyNodeView.description"></a><h2>Description</h2>
<p>
<a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> implements a <span class="type">GtkTreeView</span> displaying a given set of <span class="type">EphyNode</span>
elements. It implements drag and dropping.
</p>
</div>
<div class="refsect1">
<a name="EphyNodeView.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="EphyNodeView-struct"></a><h3>struct EphyNodeView</h3>
<pre class="programlisting">struct EphyNodeView;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="EphyNodeViewPriority"></a><h3>enum EphyNodeViewPriority</h3>
<pre class="programlisting">typedef enum {
EPHY_NODE_VIEW_ALL_PRIORITY,
EPHY_NODE_VIEW_SPECIAL_PRIORITY,
EPHY_NODE_VIEW_NORMAL_PRIORITY
} EphyNodeViewPriority;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="EphyNodeViewFlags"></a><h3>enum EphyNodeViewFlags</h3>
<pre class="programlisting">typedef enum {
EPHY_NODE_VIEW_SHOW_PRIORITY = 1 << 0,
EPHY_NODE_VIEW_SORTABLE = 1 << 1,
EPHY_NODE_VIEW_EDITABLE = 1 << 2,
EPHY_NODE_VIEW_SEARCHABLE = 1 << 3,
EPHY_NODE_VIEW_ELLIPSIZED = 1 << 4
} EphyNodeViewFlags;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-new"></a><h3>ephy_node_view_new ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * ephy_node_view_new (<em class="parameter"><code><span class="type">EphyNode</span> *root</code></em>,
<em class="parameter"><code><span class="type">EphyNodeFilter</span> *filter</code></em>);</pre>
<p>
Creates a new <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> using <em class="parameter"><code>filter</code></em> as the model and <em class="parameter"><code>root</code></em> as the root
node.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>root</code></em> :</span></p></td>
<td>the root <span class="type">EphyNode</span> for the view</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em> :</span></p></td>
<td>a filter model for the view</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> as a <span class="type">GtkWidget</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-add-toggle"></a><h3>ephy_node_view_add_toggle ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ephy_node_view_add_toggle (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">EphyTreeModelNodeValueFunc</span> value_func</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Append a new toggle column to <em class="parameter"><code>view</code></em> with its value set by <em class="parameter"><code>value_func</code></em> which can
receive the optional <em class="parameter"><code>data</code></em> parameter.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> widget</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value_func</code></em> :</span></p></td>
<td>an <span class="type">EphyTreeModelNodeValueFunc</span> function to set column values</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>user_data to be passed to <em class="parameter"><code>value_func</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-add-column"></a><h3>ephy_node_view_add_column ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> ephy_node_view_add_column (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *title</code></em>,
<em class="parameter"><code><span class="type">GType</span> value_type</code></em>,
<em class="parameter"><code><span class="type">guint</span> prop_id</code></em>,
<em class="parameter"><code><a class="link" href="EphyNodeView.html#EphyNodeViewFlags" title="enum EphyNodeViewFlags"><span class="type">EphyNodeViewFlags</span></a> flags</code></em>,
<em class="parameter"><code><span class="type">EphyTreeModelNodeValueFunc</span> icon_func</code></em>,
<em class="parameter"><code><span class="type">GtkTreeViewColumn</span> **ret</code></em>);</pre>
<p>
Adds a new column, corresponding to a <em class="parameter"><code>prop_id</code></em> of the model, to the <em class="parameter"><code>view</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>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
<td>title for the column</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value_type</code></em> :</span></p></td>
<td>type to be held by the column</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>prop_id</code></em> :</span></p></td>
<td>numeric id corresponding to the column in the model to be shown</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>flags for the new column</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_func</code></em> :</span></p></td>
<td>a function providing the icon for the column</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ret</code></em> :</span></p></td>
<td>location to store the created column</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the id of the new column</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-add-data-column"></a><h3>ephy_node_view_add_data_column ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> ephy_node_view_add_data_column (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GType</span> value_type</code></em>,
<em class="parameter"><code><span class="type">guint</span> prop_id</code></em>,
<em class="parameter"><code><span class="type">EphyTreeModelNodeValueFunc</span> func</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<p>
Adds a new column to <em class="parameter"><code>view</code></em>, taking its value from a column in the model defined
by <em class="parameter"><code>prop_id</code></em>, or from <em class="parameter"><code>func</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>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value_type</code></em> :</span></p></td>
<td>type to be held by the column</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>prop_id</code></em> :</span></p></td>
<td>property corresponding to the model behind <em class="parameter"><code>view</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td>a data function for the column or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>optional data for <em class="parameter"><code>func</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the id of the new column</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-set-sort"></a><h3>ephy_node_view_set_sort ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ephy_node_view_set_sort (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GType</span> value_type</code></em>,
<em class="parameter"><code><span class="type">guint</span> prop_id</code></em>,
<em class="parameter"><code><span class="type">GtkSortType</span> sort_type</code></em>);</pre>
<p>
Adds a sort column to the <em class="parameter"><code>view</code></em> corresponding to <em class="parameter"><code>prop_id</code></em> in the model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value_type</code></em> :</span></p></td>
<td>type of the value held at <em class="parameter"><code>prop_id</code></em> by the model</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>prop_id</code></em> :</span></p></td>
<td>column id in the model</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sort_type</code></em> :</span></p></td>
<td>the sort mode</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-set-priority"></a><h3>ephy_node_view_set_priority ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ephy_node_view_set_priority (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><a class="link" href="EphyNodeView.html#EphyNodeViewPriority" title="enum EphyNodeViewPriority"><span class="type">EphyNodeViewPriority</span></a> priority_prop_id</code></em>);</pre>
<p>
Adds a priority column to the <em class="parameter"><code>view</code></em> with <em class="parameter"><code>priority_prop_id</code></em> as the value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>priority_prop_id</code></em> :</span></p></td>
<td>one of <a class="link" href="EphyNodeView.html#EphyNodeViewPriority" title="enum EphyNodeViewPriority"><span class="type">EphyNodeViewPriority</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-remove"></a><h3>ephy_node_view_remove ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ephy_node_view_remove (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>);</pre>
<p>
Remove the currently selected nodes from <em class="parameter"><code>view</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>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-get-selection"></a><h3>ephy_node_view_get_selection ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> * ephy_node_view_get_selection (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>);</pre>
<p>
Returns the selected elements of <em class="parameter"><code>view</code></em> as a <span class="type">GList</span> of <span class="type">EphyNode</span> elements.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</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> of <span class="type">EphyNode</span> elements</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-select-node"></a><h3>ephy_node_view_select_node ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ephy_node_view_select_node (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">EphyNode</span> *node</code></em>);</pre>
<p>
Puts the selection of <em class="parameter"><code>view</code></em> on <em class="parameter"><code>node</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>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the <span class="type">EphyNode</span> in the <em class="parameter"><code>view</code></em> to be selected</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-enable-drag-source"></a><h3>ephy_node_view_enable_drag_source ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ephy_node_view_enable_drag_source (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code>const <span class="type">GtkTargetEntry</span> *types</code></em>,
<em class="parameter"><code><span class="type">int</span> n_types</code></em>,
<em class="parameter"><code><span class="type">int</span> base_drag_column_id</code></em>,
<em class="parameter"><code><span class="type">int</span> extra_drag_column_id</code></em>);</pre>
<p>
Sets <em class="parameter"><code>view</code></em> as a drag source.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>types</code></em> :</span></p></td>
<td>a <span class="type">GtkTargetEntry</span> for the <em class="parameter"><code>view</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_types</code></em> :</span></p></td>
<td>length of <em class="parameter"><code>types</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_drag_column_id</code></em> :</span></p></td>
<td>id of the column for ephy_tree_model_sort_set_base_drag_column_id</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>extra_drag_column_id</code></em> :</span></p></td>
<td>id of the column for ephy_tree_model_sort_set_extra_drag_column_id</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-enable-drag-dest"></a><h3>ephy_node_view_enable_drag_dest ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ephy_node_view_enable_drag_dest (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code>const <span class="type">GtkTargetEntry</span> *types</code></em>,
<em class="parameter"><code><span class="type">int</span> n_types</code></em>);</pre>
<p>
Set the types of drag destination allowed by <em class="parameter"><code>view</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>view</code></em> :</span></p></td>
<td>the <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>types</code></em> :</span></p></td>
<td>types allowed as <span class="type">GtkTargetEntry</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n_types</code></em> :</span></p></td>
<td>count of <em class="parameter"><code>types</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-edit"></a><h3>ephy_node_view_edit ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ephy_node_view_edit (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">gboolean</span> remove_if_cancelled</code></em>);</pre>
<p>
Edits the currently selected node in <em class="parameter"><code>view</code></em>, the <em class="parameter"><code>remove_if_cancelled</code></em> parameter
controls if the node should be removed if editing is cancelled.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>remove_if_cancelled</code></em> :</span></p></td>
<td>whether the edited node should be removed if editing is cancelled</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-is-target"></a><h3>ephy_node_view_is_target ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> ephy_node_view_is_target (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>);</pre>
<p>
Tells if <em class="parameter"><code>view</code></em> is currently focused.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>
</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>view</code></em> is focused</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ephy-node-view-popup"></a><h3>ephy_node_view_popup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> ephy_node_view_popup (<em class="parameter"><code><a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view</code></em>,
<em class="parameter"><code><span class="type">GtkWidget</span> *menu</code></em>);</pre>
<p>
Triggers the popup of <em class="parameter"><code>menu</code></em> in <em class="parameter"><code>view</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>view</code></em> :</span></p></td>
<td>an <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> widget</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>menu</code></em> :</span></p></td>
<td>a <span class="type">GtkMenu</span> to be shown</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="EphyNodeView.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="EphyNodeView--filter"></a><h3>The <code class="literal">"filter"</code> property</h3>
<pre class="programlisting"> "filter" <span class="type">EphyNodeFilter</span>* : Read / Write</pre>
<p>
An <span class="type">EphyNodeFilter</span> object to use in the view.
</p>
</div>
<hr>
<div class="refsect2">
<a name="EphyNodeView--root"></a><h3>The <code class="literal">"root"</code> property</h3>
<pre class="programlisting"> "root" <span class="type">gpointer</span> : Read / Write / Construct Only</pre>
<p>
A <span class="type">gpointer</span> to the root node of the <span class="type">EphyNode</span> elements of the view.
</p>
</div>
</div>
<div class="refsect1">
<a name="EphyNodeView.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="EphyNodeView-node-activated"></a><h3>The <code class="literal">"node-activated"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view,
<span class="type">gpointer</span> node,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
Emitted when a row is activated.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>the object on which the signal is emitted</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the activated <span class="type">EphyNode</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EphyNodeView-node-dropped"></a><h3>The <code class="literal">"node-dropped"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view,
<span class="type">gpointer</span> node,
<span class="type">gpointer</span> uris,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
Emitted when an <span class="type">EphyNode</span> is dropped into the <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>the object on which the signal is emitted</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the dropped <span class="type">EphyNode</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uris</code></em> :</span></p></td>
<td>URIs from the dragged data</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EphyNodeView-node-middle-clicked"></a><h3>The <code class="literal">"node-middle-clicked"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view,
<span class="type">gpointer</span> node,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
Emitted when the user middle clicks on a row of the <a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>the object on which the signal is emitted</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the clicked <span class="type">EphyNode</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EphyNodeView-node-selected"></a><h3>The <code class="literal">"node-selected"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view,
<span class="type">gpointer</span> node,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
Emitted when a row is selected.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>the object on which the signal is emitted</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the selected <span class="type">EphyNode</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EphyNodeView-node-toggled"></a><h3>The <code class="literal">"node-toggled"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="EphyNodeView.html" title="EphyNodeView"><span class="type">EphyNodeView</span></a> *view,
<span class="type">gpointer</span> node,
<span class="type">gboolean</span> checked,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
Emitted when a row value is toggled, only emitted for toggle columns.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
<td>the object on which the signal is emitted</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>node</code></em> :</span></p></td>
<td>the target <span class="type">EphyNode</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>checked</code></em> :</span></p></td>
<td>the new value of the toggle column</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|