Gtk2::Socket(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

πŸ’– Gtk2::Socket πŸ’–

okay bestie, welcome to Gtk2::Socket β€” it's the wrapper for GtkSocket, living its best life in the User Contributed Perl Documentation section. yes, section 3. the library-calls one. iconic behavior.


🌈 HIERARCHY 🌈

here's the family tree, and yes it's giving ancestry.com:

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Socket

so Gtk2::Socket is the baby of the family, deep down at the bottom, but that just means it inherited <em>everything</em>. main character energy fr.


✨ INTERFACES ✨

these are the vibes it also carries around, like little accessories:

  • Glib::Object::_Unregistered::AtkImplementorIface
  • Gtk2::Buildable

πŸŽ€ METHODS πŸŽ€

okay so here's everything you can actually do with it. no cap, this is the whole list.

  • widget = Gtk2::Socket->new β€” make a fresh new socket, just like that. brand new, no notes. 🫢
  • $socket->add_id ($window_id) β€” stick a window id in there. the argument:
    • $window_id (Gtk2::Gdk::NativeWindow)
  • nativewindow = $socket->get_id β€” hand back the native window. it's giving "let me see your id" but make it ✨graphics✨.
  • window or undef = $socket_->get_plug_window β€” get the plug window, and heads up, it might come back undef. so like, check before you use it bestie. πŸ’€
    • Since: gtk+ 2.14
  • $socket->steal ($wid) β€” steal that window. yes literally steal, the name is not a metaphor. argument:
    • $wid (Gtk2::Gdk::NativeWindow)

πŸ”” SIGNALS πŸ””

these are the little notifications your socket sends out into the group chat:

  • plug-added (Gtk2::Socket)
  • boolean = plug-removed (Gtk2::Socket)

πŸ‘€ SEE ALSO πŸ‘€

go read these too, they're the friends-of-the-page:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget
  • Gtk2::Container

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

This software is licensed under the LGPL. See Gtk2 for a full notice. legal stuff, but make it cute β€” you still gotta read it tho. πŸ’…


and that's the whole page, bestie!! πŸ’– this was brought to you by perl v5.42.0, dated 2025-07-25, Gtk2::Socket(3) πŸŽ€ slay, go build something with a socket in it πŸ¦‹ ✨ bye pookie πŸ’…

πŸ“¦ where this page comes from