summaryrefslogtreecommitdiff
path: root/src/nautilus-icon-info.h
diff options
context:
space:
mode:
authorVyas Giridharan <vyasgiridhar27@gmail.com>2017-08-22 20:41:44 +0530
committerErnestas Kulik <ernestask@gnome.org>2017-08-22 18:22:08 +0300
commit2660473c3c7cd7b3d9b9adf968d8960574f06694 (patch)
tree10db776f9248d69be454ad65a9d5b52a7df4efb0 /src/nautilus-icon-info.h
parentaec60260e8ee77e9bc7de57c4a98b62cfb12c56d (diff)
downloadnautilus-2660473c3c7cd7b3d9b9adf968d8960574f06694.tar.gz
icon-info: ported declaration to G_DECLARE*
This patch ports declaration of NautilusIconInfo to the G_DECLARE* format. https://bugzilla.gnome.org/show_bug.cgi?id=771777
Diffstat (limited to 'src/nautilus-icon-info.h')
-rw-r--r--src/nautilus-icon-info.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/nautilus-icon-info.h b/src/nautilus-icon-info.h
index 592b534d3..505a7be0f 100644
--- a/src/nautilus-icon-info.h
+++ b/src/nautilus-icon-info.h
@@ -48,19 +48,8 @@ typedef enum {
/* Maximum size of an icon that the icon factory will ever produce */
#define NAUTILUS_ICON_MAXIMUM_SIZE 320
-typedef struct _NautilusIconInfo NautilusIconInfo;
-typedef struct _NautilusIconInfoClass NautilusIconInfoClass;
-
-
-#define NAUTILUS_TYPE_ICON_INFO (nautilus_icon_info_get_type ())
-#define NAUTILUS_ICON_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_ICON_INFO, NautilusIconInfo))
-#define NAUTILUS_ICON_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_ICON_INFO, NautilusIconInfoClass))
-#define NAUTILUS_IS_ICON_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_ICON_INFO))
-#define NAUTILUS_IS_ICON_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_ICON_INFO))
-#define NAUTILUS_ICON_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_ICON_INFO, NautilusIconInfoClass))
-
-
-GType nautilus_icon_info_get_type (void) G_GNUC_CONST;
+#define NAUTILUS_TYPE_ICON_INFO (nautilus_icon_info_get_type ())
+G_DECLARE_FINAL_TYPE (NautilusIconInfo, nautilus_icon_info, NAUTILUS, ICON_INFO, GObject)
NautilusIconInfo * nautilus_icon_info_new_for_pixbuf (GdkPixbuf *pixbuf,
int scale);