[devhelp] Preferences: improve bookshelf instance variable names



commit 07bfed761fac9dda61e5210f7b85bea32cae0da9
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Apr 5 20:35:21 2018 +0200

    Preferences: improve bookshelf 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 6093994..f242a21 100644
--- a/src/dh-preferences.c
+++ b/src/dh-preferences.c
@@ -36,8 +36,8 @@ enum {
 typedef struct {
         /* Book Shelf tab */
         GtkListStore *bookshelf_store;
-        GtkCheckButton *bookshelf_group_by_language_button;
-        GtkCellRendererToggle *bookshelf_enabled_toggle;
+        GtkCheckButton *bookshelf_group_by_language_checkbutton;
+        GtkCellRendererToggle *bookshelf_cell_renderer_toggle;
 
         /* Fonts tab */
         GtkCheckButton *use_system_fonts_checkbutton;
@@ -68,8 +68,8 @@ dh_preferences_class_init (DhPreferencesClass *klass)
 
         // Book Shelf tab
         gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, bookshelf_store);
-        gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, 
bookshelf_group_by_language_button);
-        gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, bookshelf_enabled_toggle);
+        gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, 
bookshelf_group_by_language_checkbutton);
+        gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, 
bookshelf_cell_renderer_toggle);
 
         // Fonts tab
         gtk_widget_class_bind_template_child_private (widget_class, DhPreferences, 
use_system_fonts_checkbutton);
@@ -611,10 +611,10 @@ init_book_shelf_tab (DhPreferences *prefs)
                                  0);
 
         g_object_bind_property (settings, "group-books-by-language",
-                                priv->bookshelf_group_by_language_button, "active",
+                                priv->bookshelf_group_by_language_checkbutton, "active",
                                 G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
 
-        g_signal_connect (priv->bookshelf_enabled_toggle,
+        g_signal_connect (priv->bookshelf_cell_renderer_toggle,
                           "toggled",
                           G_CALLBACK (bookshelf_tree_selection_toggled_cb),
                           prefs);
diff --git a/src/dh-preferences.ui b/src/dh-preferences.ui
index c5e6b7b..a758edc 100644
--- a/src/dh-preferences.ui
+++ b/src/dh-preferences.ui
@@ -72,7 +72,7 @@
                 <property name="orientation">vertical</property>
                 <property name="spacing">6</property>
                 <child>
-                  <object class="GtkCheckButton" id="bookshelf_group_by_language_button">
+                  <object class="GtkCheckButton" id="bookshelf_group_by_language_checkbutton">
                     <property name="label" translatable="yes">_Group by language</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
@@ -107,7 +107,7 @@
                             <property name="title" translatable="yes">Enabled</property>
                             <property name="expand">True</property>
                             <child>
-                              <object class="GtkCellRendererToggle" id="bookshelf_enabled_toggle">
+                              <object class="GtkCellRendererToggle" id="bookshelf_cell_renderer_toggle">
                                 <property name="width">60</property>
                               </object>
                               <attributes>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]