---
name: "Gtk2::UniqueBackend"
section: "3pm"
platform: "linux"
package: "libgtk2-unique-perl"
version: "0.05-2+b3"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::UniqueBackend"
---

# Gtk2::UniqueBackend(3pm)

IPC backend used by libunique

## 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
