Commit 59ee63b2 authored by Umang Jain's avatar Umang Jain
Browse files

preview-view: Use G_DECLARE_FINAL_TYPE

https://bugzilla.gnome.org/show_bug.cgi?id=763712
parent 568761aa
......@@ -66,11 +66,6 @@ struct _PhotosPreviewView
gdouble zoom_best_fit;
};
struct _PhotosPreviewViewClass
{
GtkBinClass parent_class;
};
enum
{
PROP_0,
......
......@@ -33,19 +33,7 @@
G_BEGIN_DECLS
#define PHOTOS_TYPE_PREVIEW_VIEW (photos_preview_view_get_type ())
#define PHOTOS_PREVIEW_VIEW(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
PHOTOS_TYPE_PREVIEW_VIEW, PhotosPreviewView))
#define PHOTOS_IS_PREVIEW_VIEW(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
PHOTOS_TYPE_PREVIEW_VIEW))
typedef struct _PhotosPreviewView PhotosPreviewView;
typedef struct _PhotosPreviewViewClass PhotosPreviewViewClass;
GType photos_preview_view_get_type (void) G_GNUC_CONST;
G_DECLARE_FINAL_TYPE (PhotosPreviewView, photos_preview_view, PHOTOS, PREVIEW_VIEW, GtkBin);
GtkWidget *photos_preview_view_new (GtkOverlay *overlay);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment