Gtk2::UniqueApp.3pm

Langue: en

Autres versions - même langue

Version: 2009-05-30 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::UniqueApp - a single instance application

HIERARCHY

   Glib::Object
   +----Gtk2::UniqueApp
 
 

METHODS

uniqueapp = Gtk2::UniqueApp->new ($name, $startup_id, ...)

$name (string)
$startup_id (string or undef)
... (list)

uniqueapp = Gtk2::UniqueApp->new_with_commands ($name, $startup_id, ...)

$name (string)
$startup_id (string or undef)
... (list)

$app->add_command ($command_name, $command_id)

$command_name (string)
$command_id (integer)

boolean = $app->is_running

uniqueresponse = $app->send_message ($command_id, ...)

$command_id (integer)
... (list)

$app->watch_window ($window)

$window (Gtk2::Window)

PROPERTIES

'is-running' (boolean : readable / private)
Whether another instance is running
'name' (string : readable / writable / construct-only / private)
The unique name of the application
'screen' (Gtk2::Gdk::Screen : readable / writable / construct / private)
The GdkScreen of the application
'startup-id' (string : readable / writable / construct-only / private)
The startup notification id for the application

SIGNALS

Gtk2::UniqueResponse = message-received (Gtk2::UniqueApp, integer, Gtk2::UniqueMessageData, Glib::UInt)

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 (C) 2009 by Emmanuel Rodriguez