Commit b9a5de5f authored by Felix Riemann's avatar Felix Riemann
Browse files

postasa: Stop using deprecated g_type_class_add_private

Use G_ADD_PRIVATE instead. Upcoming glib releases will mark
g_type_class_add_private as deprecated so this will avoid a
deprecation warning during build with these versions.
parent 5c3b525e
......@@ -50,14 +50,6 @@ enum {
PROP_WINDOW
};
static void
eog_window_activatable_iface_init (EogWindowActivatableInterface *iface);
G_DEFINE_DYNAMIC_TYPE_EXTENDED (EogPostasaPlugin, eog_postasa_plugin,
PEAS_TYPE_EXTENSION_BASE, 0,
G_IMPLEMENT_INTERFACE_DYNAMIC(EOG_TYPE_WINDOW_ACTIVATABLE,
eog_window_activatable_iface_init))
/**
* _EogPostasaPluginPrivate:
*
......@@ -90,6 +82,15 @@ struct _EogPostasaPluginPrivate
GtkListStore *uploads_store;
};
static void
eog_window_activatable_iface_init (EogWindowActivatableInterface *iface);
G_DEFINE_DYNAMIC_TYPE_EXTENDED (EogPostasaPlugin, eog_postasa_plugin,
PEAS_TYPE_EXTENSION_BASE, 0,
G_ADD_PRIVATE_DYNAMIC(EogPostasaPlugin)
G_IMPLEMENT_INTERFACE_DYNAMIC(EOG_TYPE_WINDOW_ACTIVATABLE,
eog_window_activatable_iface_init))
/**
* PicasaWebUploadFileAsyncData:
*
......@@ -907,7 +908,7 @@ eog_postasa_plugin_init (EogPostasaPlugin *plugin)
{
eog_debug_message (DEBUG_PLUGINS, "EogPostasaPlugin initializing");
plugin->priv = G_TYPE_INSTANCE_GET_PRIVATE (plugin, EOG_TYPE_POSTASA_PLUGIN, EogPostasaPluginPrivate);
plugin->priv = eog_postasa_plugin_get_instance_private (plugin);
#ifdef HAVE_LIBGDATA_0_9
plugin->priv->authorizer = gdata_client_login_authorizer_new ("EogPostasa", GDATA_TYPE_PICASAWEB_SERVICE);
......@@ -1010,8 +1011,6 @@ eog_postasa_plugin_class_init (EogPostasaPluginClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
g_type_class_add_private (klass, sizeof (EogPostasaPluginPrivate));
object_class->dispose = eog_postasa_plugin_dispose;
object_class->set_property = eog_postasa_plugin_set_property;
object_class->get_property = eog_postasa_plugin_get_property;
......
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