[devhelp] Preferences: improve instance variable names
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Preferences: improve instance variable names
- Date: Thu, 5 Apr 2018 17:09:30 +0000 (UTC)
commit c595fdd1c4b0052d748f1d37bf1d4b8ada2c04d9
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Apr 5 19:05:47 2018 +0200
Preferences: improve instance variable names
src/dh-preferences.c | 12 ++++++------
src/dh-preferences.ui | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/dh-preferences.c b/src/dh-preferences.c
index 994c53a..cd8911e 100644
--- a/src/dh-preferences.c
+++ b/src/dh-preferences.c
@@ -35,8 +35,8 @@ enum {
typedef struct {
/* Fonts tab */
- GtkCheckButton *system_fonts_button;
- GtkGrid *fonts_grid;
+ GtkCheckButton *use_system_fonts_checkbutton;
+ GtkGrid *custom_fonts_grid;
GtkFontButton *variable_font_button;
GtkFontButton *fixed_font_button;
@@ -65,8 +65,8 @@ dh_preferences_class_init (DhPreferencesClass *klass)
/* Bind class to template */
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/devhelp/dh-preferences.ui");
- gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, system_fonts_button);
- gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, fonts_grid);
+ gtk_widget_class_bind_template_child_private (widget_class, DhPreferences,
use_system_fonts_checkbutton);
+ gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, custom_fonts_grid);
gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, variable_font_button);
gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, fixed_font_button);
gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, bookshelf_store);
@@ -618,11 +618,11 @@ dh_preferences_init (DhPreferences *prefs)
fonts_settings = dh_settings_app_peek_fonts_settings (settings_app);
g_settings_bind (fonts_settings, "use-system-fonts",
- priv->system_fonts_button, "active",
+ priv->use_system_fonts_checkbutton, "active",
G_SETTINGS_BIND_DEFAULT);
g_settings_bind (fonts_settings, "use-system-fonts",
- priv->fonts_grid, "sensitive",
+ priv->custom_fonts_grid, "sensitive",
G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_INVERT_BOOLEAN);
g_settings_bind (fonts_settings, "variable-font",
diff --git a/src/dh-preferences.ui b/src/dh-preferences.ui
index e1884ba..c5e6b7b 100644
--- a/src/dh-preferences.ui
+++ b/src/dh-preferences.ui
@@ -168,7 +168,7 @@
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
- <object class="GtkCheckButton" id="system_fonts_button">
+ <object class="GtkCheckButton" id="use_system_fonts_checkbutton">
<property name="label" translatable="yes">_Use system fonts</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -184,7 +184,7 @@
</packing>
</child>
<child>
- <object class="GtkGrid" id="fonts_grid">
+ <object class="GtkGrid" id="custom_fonts_grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]