Add the Close method call to the DBus API. This allows users to close
a running window.
return 0;
}
+/**
+ * Clean up and remove self completely from the program
+ *
+ * Should only be used by DBus...
+ */
+gboolean
+tilda_window_close (TildaWindow *self)
+{
+ debug_enter ();
+ debug_assert (TILDA_IS_WINDOW(self));
+
+ tilda_del_window (self->number);
+
+ return TRUE;
+}
+
gboolean
tilda_window_add_terminal (TildaWindow *self)
{
GType tilda_window_get_type (void);
/* API */
+gboolean tilda_window_close (TildaWindow *self);
gboolean tilda_window_add_terminal (TildaWindow *self);
gboolean tilda_window_remove_terminal (TildaWindow *self, gint terminal_number);
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="tilda_window_add_terminal" />
</method>
+ <method name="Close">
+ <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="tilda_window_close" />
+ </method>
+
</interface>
</node>