From 79cd86dbfd5b2ea0963c84b48088ec189acfc795 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sun, 18 Sep 2011 16:21:04 +0000 Subject: Big changeset, may break stuff. Unfortunately you can't magically jump into the UI thread using gdk_threads_enter/leave() on Windows, the only way is to schedule a callback using g_idle_add. This required a lot of reworking. Good news, Windows support actually works now \o/ --- src/trg-main-window.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/trg-main-window.h') diff --git a/src/trg-main-window.h b/src/trg-main-window.h index da04254..ac19fba 100644 --- a/src/trg-main-window.h +++ b/src/trg-main-window.h @@ -58,9 +58,8 @@ typedef struct { GType trg_main_window_get_type(void); gboolean trg_add_from_filename(TrgMainWindow * win, gchar ** uris); -void on_session_set(JsonObject * response, int status, gpointer data); -void on_generic_interactive_action(JsonObject * response, int status, - gpointer data); +gboolean on_session_set(gpointer data); +gboolean on_generic_interactive_action(gpointer data); void auto_connect_if_required(TrgMainWindow * win, TrgClient * tc); TrgMainWindow *trg_main_window_new(TrgClient * tc, gboolean minonstart); void trg_main_window_add_status_icon(TrgMainWindow * win); -- cgit v1.2.3