.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Gtk2::UniqueMessageData 3pm" .TH Gtk2::UniqueMessageData 3pm "2014-04-24" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Gtk2::UniqueMessageData \- Message container for Gtk2::UniqueApp .SH "DESCRIPTION" .IX Header "DESCRIPTION" This class wraps the messages passed to a \f(CW\*(C`Gtk2::UniqueApp\*(C'\fR. Usually you will never create a message with the Perl \s-1API\s0 has this is done by the bindings on your behalf. Since messages are only read through the Perl bidings the methods for setting the contents of a message are not accessible. .PP What's important to understand is that a \f(CW\*(C`Gtk2::MessageData\*(C'\fR is a generic container for all message types (text, data, filename and uris). There's no way to query what kind of message a \f(CW\*(C`Gtk2::MessageData\*(C'\fR holds. It is the responsability of each application to know it in advance and to call the proper get methods. If you don't call the proper get method you could have a segmentation fault in your application as the C library will try to unmarshall the message with the wrong code. .PP You can retrieve the data set using \f(CW\*(C`Gkt2::MessageData::get()\*(C'\fR, \&\f(CW\*(C`Gkt2::MessageData::get_text()\*(C'\fR or \f(CW\*(C`Gkt2::MessageData::get_uris()\*(C'\fR. .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 2 \& Glib::Boxed \& +\-\-\-\-Gtk2::UniqueMessageData .Ve .SH "METHODS" .IX Header "METHODS" .ie n .SS "string = $message_data\->\fBget_filename\fP" .el .SS "string = \f(CW$message_data\fP\->\fBget_filename\fP" .IX Subsection "string = $message_data->get_filename" Retrieves the filename. .ie n .SS "scalar = $message_data\->\fBget\fP" .el .SS "scalar = \f(CW$message_data\fP\->\fBget\fP" .IX Subsection "scalar = $message_data->get" Retrieves the raw data of the message. .ie n .SS "screen = $message_data\->\fBget_screen\fP" .el .SS "screen = \f(CW$message_data\fP\->\fBget_screen\fP" .IX Subsection "screen = $message_data->get_screen" Returns a pointer to the screen from where the message came. You can use \&\f(CW\*(C`Gkt2::Window::set_screen()\*(C'\fR to move windows or dialogs to the right screen. This field is always set by the Unique library. .ie n .SS "string = $message_data\->\fBget_startup_id\fP" .el .SS "string = \f(CW$message_data\fP\->\fBget_startup_id\fP" .IX Subsection "string = $message_data->get_startup_id" Retrieves the startup notification id set inside message_data. This field is always set by the Unique library. .ie n .SS "string = $message_data\->\fBget_text\fP" .el .SS "string = \f(CW$message_data\fP\->\fBget_text\fP" .IX Subsection "string = $message_data->get_text" Retrieves the text. .ie n .SS "$message_data\->\fBget_uris\fP" .el .SS "\f(CW$message_data\fP\->\fBget_uris\fP" .IX Subsection "$message_data->get_uris" Retrieves the URIs as an array. .ie n .SS "integer = $message_data\->\fBget_workspace\fP" .el .SS "integer = \f(CW$message_data\fP\->\fBget_workspace\fP" .IX Subsection "integer = $message_data->get_workspace" Retrieves the workspace number from where the message came. This field is always set by the Unique library. .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2::Unique, Glib::Boxed .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2009\-2010 by Emmanuel Rodriguez