1Gtk2::UniqueBackend(3)User Contributed Perl DocumentationGtk2::UniqueBackend(3)
2
3
4
6 Gtk2::UniqueBackend - Backend abstraction
7
9 Gkt2::UniqueBackend is the base, abstract class implemented by the
10 different IPC mechanisms used by Gtk2::Unique. Each Gtk2::UniqueApp
11 instance creates a Gkt2::UniqueBackend to request the name or to send
12 messages.
13
15 Glib::Object
16 +----Gtk2::UniqueBackend
17
19 uniquebackend = Gtk2::UniqueBackend->create
20 Creates a Gkt2::UniqueBackend using the default backend defined at
21 compile time. You can override the default backend by setting the
22 UNIQUE_BACKEND environment variable with the name of the desired
23 backend.
24
25 string = $backend->get_name
26 $backend->set_name ($name)
27 · $name (string)
28
29 boolean = $backend->request_name
30 Requests the name set using "Gtk2::set_name()" and this backend.
31
32 screen = $backend->get_screen
33 $backend->set_screen ($screen)
34 · $screen (Gtk2::Gdk::Screen)
35
36 uniqueresponse = $backend->send_message ($command_id, $message_data,
37 $time_)
38 · $command_id (integer)
39
40 · $message_data (Gtk2::UniqueMessageData or undef)
41
42 · $time_ (integer)
43
44 Sends command_id, and optionally message_data, to a running instance
45 using backend.
46
47 string = $backend->get_startup_id
48 $backend->set_startup_id ($startup_id)
49 · $startup_id (string)
50
51 integer = $backend->get_workspace
52 Retrieves the current workspace.
53
55 enum Gtk2::UniqueResponse
56 · 'invalid' / 'UNIQUE_RESPONSE_INVALID'
57
58 · 'ok' / 'UNIQUE_RESPONSE_OK'
59
60 · 'cancel' / 'UNIQUE_RESPONSE_CANCEL'
61
62 · 'fail' / 'UNIQUE_RESPONSE_FAIL'
63
64 · 'passthrough' / 'UNIQUE_RESPONSE_PASSTHROUGH'
65
67 Gtk2::Unique, Glib::Object
68
70 Copyright (C) 2009-2010 by Emmanuel Rodriguez
71
72
73
74perl v5.30.0 2019-07-26 Gtk2::UniqueBackend(3)