[gnome-control-center/wip/jsparber/background] [minor] the methode new of grid item returns its own obj type



commit 29a520c8ded58d66c94557f3db569d07a35b8599
Author: Julian Sparber <julian sparber net>
Date:   Thu Feb 1 16:11:27 2018 +0100

    [minor] the methode new of grid item returns its own obj type
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788515

 panels/background/cc-background-grid-item.c |    2 +-
 panels/background/cc-background-grid-item.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/background/cc-background-grid-item.c b/panels/background/cc-background-grid-item.c
index d18068f..5fc28e2 100644
--- a/panels/background/cc-background-grid-item.c
+++ b/panels/background/cc-background-grid-item.c
@@ -133,7 +133,7 @@ on_gallery_item_draw (GtkWidget            *widget,
   return TRUE;
 }
 
-GtkDrawingArea*
+CcBackgroundGridItem *
 cc_background_grid_item_new (CcBackgroundItem *item,
                              GdkPixbuf        *pixbuf)
 {
diff --git a/panels/background/cc-background-grid-item.h b/panels/background/cc-background-grid-item.h
index f67736c..3778f55 100644
--- a/panels/background/cc-background-grid-item.h
+++ b/panels/background/cc-background-grid-item.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
 
 G_DECLARE_FINAL_TYPE (CcBackgroundGridItem, cc_background_grid_item, CC, BACKGROUND_GRID_LIST, 
GtkDrawingArea)
 
-GtkDrawingArea         *cc_background_grid_item_new             (CcBackgroundItem             *,
+CcBackgroundGridItem   *cc_background_grid_item_new             (CcBackgroundItem             *,
                                                                  GdkPixbuf                    *);
 CcBackgroundItem       *cc_background_grid_item_get_item        (GtkWidget                    *);
 


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