Placeholder


Object Hierarchy:

Granite.Placeholder Granite.Placeholder Granite.Placeholder Gtk.Widget Gtk.Widget Gtk.Widget->Granite.Placeholder GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.Widget

Description:


public class Placeholder : Widget

Placeholder is used to provide further information in an empty view such as a Gtk.ListBox or when onboarding.

Example

  var alert = new Granite.Placeholder ("Panic! At the Button") {
description = "Maybe you can <b>do something</b> to hide it but <i>otherwise</i> it will stay here",
icon = new ThemedIcon ("dialog-warning")
};

var alert_action = alert.append_button (
new ThemedIcon ("edit-delete"),
"Hide This Button",
"Click here to hide this"
);


Namespace: Granite
Package: granite-7

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget