Class

GtkStatusbar

deprecated: 4.10 

[]

Description [src]

final class Gtk.Statusbar : Gtk.Widget
  implements Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget {
  /* No available fields */
}

A GtkStatusbar widget is usually placed along the bottom of an application’s main GtkWindow.

picture> An example GtkStatusbar

A GtkStatusBar may provide a regular commentary of the application’s status (as is usually the case in a web browser, for example), or may be used to simply output a message when the status changes, (when an upload is complete in an FTP client, for example).

Status bars in GTK maintain a stack of messages. The message at the top of the each bar’s stack is the one that will currently be displayed.

Any messages added to a statusbar’s stack must specify a context id that is used to uniquely identify the source of a message. This context id can be generated by gtk_statusbar_get_context_id(), given a message and the statusbar that it will be added to. Note that messages are stored in a stack, and when choosing which message to display, the stack structure is adhered to, regardless of the context identifier of a message.

One could say that a statusbar maintains one stack of messages for display purposes, but allows multiple message producers to maintain sub-stacks of the messages they produced (via context ids).

Status bars are created using gtk_statusbar_new().

Messages are added to the bar’s stack with gtk_statusbar_push().

The message at the top of the stack can be removed using gtk_statusbar_pop(). A message can be removed from anywhere in the stack if its message id was recorded at the time it was added. This is done using gtk_statusbar_remove().

CSS node

GtkStatusbar has a single CSS node with name statusbar.

Deprecated since: 4.10

This widget will be removed in GTK 5.

[]

Hierarchy

hierarchy this GtkStatusbar implements_0 GtkAccessible this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkConstraintTarget this--implements_2 ancestor_0 GtkWidget ancestor_0--this ancestor_1 GInitiallyUnowned ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1
[]

Constructors

gtk_statusbar_new

Creates a new GtkStatusbar ready for messages.

deprecated: 4.10 

[]

Instance methods

gtk_statusbar_get_context_id

Returns a new context identifier, given a description of the actual context.

deprecated: 4.10 

gtk_statusbar_pop

Removes the first message in the GtkStatusbar’s stack with the given context id.

deprecated: 4.10 

gtk_statusbar_push

Pushes a new message onto a statusbar’s stack.

deprecated: 4.10 

gtk_statusbar_remove

Forces the removal of a message from a statusbar’s stack. The exact context_id and message_id must be specified.

deprecated: 4.10 

gtk_statusbar_remove_all

Forces the removal of all messages from a statusbar’s stack with the exact context_id.

deprecated: 4.10 

Methods inherited from GtkWidget (164)
Methods inherited from GObject (43)
Methods inherited from GtkAccessible (20)
Methods inherited from GtkBuildable (1)
[]

Properties

Properties inherited from GtkWidget (35)
Properties inherited from GtkAccessible (1)
[]

Signals

Gtk.Statusbar::text-popped

Emitted whenever a new message is popped off a statusbar’s stack.

deprecated: 4.10 

Gtk.Statusbar::text-pushed

Emitted whenever a new message gets pushed onto a statusbar’s stack.

deprecated: 4.10 

Signals inherited from GtkWidget (13)
Signals inherited from GObject (1)