[gnome-builder] app: add new temporary file when no files were specified
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] app: add new temporary file when no files were specified
- Date: Tue, 24 Mar 2015 00:38:56 +0000 (UTC)
commit 74c2ddf0571ee75bbf0b897eccdc0ec64a73badb
Author: Christian Hergert <christian hergert me>
Date: Mon Mar 23 02:59:57 2015 -0700
app: add new temporary file when no files were specified
src/app/gb-application.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index f40d916..4952614 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -338,6 +338,9 @@ gb_application__context_new_cb (GObject *object,
"title", _("Builder"),
NULL);
+ if (ar->len == 0)
+ gb_workbench_add_temporary_buffer (workbench);
+
for (i = 0; i < ar->len; i++)
{
GFile *file;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]