~ubuntu-branches/ubuntu/quantal/libpeas/quantal

« back to all changes in this revision

Viewing changes to libpeas/peas-extension-base.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, Martin Pitt, Oliver Sauder
  • Date: 2011-09-05 08:41:48 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: package-import@ubuntu.com-20110905084148-u4qhltt1ipo2frj9
Tags: 1.1.3-0ubuntu1
[ Martin Pitt ]
* New upstream release:
  - Link against pygobject 3. (LP: #839712)
  - Do not cast pointers to unsigned integers.
* Drop debian/patches/gint_is_not_gtype, upstream now.
* debian/control.in: Bump python-gobject-dev build dependency to >= 2.90 as
  per upstream configure.ac.
* debian/control.in: Move valac-0.12 to valac to use 0.14.

[ Oliver Sauder ]
* Added peas-gtk vapi file libpeas-gtk-1.0.vapi (LP: #825834) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *
18
18
 *  You should have received a copy of the GNU Library General Public License
19
19
 *  along with this program; if not, write to the Free Software
20
 
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
20
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
21
 */
22
22
 
23
23
#ifdef HAVE_CONFIG_H
88
88
  switch (prop_id)
89
89
    {
90
90
    case PROP_PLUGIN_INFO:
91
 
      extbase->priv->info = g_value_dup_boxed (value);
 
91
      extbase->priv->info = g_value_get_boxed (value);
92
92
      break;
93
93
    default:
94
94
      G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
105
105
}
106
106
 
107
107
static void
108
 
peas_extension_base_finalize (GObject *object)
109
 
{
110
 
  PeasExtensionBase *extbase = PEAS_EXTENSION_BASE (object);
111
 
 
112
 
  if (extbase->priv->info != NULL)
113
 
    _peas_plugin_info_unref (extbase->priv->info);
114
 
 
115
 
  G_OBJECT_CLASS (peas_extension_base_parent_class)->finalize (object);
116
 
}
117
 
 
118
 
static void
119
108
peas_extension_base_class_init (PeasExtensionBaseClass *klass)
120
109
{
121
110
  GObjectClass *object_class = G_OBJECT_CLASS (klass);
122
111
 
123
112
  object_class->get_property = peas_extension_base_get_property;
124
113
  object_class->set_property = peas_extension_base_set_property;
125
 
  object_class->finalize = peas_extension_base_finalize;
126
114
 
127
115
  g_object_class_install_property (object_class,
128
116
                                   PROP_PLUGIN_INFO,