[gnome-control-center/wip/jsparber/background: 16/28] background: change name cc_background_grid_item_get_ref



commit 3ccf4e915804552aabac5aac0f05eaf3ce4ce407
Author: Julian Sparber <julian sparber net>
Date:   Wed Jan 31 23:45:09 2018 +0100

    background: change name cc_background_grid_item_get_ref
    
    change function name to cc_background_grid_item_get_item
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788515

 panels/background/cc-background-grid-item.c | 9 +++++----
 panels/background/cc-background-grid-item.h | 2 +-
 panels/background/cc-background-panel.c     | 2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/panels/background/cc-background-grid-item.c b/panels/background/cc-background-grid-item.c
index dcb043894..e66509752 100644
--- a/panels/background/cc-background-grid-item.c
+++ b/panels/background/cc-background-grid-item.c
@@ -118,7 +118,7 @@ on_gallery_item_draw (GtkWidget            *widget,
                                         new_height,
                                         GDK_INTERP_BILINEAR);
 
-  if (cc_background_item_changes_with_time (cc_background_grid_item_get_ref 
(gtk_widget_get_parent(widget)))) {
+  if (cc_background_item_changes_with_time (cc_background_grid_item_get_item 
(gtk_widget_get_parent(widget)))) {
     add_slideshow_emblem (new_pixbuf, (space_width + new_width) / 2, (space_height + new_height)/2, 
scale_factor);
   }
 
@@ -144,14 +144,15 @@ cc_background_grid_item_new (CcBackgroundItem *item,
                        NULL);
 }
 
-CcBackgroundItem * cc_background_grid_item_get_ref (GtkWidget *widget)
+CcBackgroundItem*
+cc_background_grid_item_get_item (GtkWidget *widget)
 {
   CcBackgroundGridItem *self = (CcBackgroundGridItem *) widget;
   return self->item;
 }
 static void
-cc_background_grid_item_set_ref (GtkWidget        *widget,
-                                 CcBackgroundItem *item)
+cc_background_grid_item_set_item (GtkWidget        *widget,
+                                  CcBackgroundItem *item)
 {
   CcBackgroundGridItem *self = (CcBackgroundGridItem *) widget;
   self->item = item;
diff --git a/panels/background/cc-background-grid-item.h b/panels/background/cc-background-grid-item.h
index 29161f404..32316c080 100644
--- a/panels/background/cc-background-grid-item.h
+++ b/panels/background/cc-background-grid-item.h
@@ -33,7 +33,7 @@ G_DECLARE_FINAL_TYPE (CcBackgroundGridItem, cc_background_grid_item, CC, BACKGRO
 
 GtkWidget *             cc_background_grid_item_new             (CcBackgroundItem             *,
                                                                  GdkPixbuf                    *);
-CcBackgroundItem *      cc_background_grid_item_get_ref         (GtkWidget                    *);
+CcBackgroundItem *      cc_background_grid_item_get_item        (GtkWidget                    *);
 
 G_END_DECLS
 
diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c
index 3dcf23fa7..ed837d8c9 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -382,7 +382,7 @@ on_background_select (GtkFlowBox      *box,
   GtkWidget *selected = GTK_WIDGET (child);
   CcBackgroundPanel *panel = user_data;
   CcBackgroundItem *item;
-  item = cc_background_grid_item_get_ref (selected);
+  item = cc_background_grid_item_get_item (selected);
 
   set_background (panel, panel->settings, item);
   set_background (panel, panel->lock_settings, item);


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