X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Faweather-plugin.c;fp=src%2Faweather-plugin.c;h=0000000000000000000000000000000000000000;hb=ca898105ec4018b54ac2f6f1327200624169103e;hp=87cf35cb1e59620e5ed45041d69bd42114239391;hpb=f705ad00b5d94f8ddc59575737b79feed191b404;p=grits diff --git a/src/aweather-plugin.c b/src/aweather-plugin.c deleted file mode 100644 index 87cf35c..0000000 --- a/src/aweather-plugin.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2009 Andy Spencer - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include - -#include "aweather-plugin.h" - -static void aweather_plugin_base_init(gpointer g_class) -{ - static gboolean is_initialized = FALSE; - if (!is_initialized) { - /* add properties and signals to the interface here */ - is_initialized = TRUE; - } -} - -GType aweather_plugin_get_type() -{ - static GType type = 0; - if (type == 0) { - static const GTypeInfo info = { - sizeof(AWeatherPluginInterface), - aweather_plugin_base_init, - NULL, - }; - type = g_type_register_static(G_TYPE_INTERFACE, - "AWeatherPlugin", &info, 0); - } - return type; -} - -void aweather_plugin_expose(AWeatherPlugin *self) -{ - g_return_if_fail(AWEATHER_IS_PLUGIN(self)); - AWEATHER_PLUGIN_GET_INTERFACE(self)->expose(self); -}