X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tilda-terminal.c;h=14567dab471d15d6622f47c345131a745b0ed476;hb=2b17e21d2ac627242479945521f7a8e65c51d5b5;hp=12c08afd20ecc9bb3737cff53b57ad4f930050e8;hpb=7f09fc152737d466464b94a921ee28df6fc7f6ea;p=tilda-gobject.git diff --git a/tilda-terminal.c b/tilda-terminal.c index 12c08af..14567da 100644 --- a/tilda-terminal.c +++ b/tilda-terminal.c @@ -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,