Gnome2::AppBar(3)

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

πŸ’… Gnome2::AppBar β€” bestie, it's a wrapper for GnomeAppBar

okay so this is Gnome2::AppBar, and it lives in the User Contributed Perl Documentation corner of your man pages (section 3, obvi). It's a Perl wrapper around GnomeAppBar, and if you're like "what even is that", don't worry, we're getting there πŸ’–


🌈 HIERARCHY

so this is the family tree and it's long, she has ancestors, respect them:

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Box
                         +----Gtk2::HBox
                              +----Gnome2::AppBar

she's the youngest, she's the baby of the box dynasty, and she inherited everything ✨


πŸŽ€ INTERFACES

these are the vibes she's also giving, on top of being an AppBar:

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

πŸ¦‹ METHODS

✨ widget = Gnome2::AppBar->new ($has_progress, $has_status, $interactivity)

the constructor, the origin story. she takes three things:

  • $has_progress β€” a boolean
  • $has_status β€” a boolean
  • $interactivity β€” a Gnome2::PreferencesType

πŸ’œ $appbar->clear_prompt

clears the prompt. that's it. that's the whole thing. slay.


πŸ’œ $appbar->clear_stack

clears the stack. iconic, no notes.


πŸ’œ $appbar->set_default ($default_status)

  • $default_status β€” a string

sets the default status, bestie.


πŸ’œ $appbar->install_menu_hints ($uiinfo)

  • $uiinfo β€” a Gnome2::UIInfo

πŸ’œ $appbar->pop

pops. (the stack, not the vibes, though also maybe the vibes)


πŸ’œ progressbar = $appbar->get_progress

hands you the progress bar widget, go get her πŸ‘‘


πŸ’œ $appbar->set_progress_percentage ($percentage)

  • $percentage β€” a double

set it and watch that bar fill up, we love a glow-up 🌸


πŸ’œ $appbar->set_prompt ($prompt, $modal)

  • $prompt β€” a string
  • $modal β€” a boolean

πŸ’œ $appbar->push ($status)

  • $status β€” a string

πŸ’œ $appbar->refresh

refresh. take a breath, hydrate, come back cuter πŸ’–


πŸ’œ string = $appbar->get_response

gives you back a string, the response, the tea β˜•


πŸ’œ widget = $appbar->get_status

hands you the status widget.


πŸ’œ $appbar->set_status ($status)

  • $status β€” a string

πŸ”₯ PROPERTIES

  • 'has-progress' (boolean : default false : readable / writable / construct) β€” create a progress widget. that's literally what the manpage says and honestly same.
  • 'has-status' (boolean : default false : readable / writable / construct) β€” create a status widget.
  • 'interactivity' (Gnome2::PreferencesType : default "never" : readable / writable / construct) β€” level of user activity required.

⭐ SIGNALS

  • clear-prompt (Gnome2::AppBar)
  • user-response (Gnome2::AppBar)

she's emitting bestie, watch her go ✨


🌈 ENUMS AND FLAGS

enum Gnome2::PreferencesType

  • 'never' / GNOME_PREFERENCES_NEVER
  • 'user' / GNOME_PREFERENCES_USER
  • 'always' / GNOME_PREFERENCES_ALWAYS

three options, pick your fighter πŸ’…


πŸ‘€ SEE ALSO

go read these too, they're the friend group:

Gnome2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box, Gtk2::HBox


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

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

ngl that's the whole page, you ate it, no crumbs left πŸ’€βœ¨

okay that's a wrap bestie 🫢 this was served up by perl v5.42.0, dated 2025-07-25, page Gnome2::AppBar(3). go forth and build ur little status bars, main character πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from