Gtk2::UniqueBackend3pm
Ipc backend used by libunique
Overview
Gkt2::UniqueBackend is the base, abstract class implemented by the different IPC mechanisms used by Gtk2::Unique. Each Gtk2::UniqueApp instance creates a Gkt2::UniqueBackend to request the name or to send messages.
Hierarchy
Glib::Object+----Gtk2::UniqueBackend
Methods
uniquebackend = Gtk2::UniqueBackend->create
Creates a Gkt2::UniqueBackend using the default backend defined at compile time. You can override the default backend by setting the UNIQUE_BACKEND environment variable with the name of the desired backend.
string = $backend->get_name
$backend->set_name ($name)
- •
-
$name(string)
boolean = $backend->request_name
Requests the name set using "Gtk2::set_name()" and this backend.
screen = $backend->get_screen
$backend->set_screen ($screen)
- •
-
$screen(Gtk2::Gdk::Screen)
uniqueresponse = $backend->send_message ($command_id, $message_data, $time_)
•
|
|
|---|---|
•
|
|
•
|
|
Sends command_id, and optionally message_data, to a running instance using backend.
string = $backend->get_startup_id
$backend->set_startup_id ($startup_id)
- •
-
$startup_id(string)
integer = $backend->get_workspace
Retrieves the current workspace.
Enums and flags
enum Gtk2::UniqueResponse
•
|
'invalid' / 'UNIQUE_RESPONSE_INVALID' |
|---|---|
•
|
'ok' / 'UNIQUE_RESPONSE_OK' |
•
|
'cancel' / 'UNIQUE_RESPONSE_CANCEL' |
•
|
'fail' / 'UNIQUE_RESPONSE_FAIL' |
•
|
'passthrough' / 'UNIQUE_RESPONSE_PASSTHROUGH' |
Releases
4 releases since Debian 6.0 (Squeeze); the text changed 3 times.