This method allows the user to close a terminal over DBus. This gives
TildaTerminal the same feature as TildaWindow.
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,
/* API */
gboolean tilda_terminal_run_command (TildaTerminal *self, gchar *command, GError **error);
+gboolean tilda_terminal_close (TildaTerminal *self, GError **error);
#endif /* TILDA_TERMINAL_H */
<arg type="s" name="command" direction="in" />
</method>
+ <method name="Close">
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="tilda_terminal_close" />
+ </method>
+
</interface>
</node>