Add action interface implementation

This commit is contained in:
Jesse van den Kieboom 2014-01-18 13:20:53 +01:00 committed by Jesse van den Kieboom
parent 799d90fb31
commit 0974aac605
2 changed files with 11 additions and 1 deletions

View file

@ -21,7 +21,7 @@ namespace Gitg
{
[GtkTemplate (ui = "/org/gnome/gitg/ui/gitg-window.ui")]
public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
public class Window : Gtk.ApplicationWindow, GitgExt.Application, GitgExt.ActionInterface, Initable
{
private Settings d_state_settings;
private Settings d_interface_settings;
@ -648,6 +648,11 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
}
}
}
public GitgExt.ActionInterface action_interface
{
owned get { return this; }
}
}
}

View file

@ -45,6 +45,11 @@ public interface Application : Object
*/
public abstract GitgExt.Activity? current_activity { owned get; }
/**
* The application action interface.
*/
public abstract GitgExt.ActionInterface action_interface { owned get; }
/**
* Set the current application main activity.
*