1Gtk2::Notify(3)       User Contributed Perl Documentation      Gtk2::Notify(3)
2
3
4

NAME

6       Gtk2::Notify - Perl interface to libnotify
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Notify
11

SYNOPSIS

13           use Gtk2::Notify -init, "app_name";
14
15           my $notification = Gtk2::Notify->new(
16                   $summary,
17                   $message,
18                   $icon,
19                   $attach_widget
20           );
21           $notification->show;
22

INITIALISATION

24           use Gtk2::Notify qw/-init app_name/;
25
26       -init
27           Importing Gtk2::Notify with the -init option requires one
28           additional argument: the application name to use. This is
29           equivalent to "Gtk2::Notify->init($app_name)".
30

METHODS

32   notify = Gtk2::Notify->new ($summary, $body=undef, $icon=undef)
33       ·   $summary (string)
34
35       ·   $body (string)
36
37       ·   $icon (string)
38
39   $notification->add_action ($action, $label, $callback, $userdata=undef)
40       ·   $action (string)
41
42       ·   $label (string)
43
44       ·   $callback (scalar)
45
46       ·   $userdata (scalar)
47
48   string = Gtk2::Notify->get_app_name
49   $notification->set_category ($category)
50       ·   $category (string)
51
52   $notification->clear_actions
53   $notification->clear_hints
54   notify = $notification->close
55   $notification->set_hint_byte_array ($key, $value)
56       ·   $key (string)
57
58       ·   $value ((unknown))
59
60   $notification->set_hint_byte ($key, $value)
61       ·   $key (string)
62
63       ·   $value (Glib::UChar)
64
65   $notification->set_hint_double ($key, $value)
66       ·   $key (string)
67
68       ·   $value (double)
69
70   $notification->set_hint_int32 ($key, $value)
71       ·   $key (string)
72
73       ·   $value (integer)
74
75   $notification->set_hint ($key, $value)
76       ·   $key (string)
77
78       ·   $value (scalar)
79
80   $notification->set_hint_string ($key, $value)
81       ·   $key (string)
82
83       ·   $value (string)
84
85   $notification->set_icon_from_pixbuf ($icon)
86       ·   $icon (Gtk2::Gdk::Pixbuf)
87
88   boolean = Gtk2::Notify->init ($app_name)
89       ·   $app_name (string)
90
91   boolean = Gtk2::Notify->is_initted
92   list = Gtk2::Notify->get_server_caps
93   (notify, name, vendor, version, spec_version) =
94       Gtk2::Notify->get_server_info
95   notify = $notification->show
96   $notification->set_timeout ($timeout)
97       ·   $timeout (integer)
98
99   Gtk2::Notify->uninit
100   boolean = $notification->update ($summary, $message=undef, $icon=undef)
101       ·   $summary (string)
102
103       ·   $message (string)
104
105       ·   $icon (string)
106
107   $notification->set_urgency ($urgency)
108       ·   $urgency (Gtk2::Notify::NotifyUrgency)
109

PROPERTIES

111       'app-name' (string : default undef : readable / writable)
112           The application name to use for this notification
113
114       'body' (string : default undef : readable / writable / construct)
115           The message body text
116
117       'closed-reason' (integer : default -1 : readable)
118           The reason code for why the notification was closed
119
120       'icon-name' (string : default undef : readable / writable / construct)
121           The icon filename or icon theme-compliant name
122
123       'id' (integer : default 0 : readable / writable / construct)
124           The notification ID
125
126       'summary' (string : default undef : readable / writable / construct)
127           The summary text
128

SIGNALS

130       closed (Gtk2::Notify)
131

ENUMS AND FLAGS

133   enum Gtk2::Notify::NotifyUrgency
134       ·   'low' / 'NOTIFY_URGENCY_LOW'
135
136       ·   'normal' / 'NOTIFY_URGENCY_NORMAL'
137
138       ·   'critical' / 'NOTIFY_URGENCY_CRITICAL'
139

BUGS

141       Please report any bugs or feature requests to "bug-gtk2-notify at
142       rt.cpan.org", or through the web interface at
143       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Gtk2-Notify>.  I will
144       be notified, and then you'll automatically be notified of progress on
145       your bug as I make changes.
146

SUPPORT

148       You can find documentation for this module with the perldoc command.
149
150           perldoc Gtk2::Notify
151
152       You can also look for information at:
153
154       ·   AnnoCPAN: Annotated CPAN documentation
155
156           <http://annocpan.org/dist/Gtk2-Notify>
157
158       ·   CPAN Ratings
159
160           <http://cpanratings.perl.org/d/Gtk2-Notify>
161
162       ·   RT: CPAN's request tracker
163
164           <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Gtk2-Notify>
165
166       ·   Search CPAN
167
168           <http://search.cpan.org/dist/Gtk2-Notify>
169

SEE ALSO

171       Gtk2::Notify, Glib::Object
172
174       Copyright (C) 2006-2008 by Florian Ragwitz
175
176
177
178perl v5.30.1                      2020-01-30                   Gtk2::Notify(3)
Impressum