Class: Gtk::Statusbar

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#get_context_id(context_description) ⇒ Integer

Returns a new context identifier, given a description of the actual context. Note that the description is not shown in the UI.

Parameters:

  • context_description (String)

    textual description of what context the new message is being used in

Returns:

  • (Integer)

    an integer id

#message_areaGtk::Box

Retrieves the box containing the label widget.

Returns:

#newGtk::Widget

Creates a new Gtk::Statusbar ready for messages.

Returns:

#pop(context_id) ⇒ nil

Removes the first message in the Gtk::Statusbar’s stack with the given context id.

Note that this may not change the displayed message, if the message at the top of the stack has a different context id.

Parameters:

  • context_id (Integer)

    a context identifier

Returns:

  • (nil)

#push(context_id, text) ⇒ Integer

Pushes a new message onto a statusbar’s stack.

Parameters:

  • context_id (Integer)

    the message’s context id, as returned by gtk_statusbar_get_context_id()

  • text (String)

    the message to add to the statusbar

Returns:

  • (Integer)

    a message id that can be used with gtk_statusbar_remove().

#remove(context_id, message_id) ⇒ nil

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

Parameters:

  • context_id (Integer)

    a context identifier

  • message_id (Integer)

    a message identifier, as returned by gtk_statusbar_push()

Returns:

  • (nil)

#remove_all(context_id) ⇒ nil

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

Parameters:

  • context_id (Integer)

    a context identifier

Returns:

  • (nil)