1Gtk2::UniqueMessageDataU(s3e)r Contributed Perl DocumentaGttiko2n::UniqueMessageData(3)
2
3
4

NAME

6       Gtk2::UniqueMessageData - Message container for Gtk2::UniqueApp
7

DESCRIPTION

9       This class wraps the messages passed to a "Gtk2::UniqueApp". Usually
10       you will never create a message with the Perl API has this is done by
11       the bindings on your behalf. Since messages are only read through the
12       Perl bidings the methods for setting the contents of a message are not
13       accessible.
14
15       What's important to understand is that a "Gtk2::MessageData" is a
16       generic container for all message types (text, data, filename and
17       uris). There's no way to query what kind of message a
18       "Gtk2::MessageData" holds. It is the responsability of each application
19       to know it in advance and to call the proper get methods. If you don't
20       call the proper get method you could have a segmentation fault in your
21       application as the C library will try to unmarshall the message with
22       the wrong code.
23
24       You can retrieve the data set using "Gkt2::MessageData::get()",
25       "Gkt2::MessageData::get_text()" or "Gkt2::MessageData::get_uris()".
26

HIERARCHY

28         Glib::Boxed
29         +----Gtk2::UniqueMessageData
30

METHODS

32   string = $message_data->get_filename
33       Retrieves the filename.
34
35   scalar = $message_data->get
36       Retrieves the raw data of the message.
37
38   screen = $message_data->get_screen
39       Returns a pointer to the screen from where the message came. You can
40       use "Gkt2::Window::set_screen()" to move windows or dialogs to the
41       right screen.  This field is always set by the Unique library.
42
43   string = $message_data->get_startup_id
44       Retrieves the startup notification id set inside message_data. This
45       field is always set by the Unique library.
46
47   string = $message_data->get_text
48       Retrieves the text.
49
50   $message_data->get_uris
51       Retrieves the URIs as an array.
52
53   integer = $message_data->get_workspace
54       Retrieves the workspace number from where the message came. This field
55       is always set by the Unique library.
56

SEE ALSO

58       Gtk2::Unique, Glib::Boxed
59
61       Copyright (C) 2009-2010 by Emmanuel Rodriguez
62
63
64
65perl v5.28.0                      2018-07-14        Gtk2::UniqueMessageData(3)
Impressum