summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-09-23 15:40:53 +0000
committerjstebbins <[email protected]>2008-09-23 15:40:53 +0000
commit80e70df144fa2b67f6b357e0c8cb937781243c45 (patch)
tree3684438e5c4528817449dfc0c2360af27ec3f50a /gtk/src/callbacks.c
parent7480a8483de8df20e892418e5228210ef6440e9e (diff)
LinGui: refine deblock slider. now shows "Off" and values 5-15.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1748 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r--gtk/src/callbacks.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 3477ea2aa..98b107b26 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -4528,3 +4528,15 @@ gboolean queue_key_press_cb(
return FALSE;
}
+gchar*
+format_deblock_cb(GtkScale *scale, gdouble val, signal_user_data_t *ud)
+{
+ if (val < 5.0)
+ {
+ return g_strdup_printf("Off");
+ }
+ else
+ {
+ return g_strdup_printf("%d", (gint)val);
+ }
+}