diff options
author | Vyas Giridharan <vyasgiridhar27@gmail.com> | 2017-08-22 20:14:43 +0530 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2017-08-22 18:22:01 +0300 |
commit | aec60260e8ee77e9bc7de57c4a98b62cfb12c56d (patch) | |
tree | 86724c6c2bbf238f50433d017d0f3ebeb22a8fad /src/nautilus-list-view.h | |
parent | e429edcb4f0e2c5c278bc3d06880adc2ee994b10 (diff) | |
download | nautilus-aec60260e8ee77e9bc7de57c4a98b62cfb12c56d.tar.gz |
list-view: ported declaration to G_DECLARE*
This patch ports declaration of NautilusListView to
the G_DECLARE* format.
https://bugzilla.gnome.org/show_bug.cgi?id=771777
Diffstat (limited to 'src/nautilus-list-view.h')
-rw-r--r-- | src/nautilus-list-view.h | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/nautilus-list-view.h b/src/nautilus-list-view.h index f77543100..04989fa95 100644 --- a/src/nautilus-list-view.h +++ b/src/nautilus-list-view.h @@ -27,30 +27,17 @@ #include "nautilus-files-view.h" -#define NAUTILUS_TYPE_LIST_VIEW nautilus_list_view_get_type() -#define NAUTILUS_LIST_VIEW(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_LIST_VIEW, NautilusListView)) -#define NAUTILUS_LIST_VIEW_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_LIST_VIEW, NautilusListViewClass)) -#define NAUTILUS_IS_LIST_VIEW(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_LIST_VIEW)) -#define NAUTILUS_IS_LIST_VIEW_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_LIST_VIEW)) -#define NAUTILUS_LIST_VIEW_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_LIST_VIEW, NautilusListViewClass)) +#define NAUTILUS_TYPE_LIST_VIEW (nautilus_list_view_get_type ()) +G_DECLARE_FINAL_TYPE (NautilusListView, nautilus_list_view, NAUTILUS, LIST_VIEW, NautilusFilesView) typedef struct NautilusListViewDetails NautilusListViewDetails; -typedef struct { +struct _NautilusListView +{ NautilusFilesView parent_instance; NautilusListViewDetails *details; -} NautilusListView; +}; -typedef struct { - NautilusFilesViewClass parent_class; -} NautilusListViewClass; - -GType nautilus_list_view_get_type (void); NautilusFilesView * nautilus_list_view_new (NautilusWindowSlot *slot); #endif /* NAUTILUS_LIST_VIEW_H */ |