[gitg/wip/submodules: 3/5] Add open_new to GitgExt.Application
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/submodules: 3/5] Add open_new to GitgExt.Application
- Date: Sat, 13 Dec 2014 16:28:27 +0000 (UTC)
commit fc46f3879d1809f778014d58696779c775596701
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Dec 13 15:40:45 2014 +0100
Add open_new to GitgExt.Application
gitg/gitg-window.vala | 8 ++++++++
libgitg-ext/gitg-ext-application.vala | 2 ++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 026407a..8d8f73f 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -337,6 +337,14 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
}
}
+ public GitgExt.Application open_new(Ggit.Repository repository, string? hint = null)
+ {
+ var window = Window.create_new(application, (Gitg.Repository)repository, hint);
+ window.present();
+
+ return window;
+ }
+
private void repository_changed()
{
if (d_repository != null)
diff --git a/libgitg-ext/gitg-ext-application.vala b/libgitg-ext/gitg-ext-application.vala
index 51e3a86..379647f 100644
--- a/libgitg-ext/gitg-ext-application.vala
+++ b/libgitg-ext/gitg-ext-application.vala
@@ -64,6 +64,8 @@ public interface Application : Object
public abstract bool busy { get; set; }
public abstract Gee.Map<string, string> environment { owned get; }
+
+ public abstract Application open_new(Ggit.Repository repository, string? hint = null);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]