]> Pileus Git - grits/blobdiff - src/gis-plugin.c
Convert for expose callback to callback objects
[grits] / src / gis-plugin.c
index 2e0ef1bdf8b0a802fd4b226f4b1e2a58eeb916f7..66c3d1fcd1e47ccbfb92c406d95ded1cbd074233 100644 (file)
@@ -47,15 +47,10 @@ GType gis_plugin_get_type()
        return type;
 }
 
-void gis_plugin_expose(GisPlugin *self)
-{
-       g_return_if_fail(GIS_IS_PLUGIN(self));
-       GIS_PLUGIN_GET_INTERFACE(self)->expose(self);
-}
-
 GtkWidget *gis_plugin_get_config(GisPlugin *self)
 {
-       g_return_val_if_fail(GIS_IS_PLUGIN(self), NULL);
+       if (!GIS_IS_PLUGIN(self))
+               return NULL;
        GisPluginInterface *iface = GIS_PLUGIN_GET_INTERFACE(self);
        return iface->get_config ? iface->get_config (self) : NULL;
 }