Port xed to dbus and GtkApplication

This further improves on the port to GtkSource API's and cleans up a ton of
legacy code in xed based on upstream changes in Gedit.
This commit is contained in:
JosephMcc
2017-02-04 22:17:58 -08:00
parent f05ddd7b63
commit 2aa009cb76
45 changed files with 1434 additions and 6558 deletions

View File

@@ -32,7 +32,7 @@ typedef struct _XedWindowClass XedWindowClass;
struct _XedWindow
{
GtkWindow window;
GtkApplicationWindow window;
/*< private > */
XedWindowPrivate *priv;
@@ -40,7 +40,7 @@ struct _XedWindow
struct _XedWindowClass
{
GtkWindowClass parent_class;
GtkApplicationWindowClass parent_class;
/* Signals */
void (* tab_added) (XedWindow *window, XedTab *tab);
@@ -50,13 +50,13 @@ struct _XedWindowClass
void (* active_tab_state_changed) (XedWindow *window);
};
/*
* Public methods
*/
/* Public methods */
GType xed_window_get_type (void) G_GNUC_CONST;
XedTab *xed_window_create_tab (XedWindow *window, gboolean jump_to);
XedTab *xed_window_create_tab_from_location (XedWindow *window, GFile *location, const GtkSourceEncoding *encoding,
gint line_pos, gboolean create, gboolean jump_to);
XedTab *xed_window_create_tab_from_stream (XedWindow *window, GInputStream *stream, const GtkSourceEncoding *encoding,
gint line_pos, gboolean jump_to);
void xed_window_close_tab (XedWindow *window, XedTab *tab);
void xed_window_close_all_tabs (XedWindow *window);
void xed_window_close_tabs (XedWindow *window, const GList *tabs);