[gnome-builder] terminal: handle empty terminal title



commit 08f93683afbe832da9c8d77b44d8d9193744d475
Author: Christian Hergert <chergert redhat com>
Date:   Fri Sep 16 11:27:45 2016 -0700

    terminal: handle empty terminal title
    
    Sorry translators for the late string, but without this we end up showing
    absolutely nothing.

 plugins/terminal/gb-terminal-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/terminal/gb-terminal-view.c b/plugins/terminal/gb-terminal-view.c
index 855bcd4..5886668 100644
--- a/plugins/terminal/gb-terminal-view.c
+++ b/plugins/terminal/gb-terminal-view.c
@@ -364,6 +364,9 @@ gb_terminal_get_title (IdeLayoutView *view)
   else
     title = vte_terminal_get_window_title (self->terminal_top);
 
+  if (title == NULL)
+    title = _("Untitled terminal");
+
   return g_strdup (title);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]