*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
- * MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
*/
}
static void
-lttv_plugin_instance_init (GTypeInstance *instance, gpointer g_class)
+lttv_plugin_init (GTypeInstance *instance, gpointer g_class)
{
- LttvPlugin *self;
+ LttvPlugin *self = LTTV_PLUGIN (instance);
self->top_widget = NULL;
}
sizeof (LttvPluginClass),
NULL, /* base_init */
NULL, /* base_finalize */
- lttv_plugin_class_init, /* class_init */
+ (GClassInitFunc) lttv_plugin_class_init, /* class_init */
NULL, /* class_finalize */
NULL, /* class_data */
sizeof (LttvPlugin),
0, /* n_preallocs */
- NULL /* instance_init */
+ lttv_plugin_init /* instance_init */
};
type = g_type_register_static (G_TYPE_OBJECT,
"LttvPluginType",