From 7bc8fe632f29a875659f223ad1e9aa035c56f46c Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Wed, 30 Nov 2011 18:54:29 +0000 Subject: add some comments at the top of some files, also add a timeout of 20 seconds for curl requests --- src/trg-remote-prefs-dialog.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/trg-remote-prefs-dialog.c') diff --git a/src/trg-remote-prefs-dialog.c b/src/trg-remote-prefs-dialog.c index 8f869dd..b9a059e 100644 --- a/src/trg-remote-prefs-dialog.c +++ b/src/trg-remote-prefs-dialog.c @@ -31,6 +31,15 @@ #include "trg-json-widgets.h" #include "session-get.h" +/* Using the widget creation functions in trg-json-widgets.c, load remote + * preferences from the latest session object held by TrgClient. + * If the user clicks OK, use trg-json-widgets to build up a request object + * and send that in a session-set request. + * + * The on_session_set callback should cause that session object to be refreshed + * as soon as the set is complete. + */ + G_DEFINE_TYPE(TrgRemotePrefsDialog, trg_remote_prefs_dialog, GTK_TYPE_DIALOG) #define TRG_REMOTE_PREFS_DIALOG_GET_PRIVATE(o) \ -- cgit v1.2.3