summaryrefslogtreecommitdiffstats
path: root/gtk/src/x264handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/x264handler.c')
-rw-r--r--gtk/src/x264handler.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/src/x264handler.c b/gtk/src/x264handler.c
index 09b15613b..2db791173 100644
--- a/gtk/src/x264handler.c
+++ b/gtk/src/x264handler.c
@@ -38,12 +38,9 @@ void ghb_show_hide_advanced_video( signal_user_data_t *ud )
}
GtkWidget *widget;
- GtkWidget *nb = GHB_WIDGET(ud->builder, "SettingsNotebook");
GtkWidget *at = GHB_WIDGET(ud->builder, "advanced_tab");
- int pgn = gtk_notebook_page_num(GTK_NOTEBOOK(nb), at);
- widget = gtk_notebook_get_nth_page(GTK_NOTEBOOK(nb), pgn);
- gtk_widget_set_visible(widget, !hide);
+ gtk_widget_set_visible(at, !hide);
widget = GHB_WIDGET(ud->builder, "x264UseAdvancedOptions");
gtk_widget_set_visible(widget, !hide);
}