diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-12-22 22:39:32 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-12-22 22:39:32 +0000 |
commit | d3ca30c9ebe0e5b104d4dd89d4f998fad3a5d5ae (patch) | |
tree | a6121706b304a9432f8fb57d69b94fad97c11312 /src/trg-json-widgets.h | |
parent | 9280f0796483582fc421b2401fbe9c4be4425b4d (diff) |
some support for "alternate" speed limits, including setting them to be turned on/off at a certain time range.
Diffstat (limited to 'src/trg-json-widgets.h')
-rw-r--r-- | src/trg-json-widgets.h | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/src/trg-json-widgets.h b/src/trg-json-widgets.h index b5667d8..3dafdfd 100644 --- a/src/trg-json-widgets.h +++ b/src/trg-json-widgets.h @@ -26,40 +26,26 @@ typedef struct { GtkWidget *widget; gchar *key; - void (*saveFunc) (GtkWidget * widget, JsonObject * obj, gchar * key); + void (*saveFunc)(GtkWidget * widget, JsonObject * obj, gchar * key); } trg_json_widget_desc; -typedef enum { - TRG_JSON_WIDGET_SPIN_INT, - TRG_JSON_WIDGET_SPIN_DOUBLE -} trg_json_widget_spin_type; - void toggle_active_arg_is_sensitive(GtkToggleButton * b, gpointer data); GtkWidget *trg_json_widget_check_new(GList ** wl, JsonObject * obj, - const gchar * key, - const gchar * label, - GtkWidget * toggleDep); + const gchar * key, const gchar * label, GtkWidget * toggleDep); GtkWidget *trg_json_widget_entry_new(GList ** wl, JsonObject * obj, - const gchar * key, - GtkWidget * toggleDep); -GtkWidget *trg_json_widget_spin_new_int(GList ** wl, JsonObject * obj, - const gchar * key, - GtkWidget * toggleDep, gint min, - gint max, gint step); -GtkWidget *trg_json_widget_spin_new_double(GList ** wl, JsonObject * obj, - const gchar * key, - GtkWidget * toggleDep, gint min, - gint max, gdouble step); - + const gchar * key, GtkWidget * toggleDep); +GtkWidget *trg_json_widget_spin_new(GList ** wl, JsonObject * obj, + const gchar * key, GtkWidget * toggleDep, gdouble min, gdouble max, + gdouble step); void trg_json_widget_check_save(GtkWidget * widget, JsonObject * obj, - gchar * key); + gchar * key); void trg_json_widget_entry_save(GtkWidget * widget, JsonObject * obj, - gchar * key); + gchar * key); void trg_json_widget_spin_save_int(GtkWidget * widget, JsonObject * obj, - gchar * key); + gchar * key); void trg_json_widget_spin_save_double(GtkWidget * widget, JsonObject * obj, - gchar * key); + gchar * key); void trg_json_widget_desc_free(trg_json_widget_desc * wd); void trg_json_widget_desc_list_free(GList * list); |