[gnome-software] search provider: Port to G_DECLARE_FINAL_TYPE macro



commit 2899863a42ce850afae70da60f7f36a81bc539af
Author: Kalev Lember <klember redhat com>
Date:   Mon Sep 7 17:45:23 2015 +0200

    search provider: Port to G_DECLARE_FINAL_TYPE macro

 src/gs-shell-search-provider.h |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-shell-search-provider.h b/src/gs-shell-search-provider.h
index ff7e536..fa1673b 100644
--- a/src/gs-shell-search-provider.h
+++ b/src/gs-shell-search-provider.h
@@ -27,13 +27,9 @@
 #include "gs-plugin-loader.h"
 
 #define GS_TYPE_SHELL_SEARCH_PROVIDER gs_shell_search_provider_get_type()
-#define GS_SHELL_SEARCH_PROVIDER(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GS_TYPE_SHELL_SEARCH_PROVIDER, GsShellSearchProvider))
 
-typedef struct _GsShellSearchProvider GsShellSearchProvider;
-typedef GObjectClass GsShellSearchProviderClass;
+G_DECLARE_FINAL_TYPE (GsShellSearchProvider, gs_shell_search_provider, GS, SHELL_SEARCH_PROVIDER, GObject)
 
-GType gs_shell_search_provider_get_type (void);
 gboolean gs_shell_search_provider_register (GsShellSearchProvider *self,
                                             GDBusConnection       *connection,
                                             GError               **error);


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