[gnome-builder] file-search: drop use of dynamic types
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] file-search: drop use of dynamic types
- Date: Mon, 18 Jun 2018 20:27:32 +0000 (UTC)
commit c23bf657fa22ddc2282ac65101d593cbcf09f18f
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 18 13:26:44 2018 -0700
file-search: drop use of dynamic types
src/plugins/file-search/gb-file-search-provider.c | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/src/plugins/file-search/gb-file-search-provider.c
b/src/plugins/file-search/gb-file-search-provider.c
index 977755a28..b57a078cb 100644
--- a/src/plugins/file-search/gb-file-search-provider.c
+++ b/src/plugins/file-search/gb-file-search-provider.c
@@ -16,6 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
+#define G_LOG_DOMAIN "gb-file-search-provider"
+
#include <glib/gi18n.h>
#include <ide.h>
#include <libpeas/peas.h>
@@ -31,11 +35,10 @@ struct _GbFileSearchProvider
static void search_provider_iface_init (IdeSearchProviderInterface *iface);
-G_DEFINE_DYNAMIC_TYPE_EXTENDED (GbFileSearchProvider,
- gb_file_search_provider,
- IDE_TYPE_OBJECT,
- 0,
- G_IMPLEMENT_INTERFACE (IDE_TYPE_SEARCH_PROVIDER, search_provider_iface_init))
+G_DEFINE_TYPE_WITH_CODE (GbFileSearchProvider,
+ gb_file_search_provider,
+ IDE_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (IDE_TYPE_SEARCH_PROVIDER, search_provider_iface_init))
static void
gb_file_search_provider_search_async (IdeSearchProvider *provider,
@@ -327,11 +330,6 @@ gb_file_search_provider_class_init (GbFileSearchProviderClass *klass)
object_class->finalize = gb_file_search_provider_finalize;
}
-static void
-gb_file_search_provider_class_finalize (GbFileSearchProviderClass *klass)
-{
-}
-
static void
gb_file_search_provider_init (GbFileSearchProvider *self)
{
@@ -347,8 +345,6 @@ search_provider_iface_init (IdeSearchProviderInterface *iface)
void
gb_file_search_register_types (PeasObjectModule *module)
{
- gb_file_search_provider_register_type (G_TYPE_MODULE (module));
-
peas_object_module_register_extension_type (module,
IDE_TYPE_SEARCH_PROVIDER,
GB_TYPE_FILE_SEARCH_PROVIDER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]