---
name: "Gtk2::Plug"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::Plug"
---

# Gtk2::Plug(3pm)

wrapper for GtkPlug

## NAME

Gtk2::Plug - wrapper for GtkPlug

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::Window
                                +----Gtk2::Plug
```

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
```

## METHODS

### widget = Gtk2::Plug-\>new ($socket\_id)

- •

  `$socket_id` (Gtk2::Gdk::NativeWindow)

### widget = Gtk2::Plug-\>new\_for\_display

Since: gtk+ 2.2

### $plug-\>construct ($socket\_id)

- •

  `$socket_id` (Gtk2::Gdk::NativeWindow)

### $plug-\>construct\_for\_display ($display, $socket\_id)

- •

  `$display` (Gtk2::Gdk::Display)

- •

  `$socket_id` (Gtk2::Gdk::NativeWindow)

Since: gtk+ 2.2

### boolean = $plug-\>get\_embedded

Since: gtk+ 2.14

### nativewindow = $plug-\>get\_id

### window or undef = $plug-\>get\_socket\_window

Since: gtk+ 2.14

## PROPERTIES

- 'embedded' (boolean : default false : readable / private)

  Whether or not the plug is embedded

- 'socket-window' (Gtk2::Gdk::Window : default undef : readable / private)

  The window of the socket the plug is embedded in

## SIGNALS

- **embedded** (Gtk2::Plug)

  ## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window

## COPYRIGHT

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

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