mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-28 04:19:40 +00:00
Add action interface implementation
This commit is contained in:
parent
799d90fb31
commit
0974aac605
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue