[gnome-builder] terminal: query the launcher for respawnability
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] terminal: query the launcher for respawnability
- Date: Mon, 5 Aug 2019 19:34:24 +0000 (UTC)
commit ed94a136368cc85906c8c276a7a00fbb7ef20cfb
Author: Christian Hergert <chergert redhat com>
Date: Mon Aug 5 12:33:33 2019 -0700
terminal: query the launcher for respawnability
src/libide/terminal/ide-terminal-page.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/libide/terminal/ide-terminal-page.c b/src/libide/terminal/ide-terminal-page.c
index 388826f09..6e32674c1 100644
--- a/src/libide/terminal/ide-terminal-page.c
+++ b/src/libide/terminal/ide-terminal-page.c
@@ -620,15 +620,21 @@ ide_terminal_page_set_launcher (IdeTerminalPage *self,
if (g_set_object (&self->launcher, launcher))
{
+ gboolean can_split;
+
if (launcher != NULL)
{
const gchar *title = ide_terminal_launcher_get_title (launcher);
ide_page_set_title (IDE_PAGE (self), title);
+ can_split = ide_terminal_launcher_can_respawn (launcher);
}
else
{
self->manage_spawn = FALSE;
+ can_split = FALSE;
}
+
+ ide_page_set_can_split (IDE_PAGE (self), can_split);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]