Commit c23bf657 authored by Christian Hergert's avatar Christian Hergert

file-search: drop use of dynamic types

parent 098f522b
Pipeline #16228 passed with stage
in 17 minutes and 22 seconds
......@@ -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);
......
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