diff options
-rw-r--r-- | gtk/src/callbacks.c | 12 | ||||
-rw-r--r-- | gtk/src/ghb.ui | 3 | ||||
-rw-r--r-- | gtk/src/hb-backend.c | 2 | ||||
-rw-r--r-- | gtk/src/resource_data.h | 4 | ||||
-rw-r--r-- | gtk/src/resources.plist | 3 |
5 files changed, 20 insertions, 4 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); + } +} diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index 3cef79446..dfc4430fb 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -155,7 +155,7 @@ </object> <object class="GtkAdjustment" id="adjustment20"> <property name="upper">15</property> - <property name="lower">0</property> + <property name="lower">4</property> <property name="page_increment">1</property> <property name="step_increment">1</property> <property name="page_size">0</property> @@ -1372,6 +1372,7 @@ <property name="digits">0</property> <property name="value_pos">GTK_POS_RIGHT</property> <signal handler="setting_widget_changed_cb" name="value_changed"/> + <signal handler="format_deblock_cb" name="format-value"/> </object> </child> </object> diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index b05c249cc..1471181ba 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -3130,7 +3130,7 @@ ghb_add_job(GValue *js, gint unique_id) hb_list_add( job->filters, &hb_filter_deinterlace ); } gint deblock = ghb_settings_get_int(js, "deblock"); - if( deblock > 0 ) + if( deblock >= 5 ) { deblock_str = g_strdup_printf("%d", deblock); hb_filter_deblock.settings = deblock_str; diff --git a/gtk/src/resource_data.h b/gtk/src/resource_data.h index 252620d8c..88f54d16f 100644 --- a/gtk/src/resource_data.h +++ b/gtk/src/resource_data.h @@ -200,7 +200,7 @@ " <object class="GtkAdjustment" id="adjustment20"" ";>\n" " <property name="upper">15</property>\n" -" <property name="lower">0</property>\n" +" <property name="lower">4</property>\n" " <property name="page_increment">1</property>\n" " <property name="step_increment">1</property>\n" " <property name="page_size">0</property>\n" @@ -2159,6 +2159,8 @@ ";value_pos">GTK_POS_RIGHT</property>\n" " <signal handler=&quo" "t;setting_widget_changed_cb" name="value_changed"/>\n" +" <signal handler=&quo" +"t;format_deblock_cb" name="format-value"/>\n" " </object>\n" " </child>\n" " </object>\n" diff --git a/gtk/src/resources.plist b/gtk/src/resources.plist index 37e7c1adf..b9319ef07 100644 --- a/gtk/src/resources.plist +++ b/gtk/src/resources.plist @@ -160,7 +160,7 @@ </object> <object class="GtkAdjustment" id="adjustment20"> <property name="upper">15</property> - <property name="lower">0</property> + <property name="lower">4</property> <property name="page_increment">1</property> <property name="step_increment">1</property> <property name="page_size">0</property> @@ -1377,6 +1377,7 @@ <property name="digits">0</property> <property name="value_pos">GTK_POS_RIGHT</property> <signal handler="setting_widget_changed_cb" name="value_changed"/> + <signal handler="format_deblock_cb" name="format-value"/> </object> </child> </object> |