---
name: "Gnome2::Client"
section: "3pm"
platform: "linux"
package: "libgnome2-perl"
version: "1.046-3+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::Client"
---

# Gnome2::Client(3pm)

wrapper for GnomeClient

## NAME

Gnome2::Client - wrapper for GnomeClient

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gnome2::Client
```

## METHODS

### client = Gnome2::Client-\>new

### client = Gnome2::Client-\>new\_without\_connection

### $client-\>add\_static\_arg (...)

- •

  ... (list)

### $client-\>set\_clone\_command (...)

- •

  ... (list)

### string = $client-\>get\_config\_prefix

### $client-\>connect

### boolean = $client-\>connected

### $client-\>set\_current\_directory ($dir)

- •

  `$dir` (string)

### string = $client-\>get\_desktop\_id

### $client-\>set\_discard\_command (...)

- •

  ... (list)

### $client-\>disconnect

### $client-\>set\_environment ($name, $value)

- •

  `$name` (string)

- •

  `$value` (string)

### clientflags = $client-\>get\_flags

### $client-\>flush

### string = $client-\>get\_global\_config\_prefix

### $client-\>set\_global\_config\_prefix ($prefix)

- •

  `$prefix` (string)

### string = $client-\>get\_id

### Gnome2::Client-\>interaction\_key\_return ($key, $cancel\_shutdown)

- •

  `$key` (integer)

- •

  `$cancel_shutdown` (boolean)

### client = Gnome2::Client-\>master

### string = $client-\>get\_previous\_id

### $client-\>set\_priority ($priority)

- •

  `$priority` (integer)

### $client-\>request\_interaction ($dialog\_type, $function, $data=undef)

- •

  `$dialog_type` (Gnome2::DialogType)

- •

  `$function` (scalar)

- •

  `$data` (scalar)

### $client-\>request\_phase\_2

### $client-\>request\_save ($save\_style, $shutdown, $interact\_style, $fast, $global)

- •

  `$save_style` (Gnome2::SaveStyle)

- •

  `$shutdown` (boolean)

- •

  `$interact_style` (Gnome2::InteractStyle)

- •

  `$fast` (boolean)

- •

  `$global` (boolean)

### $client-\>set\_resign\_command (...)

- •

  ... (list)

### $client-\>set\_restart\_command (...)

- •

  ... (list)

### $client-\>set\_restart\_style ($style)

- •

  `$style` (Gnome2::RestartStyle)

### $client-\>save\_any\_dialog ($dialog)

- •

  `$dialog` (Gtk2::Dialog)

### $client-\>save\_error\_dialog ($dialog)

- •

  `$dialog` (Gtk2::Dialog)

### $client-\>set\_shutdown\_command (...)

- •

  ... (list)

## SIGNALS

- **connect** (Gnome2::Client, boolean)

  - **die** (Gnome2::Client)

  - **disconnect** (Gnome2::Client)

  - **save-complete** (Gnome2::Client)

  - boolean = **save-yourself** (Gnome2::Client, integer, Gnome2::SaveStyle, boolean, Gnome2::InteractStyle, boolean)

  - **shutdown-cancelled** (Gnome2::Client)

  ## ENUMS AND FLAGS

### flags Gnome2::ClientFlags

- •

  'is-connected' / 'GNOME\_CLIENT\_IS\_CONNECTED'

- •

  'restarted' / 'GNOME\_CLIENT\_RESTARTED'

- •

  'restored' / 'GNOME\_CLIENT\_RESTORED'

### enum Gnome2::DialogType

- •

  'error' / 'GNOME\_DIALOG\_ERROR'

- •

  'normal' / 'GNOME\_DIALOG\_NORMAL'

### enum Gnome2::InteractStyle

- •

  'none' / 'GNOME\_INTERACT\_NONE'

- •

  'errors' / 'GNOME\_INTERACT\_ERRORS'

- •

  'any' / 'GNOME\_INTERACT\_ANY'

### enum Gnome2::RestartStyle

- •

  'if-running' / 'GNOME\_RESTART\_IF\_RUNNING'

- •

  'anyway' / 'GNOME\_RESTART\_ANYWAY'

- •

  'immediately' / 'GNOME\_RESTART\_IMMEDIATELY'

- •

  'never' / 'GNOME\_RESTART\_NEVER'

### enum Gnome2::SaveStyle

- •

  'global' / 'GNOME\_SAVE\_GLOBAL'

- •

  'local' / 'GNOME\_SAVE\_LOCAL'

- •

  'both' / 'GNOME\_SAVE\_BOTH'

## SEE ALSO

Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object

## COPYRIGHT

Copyright (C) 2003-2004 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gnome2 for a full notice.
