diff options
author | jstebbins <[email protected]> | 2015-03-06 18:12:27 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-03-06 18:12:27 +0000 |
commit | b2afa282e450e3c1e7c1ab75925734086e6b706a (patch) | |
tree | 65376e1623e890e518c3dc5f1b847a255b82d2c6 /gtk/src/main.c | |
parent | f6bf7d75908d718ea620ac2e6f691627d0a9e7c2 (diff) |
LinGui: change settings dict from glib to jansson
This will allow for preferences, presets, and queue files to be
written as json instead of plists (currently still plists).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6968 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r-- | gtk/src/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index 92f770015..ad4be4561 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -89,7 +89,7 @@ GtkBuilder* create_builder_or_die(const gchar * name) { guint res = 0; - GValue *gval; + GhbValue *gval; GError *error = NULL; const gchar *ghb_ui; @@ -101,7 +101,7 @@ create_builder_or_die(const gchar * name) g_debug("create_builder_or_die()\n"); GtkBuilder *xml = gtk_builder_new(); gval = ghb_resource_get("ghb-ui"); - ghb_ui = g_value_get_string(gval); + ghb_ui = ghb_value_const_string(gval); if (xml != NULL) res = gtk_builder_add_from_string(xml, ghb_ui, -1, &error); if (!xml || !res) @@ -782,7 +782,7 @@ int main(int argc, char *argv[]) { signal_user_data_t *ud; - GValue *preset; + GhbValue *preset; GError *error = NULL; GOptionContext *context; @@ -833,7 +833,6 @@ main(int argc, char *argv[]) #if !defined(_WIN32) notify_init("HandBrake"); #endif - ghb_register_transforms(); ghb_resource_init(); ghb_load_icons(); @@ -1033,7 +1032,7 @@ main(int argc, char *argv[]) } else { - GValue *gval = ghb_settings_get_value(ud->prefs, "default_source"); + GhbValue *gval = ghb_settings_get_value(ud->prefs, "default_source"); ghb_settings_set_value(ud->globals, "scan_source", gval); } // Reload and check status of the last saved queue |