table of contents
Gtk2::UniqueBackend(3pm) | User Contributed Perl Documentation | Gtk2::UniqueBackend(3pm) |
NAME¶
Gtk2::UniqueBackend - IPC backend used by libunique
DESCRIPTION¶
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_)¶
- $command_id (integer)
- $message_data (Gtk2::UniqueMessageData or undef)
- $time_ (integer)
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'
SEE ALSO¶
Gtk2::Unique, Glib::Object
COPYRIGHT¶
Copyright (C) 2009-2010 by Emmanuel Rodriguez
2017-07-23 | perl v5.26.0 |