summaryrefslogtreecommitdiffstats
path: root/gtk/src/settings.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-10-17 16:20:43 +0000
committerjstebbins <[email protected]>2008-10-17 16:20:43 +0000
commitc169470e5c6d06fa8eec2835af1aaf4f6d210faa (patch)
tree3ab890310d672f80090f8871a1f3c785e5e6991d /gtk/src/settings.c
parent9938bfacd7807ac96236a9111101f8479f3d157b (diff)
LinGui: Make preset key/values mostly align with macui presets.
One step closer to having a common preset format. Audio presets are still not compatible. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1840 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r--gtk/src/settings.c73
1 files changed, 0 insertions, 73 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c
index 4cb797fe1..0b5c90283 100644
--- a/gtk/src/settings.c
+++ b/gtk/src/settings.c
@@ -597,76 +597,3 @@ ghb_ui_update(signal_user_data_t *ud, const gchar *name, const GValue *value)
return 0;
}
-gint
-ghb_pref_acount(GValue *settings)
-{
- GValue *acodec;
- acodec = ghb_settings_get_value(settings, "pref_audio_codec");
- return ghb_array_len(acodec);
-}
-
-gint
-ghb_pref_acodec(GValue *settings, gint index)
-{
- GValue *acodec;
- gint count;
-
- acodec = ghb_settings_get_value(settings, "pref_audio_codec");
- count = ghb_array_len(acodec);
- if (index >= count)
- return 0;
- return ghb_value_int(ghb_array_get_nth(acodec, index));
-}
-
-gint
-ghb_pref_bitrate(GValue *settings, gint index)
-{
- GValue *bitrate;
- gint count;
-
- bitrate = ghb_settings_get_value(settings, "pref_audio_bitrate");
- count = ghb_array_len(bitrate);
- if (index >= count)
- return 0;
- return ghb_value_int(ghb_array_get_nth(bitrate, index));
-}
-
-gint
-ghb_pref_rate(GValue *settings, gint index)
-{
- GValue *rate;
- gint count;
-
- rate = ghb_settings_get_value(settings, "pref_audio_rate");
- count = ghb_array_len(rate);
- if (index >= count)
- return 0;
- return ghb_value_int(ghb_array_get_nth(rate, index));
-}
-
-gint
-ghb_pref_mix(GValue *settings, gint index)
-{
- GValue *mix;
- gint count;
-
- mix = ghb_settings_get_value(settings, "pref_audio_mix");
- count = ghb_array_len(mix);
- if (index >= count)
- return 0;
- return ghb_value_int(ghb_array_get_nth(mix, index));
-}
-
-gdouble
-ghb_pref_drc(GValue *settings, gint index)
-{
- GValue *drc;
- gint count;
-
- drc = ghb_settings_get_value(settings, "pref_audio_drc");
- count = ghb_array_len(drc);
- if (index >= count)
- return 0;
- return ghb_value_double(ghb_array_get_nth(drc, index));
-}
-