[epiphany] prefs-dialog: Separate the font rows
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] prefs-dialog: Separate the font rows
- Date: Sat, 7 Sep 2019 15:17:18 +0000 (UTC)
commit f73a417c9df29b255a4105a779980563173cc5ab
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Aug 25 10:11:59 2019 +0200
prefs-dialog: Separate the font rows
src/prefs-dialog.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 181901a40..4d3c0579b 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -104,6 +104,7 @@ struct _PrefsDialog {
/* fonts & style */
GtkWidget *use_gnome_fonts_row;
+ GtkWidget *use_custom_fonts_list;
GtkWidget *sans_fontbutton;
GtkWidget *serif_fontbutton;
GtkWidget *mono_fontbutton;
@@ -986,6 +987,7 @@ prefs_dialog_class_init (PrefsDialogClass *klass)
/* fonts & style */
gtk_widget_class_bind_template_child (widget_class, PrefsDialog, use_gnome_fonts_row);
+ gtk_widget_class_bind_template_child (widget_class, PrefsDialog, use_custom_fonts_list);
gtk_widget_class_bind_template_child (widget_class, PrefsDialog, sans_fontbutton);
gtk_widget_class_bind_template_child (widget_class, PrefsDialog, serif_fontbutton);
gtk_widget_class_bind_template_child (widget_class, PrefsDialog, mono_fontbutton);
@@ -2392,4 +2394,6 @@ prefs_dialog_init (PrefsDialog *dialog)
ephy_gui_ensure_window_group (GTK_WINDOW (dialog));
g_signal_connect (dialog, "response",
G_CALLBACK (prefs_dialog_response_cb), dialog);
+
+ gtk_list_box_set_header_func (GTK_LIST_BOX (dialog->use_custom_fonts_list), hdy_list_box_separator_header,
NULL, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]