summaryrefslogtreecommitdiffstats
path: root/gtk/src/presets.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-10-30 18:58:16 +0000
committerjstebbins <[email protected]>2008-10-30 18:58:16 +0000
commit9834623a06e533d557ec8919e4238e207886f9a7 (patch)
tree8d88b3e4e0347fd8b4a1e7a81ddc5e0519c09588 /gtk/src/presets.c
parent39a4d09c458ecef7007890aaf9872842e041410f (diff)
LinGui: add handbrake version and preset used to activity log
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1882 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/presets.c')
-rw-r--r--gtk/src/presets.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index 90bbe5511..cad74d74d 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -323,8 +323,7 @@ ghb_presets_remove(
presets_remove_nth(folder, indices[len-1]);
else
{
- g_warning("ghb_presets_remove ()");
- g_warning("internal preset lookup error");
+ g_warning("ghb_presets_remove (): internal preset lookup error");
return FALSE;
}
return TRUE;
@@ -344,8 +343,7 @@ ghb_presets_replace(
ghb_array_replace(folder, indices[len-1], dict);
else
{
- g_warning("ghb_presets_replace ()");
- g_warning("internal preset lookup error");
+ g_warning("ghb_presets_replace (): internal preset lookup error");
}
}
@@ -363,8 +361,7 @@ ghb_presets_insert(
ghb_array_insert(folder, indices[len-1], dict);
else
{
- g_warning("ghb_presets_insert ()");
- g_warning("internal preset lookup error");
+ g_warning("ghb_presets_insert (): internal preset lookup error");
}
}
@@ -637,8 +634,7 @@ ghb_presets_get_type(
}
else
{
- g_warning("ghb_presets_get_type ()");
- g_warning("internal preset lookup error");
+ g_warning("ghb_presets_get_type (): internal preset lookup error");
}
return type;
}
@@ -659,8 +655,7 @@ ghb_presets_get_folder(
}
else
{
- g_warning("ghb_presets_get_folder ()");
- g_warning("internal preset lookup error");
+ g_warning("ghb_presets_get_folder (): internal preset lookup error");
}
return folder;
}
@@ -891,6 +886,16 @@ ghb_settings_to_ui(signal_user_data_t *ud, GValue *dict)
static GValue *current_preset = NULL;
+gboolean
+ghb_preset_is_custom()
+{
+ const GValue *val;
+
+ if (current_preset == NULL) return FALSE;
+ val = preset_dict_get_value(current_preset, "Type");
+ return (ghb_value_int(val) == 1);
+}
+
void
ghb_set_preset_from_indices(signal_user_data_t *ud, gint *indices, gint len)
{