[gnome-control-center/gbsneto/panel-widget-in-sidebar: 8/14] panel-list: Rename internal function



commit de15083e7a45b77b5d328c3df1cb78c7b31c8400
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Nov 16 14:17:57 2018 -0200

    panel-list: Rename internal function
    
    It was referring to listbox, where in the future
    it is going to refer to any kind of widget.

 shell/cc-panel-list.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/shell/cc-panel-list.c b/shell/cc-panel-list.c
index dd205c88b..7796dae32 100644
--- a/shell/cc-panel-list.c
+++ b/shell/cc-panel-list.c
@@ -90,8 +90,8 @@ static gint signals [LAST_SIGNAL] = { 0, };
  * Auxiliary methods
  */
 static GtkWidget*
-get_listbox_from_view (CcPanelList     *self,
-                       CcPanelListView  view)
+get_widget_from_view (CcPanelList     *self,
+                      CcPanelListView  view)
 {
   switch (view)
     {
@@ -195,7 +195,7 @@ switch_to_view (CcPanelList     *self,
                                  should_crossfade ? GTK_STACK_TRANSITION_TYPE_CROSSFADE :
                                                     GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT);
 
-  visible_child = get_listbox_from_view (self, view);
+  visible_child = get_widget_from_view (self, view);
 
   gtk_stack_set_visible_child (GTK_STACK (self), visible_child);
 
@@ -865,7 +865,7 @@ cc_panel_list_activate (CcPanelList *self)
 
   g_return_val_if_fail (CC_IS_PANEL_LIST (self), FALSE);
 
-  listbox = get_listbox_from_view (self, self->view);
+  listbox = get_widget_from_view (self, self->view);
 
   /* Select the first visible row */
   do


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