/usr/share/gtk-doc/html/cinnamon/CinnamonApp.html is in cinnamon-doc 3.6.7-8ubuntu1.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CinnamonApp: Cinnamon Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Cinnamon Reference Manual">
<link rel="up" href="ch02.html" title="Application tracking">
<link rel="prev" href="ch02.html" title="Application tracking">
<link rel="next" href="CinnamonWindowTracker.html" title="CinnamonWindowTracker">
<meta name="generator" content="GTK-Doc V1.27 (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="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#CinnamonApp.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
<a href="#CinnamonApp.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#CinnamonApp.properties" class="shortcut">Properties</a></span><span id="nav_signals"> <span class="dim">|</span>
<a href="#CinnamonApp.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="ch02.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="CinnamonWindowTracker.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="CinnamonApp"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="CinnamonApp.top_of_page"></a>CinnamonApp</span></h2>
<p>CinnamonApp — Object representing an application</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="CinnamonApp.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">const <span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-id" title="cinnamon_app_get_id ()">cinnamon_app_get_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GMenuTreeEntry</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-tree-entry" title="cinnamon_app_get_tree_entry ()">cinnamon_app_get_tree_entry</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GDesktopAppInfo</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-app-info" title="cinnamon_app_get_app_info ()">cinnamon_app_get_app_info</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">ClutterActor</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-create-icon-texture" title="cinnamon_app_create_icon_texture ()">cinnamon_app_create_icon_texture</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">ClutterActor</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-faded-icon" title="cinnamon_app_get_faded_icon ()">cinnamon_app_get_faded_icon</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-name" title="cinnamon_app_get_name ()">cinnamon_app_get_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-description" title="cinnamon_app_get_description ()">cinnamon_app_get_description</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-keywords" title="cinnamon_app_get_keywords ()">cinnamon_app_get_keywords</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-is-window-backed" title="cinnamon_app_is_window_backed ()">cinnamon_app_is_window_backed</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-activate-window" title="cinnamon_app_activate_window ()">cinnamon_app_activate_window</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-activate" title="cinnamon_app_activate ()">cinnamon_app_activate</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-activate-full" title="cinnamon_app_activate_full ()">cinnamon_app_activate_full</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-open-new-window" title="cinnamon_app_open_new_window ()">cinnamon_app_open_new_window</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="CinnamonApp.html#CinnamonAppState" title="enum CinnamonAppState"><span class="returnvalue">CinnamonAppState</span></a>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-state" title="cinnamon_app_get_state ()">cinnamon_app_get_state</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-request-quit" title="cinnamon_app_request_quit ()">cinnamon_app_request_quit</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">guint</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-n-windows" title="cinnamon_app_get_n_windows ()">cinnamon_app_get_n_windows</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GSList</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-windows" title="cinnamon_app_get_windows ()">cinnamon_app_get_windows</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GSList</span> *
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-get-pids" title="cinnamon_app_get_pids ()">cinnamon_app_get_pids</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-is-on-workspace" title="cinnamon_app_is_on_workspace ()">cinnamon_app_is_on_workspace</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-launch" title="cinnamon_app_launch ()">cinnamon_app_launch</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-compare-by-name" title="cinnamon_app_compare_by_name ()">cinnamon_app_compare_by_name</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<a class="link" href="CinnamonApp.html#cinnamon-app-compare" title="cinnamon_app_compare ()">cinnamon_app_compare</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="CinnamonApp.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody><tr>
<td class="property_type"><a class="link" href="CinnamonApp.html#CinnamonAppState" title="enum CinnamonAppState"><span class="type">CinnamonAppState</span></a></td>
<td class="property_name"><a class="link" href="CinnamonApp.html#CinnamonApp--state" title="The “state” property">state</a></td>
<td class="property_flags">Read</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="CinnamonApp.signals"></a><h2>Signals</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="signals_return">
<col width="300px" class="signals_name">
<col width="200px" class="signals_flags">
</colgroup>
<tbody><tr>
<td class="signal_type"><span class="returnvalue">void</span></td>
<td class="signal_name"><a class="link" href="CinnamonApp.html#CinnamonApp-windows-changed" title="The “windows-changed” signal">windows-changed</a></td>
<td class="signal_flags">Run Last</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="CinnamonApp.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="CinnamonApp.html#CinnamonAppState" title="enum CinnamonAppState">CinnamonAppState</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="CinnamonApp.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html">GEnum</a>
<span class="lineart">╰──</span> CinnamonAppState
GObject
<span class="lineart">╰──</span> CinnamonApp
</pre>
</div>
<div class="refsect1">
<a name="CinnamonApp.description"></a><h2>Description</h2>
<p>This object wraps a <span class="type">GMenuTreeEntry</span>, providing methods and signals
primarily useful for running applications.</p>
</div>
<div class="refsect1">
<a name="CinnamonApp.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="cinnamon-app-get-id"></a><h3>cinnamon_app_get_id ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *
cinnamon_app_get_id (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-tree-entry"></a><h3>cinnamon_app_get_tree_entry ()</h3>
<pre class="programlisting"><span class="returnvalue">GMenuTreeEntry</span> *
cinnamon_app_get_tree_entry (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
<div class="refsect3">
<a name="cinnamon-app-get-tree-entry.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>a <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cinnamon-app-get-tree-entry.returns"></a><h4>Returns</h4>
<p>The <span class="type">GMenuTreeEntry</span> for this app, or <code class="literal">NULL</code> if backed by a window. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-app-info"></a><h3>cinnamon_app_get_app_info ()</h3>
<pre class="programlisting"><span class="returnvalue">GDesktopAppInfo</span> *
cinnamon_app_get_app_info (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
<div class="refsect3">
<a name="cinnamon-app-get-app-info.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>a <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cinnamon-app-get-app-info.returns"></a><h4>Returns</h4>
<p>The <span class="type">GDesktopAppInfo</span> for this app, or <code class="literal">NULL</code> if backed by a window. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-create-icon-texture"></a><h3>cinnamon_app_create_icon_texture ()</h3>
<pre class="programlisting"><span class="returnvalue">ClutterActor</span> *
cinnamon_app_create_icon_texture (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>,
<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
<p>Look up the icon for this application, and create a <span class="type">ClutterTexture</span>
for it at the given size.</p>
<div class="refsect3">
<a name="cinnamon-app-create-icon-texture.returns"></a><h4>Returns</h4>
<p>A floating <span class="type">ClutterActor</span>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-faded-icon"></a><h3>cinnamon_app_get_faded_icon ()</h3>
<pre class="programlisting"><span class="returnvalue">ClutterActor</span> *
cinnamon_app_get_faded_icon (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>,
<em class="parameter"><code><span class="type">int</span> size</code></em>);</pre>
<p>Return an actor with a horizontally faded look.</p>
<div class="refsect3">
<a name="cinnamon-app-get-faded-icon.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>A <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>size</p></td>
<td class="parameter_description"><p>Size in pixels</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cinnamon-app-get-faded-icon.returns"></a><h4>Returns</h4>
<p>A floating <span class="type">ClutterActor</span>, or <code class="literal">NULL</code> if no icon. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-name"></a><h3>cinnamon_app_get_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *
cinnamon_app_get_name (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-description"></a><h3>cinnamon_app_get_description ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *
cinnamon_app_get_description (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-keywords"></a><h3>cinnamon_app_get_keywords ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *
cinnamon_app_get_keywords (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-is-window-backed"></a><h3>cinnamon_app_is_window_backed ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
cinnamon_app_is_window_backed (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
<p>A window backed application is one which represents just an open
window, i.e. there's no .desktop file association, so we don't know
how to launch it again.</p>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-activate-window"></a><h3>cinnamon_app_activate_window ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cinnamon_app_activate_window (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>,
<em class="parameter"><code><span class="type">MetaWindow</span> *window</code></em>,
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);</pre>
<p>Bring all windows for the given app to the foreground,
but ensure that <em class="parameter"><code>window</code></em>
is on top. If <em class="parameter"><code>window</code></em>
is <code class="literal">NULL</code>,
the window with the most recent user time for the app
will be used.</p>
<p>This function has no effect if <em class="parameter"><code>app</code></em>
is not currently running.</p>
<div class="refsect3">
<a name="cinnamon-app-activate-window.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>a <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>window</p></td>
<td class="parameter_description"><p>Window to be focused. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>timestamp</p></td>
<td class="parameter_description"><p>Event timestamp</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-activate"></a><h3>cinnamon_app_activate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cinnamon_app_activate (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
<p>Like <a class="link" href="CinnamonApp.html#cinnamon-app-activate-full" title="cinnamon_app_activate_full ()"><code class="function">cinnamon_app_activate_full()</code></a>, but using the default workspace and
event timestamp.</p>
<div class="refsect3">
<a name="cinnamon-app-activate.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>a <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-activate-full"></a><h3>cinnamon_app_activate_full ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cinnamon_app_activate_full (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>,
<em class="parameter"><code><span class="type">int</span> workspace</code></em>,
<em class="parameter"><code><span class="type">guint32</span> timestamp</code></em>);</pre>
<p>Perform an appropriate default action for operating on this application,
dependent on its current state. For example, if the application is not
currently running, launch it. If it is running, activate the most
recently used NORMAL window (or if that window has a transient, the most
recently used transient for that window).</p>
<div class="refsect3">
<a name="cinnamon-app-activate-full.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>a <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>workspace</p></td>
<td class="parameter_description"><p>launch on this workspace, or -1 for default. Ignored if
activating an existing window</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>timestamp</p></td>
<td class="parameter_description"><p>Event timestamp</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-open-new-window"></a><h3>cinnamon_app_open_new_window ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cinnamon_app_open_new_window (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>,
<em class="parameter"><code><span class="type">int</span> workspace</code></em>);</pre>
<p>Request that the application create a new window.</p>
<div class="refsect3">
<a name="cinnamon-app-open-new-window.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>a <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>workspace</p></td>
<td class="parameter_description"><p>open on this workspace, or -1 for default</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-state"></a><h3>cinnamon_app_get_state ()</h3>
<pre class="programlisting"><a class="link" href="CinnamonApp.html#CinnamonAppState" title="enum CinnamonAppState"><span class="returnvalue">CinnamonAppState</span></a>
cinnamon_app_get_state (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
<div class="refsect3">
<a name="cinnamon-app-get-state.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>a <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cinnamon-app-get-state.returns"></a><h4>Returns</h4>
<p> State of the application</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-request-quit"></a><h3>cinnamon_app_request_quit ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
cinnamon_app_request_quit (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
<p>Initiate an asynchronous request to quit this application.
The application may interact with the user, and the user
might cancel the quit request from the application UI.</p>
<p>This operation may not be supported for all applications.</p>
<div class="refsect3">
<a name="cinnamon-app-request-quit.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>A <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cinnamon-app-request-quit.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if a quit request is supported for this application</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-n-windows"></a><h3>cinnamon_app_get_n_windows ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>
cinnamon_app_get_n_windows (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-windows"></a><h3>cinnamon_app_get_windows ()</h3>
<pre class="programlisting"><span class="returnvalue">GSList</span> *
cinnamon_app_get_windows (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
<p>Get the toplevel, interesting windows which are associated with this
application. The returned list will be sorted first by whether
they're on the active workspace, then by whether they're visible,
and finally by the time the user last interacted with them.</p>
<div class="refsect3">
<a name="cinnamon-app-get-windows.returns"></a><h4>Returns</h4>
<p>List of windows. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> MetaWindow]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-get-pids"></a><h3>cinnamon_app_get_pids ()</h3>
<pre class="programlisting"><span class="returnvalue">GSList</span> *
cinnamon_app_get_pids (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>);</pre>
<div class="refsect3">
<a name="cinnamon-app-get-pids.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>app</p></td>
<td class="parameter_description"><p>a <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cinnamon-app-get-pids.returns"></a><h4>Returns</h4>
<p>An unordered list of process identifiers associated with this application. </p>
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> int]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-is-on-workspace"></a><h3>cinnamon_app_is_on_workspace ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
cinnamon_app_is_on_workspace (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>,
<em class="parameter"><code><span class="type">MetaWorkspace</span> *workspace</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-launch"></a><h3>cinnamon_app_launch ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
cinnamon_app_launch (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>,
<em class="parameter"><code><span class="type">guint</span> timestamp</code></em>,
<em class="parameter"><code><span class="type">GList</span> *uris</code></em>,
<em class="parameter"><code><span class="type">int</span> workspace</code></em>,
<em class="parameter"><code><span class="type">char</span> **startup_id</code></em>,
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<div class="refsect3">
<a name="cinnamon-app-launch.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>timestamp</p></td>
<td class="parameter_description"><p>Event timestamp, or 0 for current event timestamp</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>uris</p></td>
<td class="parameter_description"><p>List of uris to pass to application. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>workspace</p></td>
<td class="parameter_description"><p>Start on this workspace, or -1 for default</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>startup_id</p></td>
<td class="parameter_description"><p>Returned startup notification ID, or <code class="literal">NULL</code> if none. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>A <span class="type">GError</span></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-compare-by-name"></a><h3>cinnamon_app_compare_by_name ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
cinnamon_app_compare_by_name (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>,
<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *other</code></em>);</pre>
<p>Order two applications by name.</p>
<div class="refsect3">
<a name="cinnamon-app-compare-by-name.returns"></a><h4>Returns</h4>
<p> -1, 0, or 1; suitable for use as a comparison function for e.g. <code class="function">g_slist_sort()</code></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="cinnamon-app-compare"></a><h3>cinnamon_app_compare ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
cinnamon_app_compare (<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *app</code></em>,
<em class="parameter"><code><a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *other</code></em>);</pre>
<p>Compare one <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> instance to another, in the following way:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p>Running applications sort before not-running applications.</p></li>
<li class="listitem"><p>If one of them has visible windows and the other does not, the one
with visible windows is first.</p></li>
<li class="listitem"><p>Finally, the application which the user interacted with most recently
compares earlier.</p></li>
</ul></div>
<div class="refsect3">
<a name="cinnamon-app-compare.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>other</p></td>
<td class="parameter_description"><p>A <a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="CinnamonApp.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="CinnamonAppState"></a><h3>enum CinnamonAppState</h3>
<div class="refsect3">
<a name="CinnamonAppState.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="CINNAMON-APP-STATE-STOPPED:CAPS"></a>CINNAMON_APP_STATE_STOPPED</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="CINNAMON-APP-STATE-STARTING:CAPS"></a>CINNAMON_APP_STATE_STARTING</p></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="CINNAMON-APP-STATE-RUNNING:CAPS"></a>CINNAMON_APP_STATE_RUNNING</p></td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="CinnamonApp.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="CinnamonApp--state"></a><h3>The <code class="literal">“state”</code> property</h3>
<pre class="programlisting"> “state” <a class="link" href="CinnamonApp.html#CinnamonAppState" title="enum CinnamonAppState"><span class="type">CinnamonAppState</span></a></pre>
<p>The high-level state of the application, effectively whether it's
running or not, or transitioning between those states.</p>
<p>Flags: Read</p>
<p>Default value: CINNAMON_APP_STATE_STOPPED</p>
</div>
</div>
<div class="refsect1">
<a name="CinnamonApp.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="CinnamonApp-windows-changed"></a><h3>The <code class="literal">“windows-changed”</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
user_function (<a class="link" href="CinnamonApp.html" title="CinnamonApp"><span class="type">CinnamonApp</span></a> *cinnamonapp,
<span class="type">gpointer</span> user_data)</pre>
<p>Flags: Run Last</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.27</div>
</body>
</html>
|