/usr/share/gir-1.0/MessagingMenu-1.0.gir is in libmessaging-menu-dev 13.10.1+14.04.20140410-0ubuntu1.
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 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 | <?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations. -->
<repository version="1.2"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<include name="GObject" version="2.0"/>
<include name="Gio" version="2.0"/>
<package name="messaging-menu"/>
<c:include name="messaging-menu.h"/>
<namespace name="MessagingMenu"
version="1.0"
shared-library="libmessaging-menu.so.0"
c:identifier-prefixes="MessagingMenu"
c:symbol-prefixes="messaging_menu">
<alias name="AppClass" c:type="MessagingMenuAppClass">
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
</alias>
<class name="App"
c:symbol-prefix="app"
c:type="MessagingMenuApp"
parent="GObject.Object"
glib:type-name="MessagingMenuApp"
glib:get-type="messaging_menu_app_get_type">
<doc xml:space="preserve">#MessagingMenuApp is an opaque structure.</doc>
<constructor name="new" c:identifier="messaging_menu_app_new">
<return-value transfer-ownership="full">
<type name="App" c:type="MessagingMenuApp*"/>
</return-value>
<parameters>
<parameter name="desktop_id" transfer-ownership="none">
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</constructor>
<method name="append_message"
c:identifier="messaging_menu_app_append_message">
<doc xml:space="preserve">Appends @msg to the source with id @source_id of @app. The messaging
menu might not display this message immediately if other messages are
queued before this one.
If @source_id has a count associated with it, that count will be
increased by one.
If @source_id is %NULL, @msg won't be associated with a source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">the #MessagingMenuMessage to append</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</parameter>
<parameter name="source_id" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the source id to which @msg is added, or NULL</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="notify" transfer-ownership="none">
<doc xml:space="preserve">whether a notification bubble should be shown for this
message</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<method name="append_source"
c:identifier="messaging_menu_app_append_source">
<doc xml:space="preserve">Appends a new message source to the end of the section representing @app.
Equivalent to calling messaging_menu_app_append_source_with_time() with the
current time.
It is an error to add a source with an @id which already exists. Use
messaging_menu_app_has_source() to find out whether there is such a source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">a unique identifier for the source to be added</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the icon associated with the source</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">a user-visible string best describing the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="append_source_with_count"
c:identifier="messaging_menu_app_append_source_with_count">
<doc xml:space="preserve">Appends a new message source to the end of the section representing @app and
initializes it with @count.
To update the count, use messaging_menu_app_set_source_count().
It is an error to add a source with an @id which already exists. Use
messaging_menu_app_has_source() to find out whether there is such a source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">a unique identifier for the source to be added</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the icon associated with the source</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">a user-visible string best describing the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="count" transfer-ownership="none">
<doc xml:space="preserve">the count for the source</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="append_source_with_string"
c:identifier="messaging_menu_app_append_source_with_string">
<doc xml:space="preserve">Appends a new message source to the end of the section representing @app and
initializes it with @str.
To update the string, use messaging_menu_app_set_source_string().
It is an error to insert a source with an @id which already exists. Use
messaging_menu_app_has_source() to find out whether there is such a source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">a unique identifier for the source to be added</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the icon associated with the source</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">a user-visible string best describing the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="str" transfer-ownership="none">
<doc xml:space="preserve">a string associated with the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="append_source_with_time"
c:identifier="messaging_menu_app_append_source_with_time">
<doc xml:space="preserve">Appends a new message source to the end of the section representing
@app and initializes it with @time. Use
messaging_menu_app_append_source() to append a source with the
current time.
To change the time, use messaging_menu_app_set_source_time().
It is an error to insert a source with an @id which already exists. Use
messaging_menu_app_has_source() to find out whether there is such a source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">a unique identifier for the source to be added</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the icon associated with the source</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">a user-visible string best describing the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="time" transfer-ownership="none">
<doc xml:space="preserve">the time when the source was created, in microseconds</doc>
<type name="gint64" c:type="gint64"/>
</parameter>
</parameters>
</method>
<method name="draw_attention"
c:identifier="messaging_menu_app_draw_attention">
<doc xml:space="preserve">Indicates that @source_id has important unread messages. Currently, this
means that the messaging menu's envelope icon will turn blue.
Use messaging_menu_app_remove_attention() to stop indicating that the source
needs attention.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">a source id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="get_message" c:identifier="messaging_menu_app_get_message">
<doc xml:space="preserve">Retrieves the message with @id, that was added with
messaging_menu_app_append_message().</doc>
<return-value transfer-ownership="none">
<doc xml:space="preserve">the #MessagingMenuApp with
@id, or %NULL</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">id of the message to retrieve</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="has_source" c:identifier="messaging_menu_app_has_source">
<return-value transfer-ownership="none">
<doc xml:space="preserve">TRUE if there is a source associated with @source_id</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">a source id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="insert_source"
c:identifier="messaging_menu_app_insert_source">
<doc xml:space="preserve">Inserts a new message source into the section representing @app. Equivalent
to calling messaging_menu_app_insert_source_with_time() with the current
time.
It is an error to insert a source with an @id which already exists. Use
messaging_menu_app_has_source() to find out whether there is such a source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="position" transfer-ownership="none">
<doc xml:space="preserve">the position at which to insert the source</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">a unique identifier for the source to be added</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="none">
<doc xml:space="preserve">the icon associated with the source</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">a user-visible string best describing the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="insert_source_with_count"
c:identifier="messaging_menu_app_insert_source_with_count">
<doc xml:space="preserve">Inserts a new message source into the section representing @app and
initializes it with @count.
To update the count, use messaging_menu_app_set_source_count().
It is an error to insert a source with an @id which already exists. Use
messaging_menu_app_has_source() to find out whether there is such a source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="position" transfer-ownership="none">
<doc xml:space="preserve">the position at which to insert the source</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">a unique identifier for the source to be added</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the icon associated with the source</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">a user-visible string best describing the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="count" transfer-ownership="none">
<doc xml:space="preserve">the count for the source</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="insert_source_with_string"
c:identifier="messaging_menu_app_insert_source_with_string">
<doc xml:space="preserve">Inserts a new message source into the section representing @app and
initializes it with @str.
To update the string, use messaging_menu_app_set_source_string().
It is an error to insert a source with an @id which already exists. Use
messaging_menu_app_has_source() to find out whether there is such a source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="position" transfer-ownership="none">
<doc xml:space="preserve">the position at which to insert the source</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">a unique identifier for the source to be added</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the icon associated with the source</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">a user-visible string best describing the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="str" transfer-ownership="none">
<doc xml:space="preserve">a string associated with the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="insert_source_with_time"
c:identifier="messaging_menu_app_insert_source_with_time">
<doc xml:space="preserve">Inserts a new message source into the section representing @app and
initializes it with @time. Use messaging_menu_app_insert_source() to
insert a source with the current time.
To change the time, use messaging_menu_app_set_source_time().
It is an error to insert a source with an @id which already exists. Use
messaging_menu_app_has_source() to find out whether there is such a source.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="position" transfer-ownership="none">
<doc xml:space="preserve">the position at which to insert the source</doc>
<type name="gint" c:type="gint"/>
</parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">a unique identifier for the source to be added</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the icon associated with the source</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">a user-visible string best describing the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="time" transfer-ownership="none">
<doc xml:space="preserve">the time when the source was created, in microseconds</doc>
<type name="gint64" c:type="gint64"/>
</parameter>
</parameters>
</method>
<method name="register" c:identifier="messaging_menu_app_register">
<doc xml:space="preserve">Registers @app with the Messaging Menu.
If the application doesn't already have a section in the Messaging
Menu, one will be created for it. The application will also be
marked as "running".
The application will be marked as "not running" as soon as @app is
destroyed. The application launcher as well as shortcut actions will
remain in the menu. To completely remove the application section
from the Messaging Menu, call messaging_menu_app_unregister().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
</parameters>
</method>
<method name="remove_attention"
c:identifier="messaging_menu_app_remove_attention">
<doc xml:space="preserve">Stop indicating that @source_id needs attention.
This function does not need to be called when the source is removed
with messaging_menu_app_remove_source() or the user has activated the
source.
Use messaging_menu_app_draw_attention() to make @source_id draw attention
again.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">a source id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="remove_message"
c:identifier="messaging_menu_app_remove_message">
<doc xml:space="preserve">Removes @msg from @app.
If @source_id has a count associated with it, that count will be
decreased by one.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">the #MessagingMenuMessage to remove</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</parameter>
</parameters>
</method>
<method name="remove_message_by_id"
c:identifier="messaging_menu_app_remove_message_by_id">
<doc xml:space="preserve">Removes the message with the id @id from @app.
If @source_id has a count associated with it, that count will be
decreased by one.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">the unique id of @msg</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="remove_source"
c:identifier="messaging_menu_app_remove_source">
<doc xml:space="preserve">Removes the source corresponding to @source_id from the menu.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">the id of the source to remove</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_source_count"
c:identifier="messaging_menu_app_set_source_count">
<doc xml:space="preserve">Updates the count of @source_id to @count.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">a source id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="count" transfer-ownership="none">
<doc xml:space="preserve">the new count for the source</doc>
<type name="guint" c:type="guint"/>
</parameter>
</parameters>
</method>
<method name="set_source_icon"
c:identifier="messaging_menu_app_set_source_icon">
<doc xml:space="preserve">Changes the icon of @source_id to @icon.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">a source id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the new icon for the source</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
</parameters>
</method>
<method name="set_source_label"
c:identifier="messaging_menu_app_set_source_label">
<doc xml:space="preserve">Changes the label of @source_id to @label.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">a source id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="label" transfer-ownership="none">
<doc xml:space="preserve">the new label for the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_source_string"
c:identifier="messaging_menu_app_set_source_string">
<doc xml:space="preserve">Updates the string displayed next to @source_id to @str.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">a source id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="str" transfer-ownership="none">
<doc xml:space="preserve">the new string for the source</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
</parameters>
</method>
<method name="set_source_time"
c:identifier="messaging_menu_app_set_source_time">
<doc xml:space="preserve">Updates the time of @source_id to @time.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">a source id</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="time" transfer-ownership="none">
<doc xml:space="preserve">the new time for the source, in microseconds</doc>
<type name="gint64" c:type="gint64"/>
</parameter>
</parameters>
</method>
<method name="set_status" c:identifier="messaging_menu_app_set_status">
<doc xml:space="preserve">Notify the Messaging Menu that the chat status of @app has changed to
@status.
Connect to the ::status-changed signal to receive notification about
the user changing their global chat status through the Messaging
Menu.
This function does nothing for applications whose desktop file does
not include X-MessagingMenu-UsesChatSection.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
<parameter name="status" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuStatus</doc>
<type name="Status" c:type="MessagingMenuStatus"/>
</parameter>
</parameters>
</method>
<method name="unregister" c:identifier="messaging_menu_app_unregister">
<doc xml:space="preserve">Completely removes the @app from the Messaging Menu. If the
application's launcher and shortcut actions should remain in the
menu, destroying @app with g_object_unref() suffices.
Note: @app will remain valid and usable after this call.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="app" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuApp</doc>
<type name="App" c:type="MessagingMenuApp*"/>
</instance-parameter>
</parameters>
</method>
<property name="desktop-id"
readable="0"
writable="1"
construct-only="1"
transfer-ownership="none">
<doc xml:space="preserve">The desktop id of the application associated with this application
section. Must be given when the #MessagingMenuApp is created.</doc>
<type name="utf8" c:type="gchar*"/>
</property>
<glib:signal name="activate-source" when="first" detailed="1">
<doc xml:space="preserve">Emitted when the user has activated the message source with id
@source_id. The source is immediately removed from the menu,
handlers of this signal do not need to call
messaging_menu_app_remove_source().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="source_id" transfer-ownership="none">
<doc xml:space="preserve">the source id that was activated</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
</parameters>
</glib:signal>
<glib:signal name="status-changed" when="first">
<doc xml:space="preserve">Emitted when the chat status is changed through the messaging menu.
Applications which are registered to use the chat status should
change their status to @status upon receiving this signal. Call
messaging_menu_app_set_status() to acknowledge that the application
changed its status.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="status" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuStatus</doc>
<type name="gint" c:type="gint"/>
</parameter>
</parameters>
</glib:signal>
</class>
<class name="Message"
c:symbol-prefix="message"
c:type="MessagingMenuMessage"
parent="GObject.Object"
glib:type-name="MessagingMenuMessage"
glib:get-type="messaging_menu_message_get_type">
<constructor name="new" c:identifier="messaging_menu_message_new">
<doc xml:space="preserve">Creates a new #MessagingMenuMessage.</doc>
<return-value transfer-ownership="full">
<doc xml:space="preserve">a new #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</return-value>
<parameters>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">unique id of the message</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="icon" transfer-ownership="full" allow-none="1">
<doc xml:space="preserve">a #GIcon representing the message</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</parameter>
<parameter name="title" transfer-ownership="none">
<doc xml:space="preserve">the title of the message</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="subtitle" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the subtitle of the message</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="body" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the message body</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="time" transfer-ownership="none">
<doc xml:space="preserve">the time the message was received</doc>
<type name="gint64" c:type="gint64"/>
</parameter>
</parameters>
</constructor>
<method name="add_action"
c:identifier="messaging_menu_message_add_action">
<doc xml:space="preserve">Adds an action with @id and @label to @message. Actions are an
alternative way for users to activate a message. Note that messages
can still be activated without an action.
If @parameter_type is non-%NULL, the action is able to receive user
input in addition to simply activating the action. Currently, only
string parameters are supported.
A list of predefined parameters can be supplied as a #GVariant array
of @parameter_type in @parameter_hint. If @parameter_hint is
floating, it will be consumed.
It is recommended to add at most two actions to a message.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</instance-parameter>
<parameter name="id" transfer-ownership="none">
<doc xml:space="preserve">unique id of the action</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="label" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">label of the action</doc>
<type name="utf8" c:type="const gchar*"/>
</parameter>
<parameter name="parameter_type"
transfer-ownership="none"
allow-none="1">
<doc xml:space="preserve">a #GVariantType</doc>
<type name="GLib.VariantType" c:type="const GVariantType*"/>
</parameter>
<parameter name="parameter_hint"
transfer-ownership="none"
allow-none="1">
<doc xml:space="preserve">a #GVariant suggesting a valid range
for parameters</doc>
<type name="GLib.Variant" c:type="GVariant*"/>
</parameter>
</parameters>
</method>
<method name="get_body" c:identifier="messaging_menu_message_get_body">
<return-value transfer-ownership="none">
<doc xml:space="preserve">the body of @msg</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_draws_attention"
c:identifier="messaging_menu_message_get_draws_attention">
<return-value transfer-ownership="none">
<doc xml:space="preserve">whether @msg is drawing attention</doc>
<type name="gboolean" c:type="gboolean"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_icon" c:identifier="messaging_menu_message_get_icon">
<return-value transfer-ownership="none">
<doc xml:space="preserve">the icon of @msg</doc>
<type name="Gio.Icon" c:type="GIcon*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_id" c:identifier="messaging_menu_message_get_id">
<return-value transfer-ownership="none">
<doc xml:space="preserve">the unique id of @msg</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_subtitle"
c:identifier="messaging_menu_message_get_subtitle">
<return-value transfer-ownership="none">
<doc xml:space="preserve">the subtitle of @msg</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_time" c:identifier="messaging_menu_message_get_time">
<return-value transfer-ownership="none">
<doc xml:space="preserve">the time at which @msg was received</doc>
<type name="gint64" c:type="gint64"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="get_title" c:identifier="messaging_menu_message_get_title">
<return-value transfer-ownership="none">
<doc xml:space="preserve">the title of @msg</doc>
<type name="utf8" c:type="const gchar*"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</instance-parameter>
</parameters>
</method>
<method name="set_draws_attention"
c:identifier="messaging_menu_message_set_draws_attention">
<doc xml:space="preserve">Sets whether @msg is drawing attention.</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<instance-parameter name="msg" transfer-ownership="none">
<doc xml:space="preserve">a #MessagingMenuMessage</doc>
<type name="Message" c:type="MessagingMenuMessage*"/>
</instance-parameter>
<parameter name="draws_attention" transfer-ownership="none">
<doc xml:space="preserve">whether @msg should draw attention</doc>
<type name="gboolean" c:type="gboolean"/>
</parameter>
</parameters>
</method>
<property name="body"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="draws-attention" writable="1" transfer-ownership="none">
<type name="gboolean" c:type="gboolean"/>
</property>
<property name="icon"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="Gio.Icon"/>
</property>
<property name="id"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="subtitle"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<property name="time"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="gint64" c:type="gint64"/>
</property>
<property name="title"
writable="1"
construct-only="1"
transfer-ownership="none">
<type name="utf8" c:type="gchar*"/>
</property>
<glib:signal name="activate" when="first" detailed="1">
<doc xml:space="preserve">Emitted when the user has activated the message. The message is
immediately removed from the application's menu, handlers of this
signal do not need to call messaging_menu_app_remove_message().</doc>
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
<parameter name="action" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">the id of activated action, or %NULL</doc>
<type name="utf8" c:type="gchar*"/>
</parameter>
<parameter name="parameter" transfer-ownership="none" allow-none="1">
<doc xml:space="preserve">activation parameter, or %NULL</doc>
<type name="GLib.Variant"/>
</parameter>
</parameters>
</glib:signal>
</class>
<enumeration name="Status" c:type="MessagingMenuStatus">
<doc xml:space="preserve">An enumeration for the possible chat statuses the messaging menu can be in.</doc>
<member name="available"
value="0"
c:identifier="MESSAGING_MENU_STATUS_AVAILABLE">
<doc xml:space="preserve">available</doc>
</member>
<member name="away" value="1" c:identifier="MESSAGING_MENU_STATUS_AWAY">
<doc xml:space="preserve">away</doc>
</member>
<member name="busy" value="2" c:identifier="MESSAGING_MENU_STATUS_BUSY">
<doc xml:space="preserve">busy</doc>
</member>
<member name="invisible"
value="3"
c:identifier="MESSAGING_MENU_STATUS_INVISIBLE">
<doc xml:space="preserve">invisible</doc>
</member>
<member name="offline"
value="4"
c:identifier="MESSAGING_MENU_STATUS_OFFLINE">
<doc xml:space="preserve">offline</doc>
</member>
</enumeration>
</namespace>
</repository>
|