AlertView


Object Hierarchy:

Granite.Widgets.AlertView Granite.Widgets.AlertView Granite.Widgets.AlertView Gtk.Grid Gtk.Grid Gtk.Grid->Granite.Widgets.AlertView Gtk.Container Gtk.Container Gtk.Container->Gtk.Grid Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Gtk.Grid Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.Grid Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget Gtk.Orientable Gtk.Orientable Gtk.Orientable->Gtk.Grid

Description:


public class AlertView : Grid

The AlertView widget shows to the user that some actions are now restricted.

It can be used to show an empty view or hiding a panel when this one is disabled.

Example

public class AlertViewView : Gtk.Grid {
construct {
var alert = new Granite.Widgets.AlertView ("Nothing here", "Maybe you can enable <b>something</b> to hide it but <i>otherwise</i> it will stay here", "dialog-warning");
alert.show_action ("Hide this button");

alert.action_activated.connect (() => {
alert.hide_action ();
});

add (alert);
}
}


Namespace: Granite.Widgets
Package: granite

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Orientable