summaryrefslogtreecommitdiff
path: root/src/trg-preferences-dialog.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-08-27 17:15:31 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-08-27 17:15:31 +0000
commitbd758ee4fc423b9ca152a01f897609daa656c938 (patch)
tree0378306b5b007f38f0c4f6c0d868215f70fd70d6 /src/trg-preferences-dialog.h
parentb8a1599a2ab9eafd496ba23179dda97d6e83e917 (diff)
Profile support! Please test and report bugs, as the config system is totally rewritten and may not be perfect. No more GConf (trying to implement profiles with this was UGLY), settings now (for most) live in JSON at $HOME/.config/transmission-remote-gtk/config.json. Hopefully windows support will be easier without GConf.
Diffstat (limited to 'src/trg-preferences-dialog.h')
-rw-r--r--src/trg-preferences-dialog.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/trg-preferences-dialog.h b/src/trg-preferences-dialog.h
index d99f911..8b90284 100644
--- a/src/trg-preferences-dialog.h
+++ b/src/trg-preferences-dialog.h
@@ -23,7 +23,6 @@
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
-#include <gconf/gconf-client.h>
#include "trg-main-window.h"
@@ -38,6 +37,14 @@ typedef struct _TrgPreferencesDialogPrivate TrgPreferencesDialogPrivate;
#define TRG_IS_PREFERENCES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), TRG_TYPE_PREFERENCES_DIALOG))
#define TRG_PREFERENCES_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TRG_TYPE_PREFERENCES_DIALOG, TrgPreferencesDialogClass))
+typedef struct {
+ GtkWidget *widget;
+ int flags;
+ gchar *key;
+ void (*saveFunc)(TrgPrefs*,void*);
+ void (*refreshFunc)(TrgPrefs*,void*);
+} trg_pref_widget_desc;
+
struct _TrgPreferencesDialog {
GtkDialog dialog;
TrgPreferencesDialogPrivate *priv;
@@ -50,6 +57,6 @@ struct _TrgPreferencesDialogClass {
GType trg_preferences_dialog_get_type(void);
GtkWidget *trg_preferences_dialog_get_instance(TrgMainWindow * win,
- trg_client * client);
+ TrgClient * client);
G_END_DECLS
#endif /* TRG_PREFERENCES_WINDOW_H_ */