[Controller] Disallow multiple TildaWindows to bind to the same key
[tilda-gobject.git] / tilda-terminal.c
index 12c08af..14567da 100644 (file)
@@ -34,6 +34,19 @@ tilda_terminal_run_command (TildaTerminal *self, gchar *command, GError **error)
        return TRUE;
 }
 
+gboolean
+tilda_terminal_close (TildaTerminal *self, GError **error)
+{
+       debug_enter  ();
+       debug_assert (TILDA_IS_TERMINAL(self));
+
+       TildaWindow *parent_window = TILDA_WINDOW(self->parent_window);
+
+       tilda_window_remove_terminal (parent_window, self->number);
+
+       return TRUE;
+}
+
 /**
  * Start the current tt->shell in the given TildaTerminal
  * NOTE: this will kill whatever is running in the terminal,