diff --git a/src/ag-header-bar.vala b/src/ag-header-bar.vala new file mode 100644 index 0000000..10199b9 --- /dev/null +++ b/src/ag-header-bar.vala @@ -0,0 +1,13 @@ +namespace Ag { + + class HeaderBar: Gtk.HeaderBar { + public void clear() + { + custom_title = null; + + foreach (Gtk.Widget w in get_children()) { + w.hide(); + } + } + } +} diff --git a/src/widgets.vala b/src/widgets.vala new file mode 100644 index 0000000..af39e27 --- /dev/null +++ b/src/widgets.vala @@ -0,0 +1,13 @@ +namespace Ag { + + public class HeaderBar : Gtk.HeaderBar { + public void clear() + { + custom_title = null; + + foreach (Gtk.Widget w in get_children()) { + w.hide(); + } + } + } +}