aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-seed-loader.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-02-08 20:33:36 +0800
committerXan Lopez <xan@src.gnome.org>2009-02-08 20:33:36 +0800
commitb5fe8575a90dfbb9397a1eb69a2513b924bbe15a (patch)
tree1852f5c4b7fc3c77f8d3c5f93836845b7d33c835 /src/ephy-seed-loader.c
parentaa8767eeecd7bd139cb68175a6fbe01d3759ccaf (diff)
downloadgsoc2013-epiphany-b5fe8575a90dfbb9397a1eb69a2513b924bbe15a.tar.gz
gsoc2013-epiphany-b5fe8575a90dfbb9397a1eb69a2513b924bbe15a.tar.zst
gsoc2013-epiphany-b5fe8575a90dfbb9397a1eb69a2513b924bbe15a.zip
And some more style fixes, should now follow the new code guidelines.
svn path=/trunk/; revision=8777
Diffstat (limited to 'src/ephy-seed-loader.c')
-rw-r--r--src/ephy-seed-loader.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/ephy-seed-loader.c b/src/ephy-seed-loader.c
index 859a09a65..600d210fc 100644
--- a/src/ephy-seed-loader.c
+++ b/src/ephy-seed-loader.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
/*
* Copyright © 2009, Robert Carr <carrr@rpi.edu>
*
@@ -30,50 +31,49 @@
struct _EphySeedLoaderPrivate
{
- gpointer dummy;
+ gpointer dummy;
};
static GObject *
impl_get_object (EphyLoader *eloader,
- GKeyFile *keyfile)
+ GKeyFile *keyfile)
{
- char *filename;
- GObject *object;
+ char *filename;
+ GObject *object;
- g_return_val_if_fail (keyfile != NULL, NULL);
+ g_return_val_if_fail (keyfile != NULL, NULL);
- filename = g_key_file_get_string (keyfile, "Loader", "Module", NULL);
- if (filename == NULL)
- {
- g_warning ("NULL module name!\n");
- return NULL;
- }
+ filename = g_key_file_get_string (keyfile, "Loader", "Module", NULL);
+ if (filename == NULL) {
+ g_warning ("NULL module name!\n");
+ return NULL;
+ }
- object = g_object_new (EPHY_TYPE_SEED_EXTENSION,
- "filename", filename,
- NULL);
+ object = g_object_new (EPHY_TYPE_SEED_EXTENSION,
+ "filename", filename,
+ NULL);
- g_free (filename);
+ g_free (filename);
- /* we own one ref */
- return g_object_ref (object);
+ /* we own one ref */
+ return g_object_ref (object);
}
static void
impl_release_object (EphyLoader *eloader,
- GObject *object)
+ GObject *object)
{
- g_return_if_fail (object != NULL);
+ g_return_if_fail (object != NULL);
- g_object_unref (object);
+ g_object_unref (object);
}
static void
ephy_seed_loader_iface_init (EphyLoaderIface *iface)
{
- iface->type = "seed";
- iface->get_object = impl_get_object;
- iface->release_object = impl_release_object;
+ iface->type = "seed";
+ iface->get_object = impl_get_object;
+ iface->release_object = impl_release_object;
}
G_DEFINE_TYPE_WITH_CODE (EphySeedLoader, ephy_seed_loader, G_TYPE_OBJECT,
@@ -82,27 +82,27 @@ G_DEFINE_TYPE_WITH_CODE (EphySeedLoader, ephy_seed_loader, G_TYPE_OBJECT,
static void
ephy_seed_loader_init (EphySeedLoader *loader)
{
- loader->priv = EPHY_SEED_LOADER_GET_PRIVATE (loader);
+ loader->priv = EPHY_SEED_LOADER_GET_PRIVATE (loader);
- LOG ("EphySeedLoader initialising");
+ LOG ("EphySeedLoader initialising");
}
static void
ephy_seed_loader_finalize (GObject *object)
{
- LOG ("EphySeedLoader finalising");
+ LOG ("EphySeedLoader finalising");
- G_OBJECT_CLASS (ephy_seed_loader_parent_class)->finalize (object);
+ G_OBJECT_CLASS (ephy_seed_loader_parent_class)->finalize (object);
}
static void
ephy_seed_loader_class_init (EphySeedLoaderClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->finalize = ephy_seed_loader_finalize;
+ object_class->finalize = ephy_seed_loader_finalize;
- g_type_class_add_private (object_class, sizeof (EphySeedLoaderPrivate));
+ g_type_class_add_private (object_class, sizeof (EphySeedLoaderPrivate));
}