Gnome2:...o::Dock(3)

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

πŸ’– Gnome2::Bonobo::Dock β€” the vibe ✨

okay so bestie, welcome to the Gnome2::Bonobo::Dock page, straight out of the User Contributed Perl Documentation collection 🫢 this is the Perl wrapper for BonoboDock, and yes it's exactly as iconic as it sounds πŸ’…


🌸 HIERARCHY 🌸

so the family tree goes like this, and you're gonna wanna screenshot it:

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gnome2::Bonobo::Dock

it's giving deep inheritance, fr fr πŸ‘‘


πŸ¦‹ INTERFACES πŸ¦‹

the extra lil interfaces it's serving:

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

✨ METHODS ✨

πŸŽ€ widget = Gnome2::Bonobo::Dock->new

the constructor, the origin story, the main character moment 🌟 you call it and you get yourself a shiny new dock widget.


πŸŽ€ $dock->add_floating_item ($widget, $x, $y, $orientation)

drop a floating item into the dock. the deets:

  • $widget (Gnome2::Bonobo::DockItem)
  • $x (integer)
  • $y (integer)
  • $orientation (Gtk2::Orientation)

πŸŽ€ boolean = $dock->add_from_layout ($layout)

feed it a layout and it'll build the dock from it. returns a boolean, so like… did it work or not, bestie 😭

  • $layout (Gnome2::Bonobo::DockLayout)

πŸŽ€ $dock->add_item ($item, $placement, $band_num, $position, $offset, $in_new_band)

the full-control version of adding an item. so many knobs, so little time πŸ™ˆ

  • $item (Gnome2::Bonobo::DockItem)
  • $placement (Gnome2::Bonobo::DockPlacement)
  • $band_num (integer)
  • $position (integer)
  • $offset (integer)
  • $in_new_band (boolean)

πŸŽ€ $dock->allow_floating_items ($enable)

turn floating items on or off. it's a vibe switch, lowkey πŸ¦‹

  • $enable (boolean)

πŸŽ€ widget = $dock->get_client_area

grabs the client area widget. that's it, that's the tweet πŸ’–


πŸŽ€ $dock->set_client_area ($widget)

sets the client area. partner method to the one above, they're a matched set πŸ‘‘

  • $widget (Gtk2::Widget)

πŸŽ€ list = $dock->get_item_by_name ($name)

look up an item by name, bestie πŸ”

  • $name (string)
Returns a BonoboDockItem, a BonoboDockPlacement and three unsigned integers corresponding to num_band, band_position and offset.

so yeah, you get a whole list back, not just one thing. five whole returns. iconic behaviour honestly.


πŸŽ€ docklayout = $dock->get_layout

hands you back the dock layout. cute, simple, we love her 🌸


πŸ”₯ SIGNALS πŸ”₯

  • layout-changed (Gnome2::Bonobo::Dock)

one signal, but she's important. when the layout changes, you'll know πŸ‘€


🌈 ENUMS AND FLAGS 🌈

πŸ’œ enum Gnome2::Bonobo::DockPlacement

where things can go, bestie:

  • 'top' / BONOBO_DOCK_TOP
  • 'right' / BONOBO_DOCK_RIGHT
  • 'bottom' / BONOBO_DOCK_BOTTOM
  • 'left' / BONOBO_DOCK_LEFT
  • 'floating' / BONOBO_DOCK_FLOATING

all four sides plus the chaotic floating option. we respect it πŸ’…


πŸ’œ enum Gtk2::Orientation

the classic two:

  • 'horizontal' / GTK_ORIENTATION_HORIZONTAL
  • 'vertical' / GTK_ORIENTATION_VERTICAL

left to right or up and down, pick your fighter ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, they're all connected fr fr:

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

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

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


okay that's the whole page bestie, you ate that 🫢 this was perl v5.42.0, dated 2025-07-25, and it's the Gnome2:...o::Dock(3) page from the User Contributed Perl Documentation set. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from