[gitg/wip/actions] Add action interface implementation
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/actions] Add action interface implementation
- Date: Sat, 18 Jan 2014 12:30:10 +0000 (UTC)
commit 12ffd46abc4063b2bf7bc848ebf860d0591d4614
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Jan 18 13:20:53 2014 +0100
Add action interface implementation
gitg/gitg-window.vala | 7 ++++++-
libgitg-ext/gitg-ext-application.vala | 5 +++++
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index b1041e6..0ecc074 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -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;
@@ -579,6 +579,11 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
{
owned get { return d_environment; }
}
+
+ public GitgExt.ActionInterface action_interface
+ {
+ owned get { return this; }
+ }
}
}
diff --git a/libgitg-ext/gitg-ext-application.vala b/libgitg-ext/gitg-ext-application.vala
index cffeb12..e22f5d6 100644
--- a/libgitg-ext/gitg-ext-application.vala
+++ b/libgitg-ext/gitg-ext-application.vala
@@ -46,6 +46,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.
*
* @param id the id of the activity { link UIElement.id}.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]