[epiphany] Reader mode: Hide preferences when running as Web application
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Reader mode: Hide preferences when running as Web application
- Date: Thu, 30 Aug 2018 16:22:12 +0000 (UTC)
commit 909810b52e4b4a303e3de4500e8668fd1f2a6409
Author: Adrian Perez de Castro <aperez igalia com>
Date: Thu Aug 30 19:02:31 2018 +0300
Reader mode: Hide preferences when running as Web application
src/prefs-dialog.c | 4 ++++
src/resources/gtk/prefs-dialog.ui | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index f868d1cc2..07a0db539 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -102,6 +102,7 @@ struct _PrefsDialog {
GtkWidget *mono_fontbutton;
GtkWidget *css_checkbox;
GtkWidget *css_edit_button;
+ GtkWidget *reader_mode_box;
GtkWidget *reader_mode_font_style;
GtkWidget *reader_mode_color_scheme;
@@ -969,6 +970,7 @@ prefs_dialog_class_init (PrefsDialogClass *klass)
gtk_widget_class_bind_template_child (widget_class, PrefsDialog, mono_fontbutton);
gtk_widget_class_bind_template_child (widget_class, PrefsDialog, css_checkbox);
gtk_widget_class_bind_template_child (widget_class, PrefsDialog, css_edit_button);
+ gtk_widget_class_bind_template_child (widget_class, PrefsDialog, reader_mode_box);
gtk_widget_class_bind_template_child (widget_class, PrefsDialog, reader_mode_font_style);
gtk_widget_class_bind_template_child (widget_class, PrefsDialog, reader_mode_color_scheme);
@@ -2348,6 +2350,8 @@ prefs_dialog_init (PrefsDialog *dialog)
mode != EPHY_EMBED_SHELL_MODE_APPLICATION);
gtk_widget_set_visible (dialog->do_not_track_checkbutton,
mode != EPHY_EMBED_SHELL_MODE_APPLICATION);
+ gtk_widget_set_visible (dialog->reader_mode_box,
+ mode != EPHY_EMBED_SHELL_MODE_APPLICATION);
setup_general_page (dialog);
setup_fonts_page (dialog);
diff --git a/src/resources/gtk/prefs-dialog.ui b/src/resources/gtk/prefs-dialog.ui
index 593f21a53..5bdd8a9ee 100644
--- a/src/resources/gtk/prefs-dialog.ui
+++ b/src/resources/gtk/prefs-dialog.ui
@@ -539,7 +539,7 @@
</object>
</child>
<child>
- <object class="GtkBox">
+ <object class="GtkBox" id="reader_mode_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]