~ubuntu-branches/ubuntu/trusty/libpeas/trusty

« back to all changes in this revision

Viewing changes to libpeas-gtk/peas-gtk-plugin-manager-store.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-31 08:26:42 UTC
  • mfrom: (1.4.3)
  • mto: (12.2.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: package-import@ubuntu.com-20120331082642-s6dihi2wggj1qokx
Tags: 1.4.0-1
* New upstream release.
* debian/watch: Track .xz tarballs.
* Bump (Build-)Depends on libglib2.0-dev to (>= 2.31.2).
* debian/libpeas-1.0-0.symbols: Add new symbols and remove 2 internal
  symbols which were dropped upstream.
* Explicitly enable the plugins (vala, python, seed) for more reliable build
  results.
* Use find to remove the compiled python and libtool .la files.
* Bump Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
  G_TYPE_POINTER  /* PeasPluginInfo */
43
43
};
44
44
 
45
 
/* G_STATIC_ASSERT is in glib >= 2.20 and we only depend on 2.18.0 */
46
 
#ifdef G_STATIC_ASSERT
47
45
G_STATIC_ASSERT (G_N_ELEMENTS (ColumnTypes) == PEAS_GTK_PLUGIN_MANAGER_STORE_N_COLUMNS);
48
 
#endif
49
46
 
50
47
struct _PeasGtkPluginManagerStorePrivate {
51
48
  PeasEngine *engine;
54
51
/* Properties */
55
52
enum {
56
53
  PROP_0,
57
 
  PROP_ENGINE
 
54
  PROP_ENGINE,
 
55
  N_PROPERTIES
58
56
};
59
57
 
 
58
static GParamSpec *properties[N_PROPERTIES] = { NULL };
 
59
 
60
60
G_DEFINE_TYPE (PeasGtkPluginManagerStore, peas_gtk_plugin_manager_store, GTK_TYPE_LIST_STORE);
61
61
 
62
62
static void
259
259
 
260
260
  peas_gtk_plugin_manager_store_reload (store);
261
261
 
262
 
  if (G_OBJECT_CLASS (peas_gtk_plugin_manager_store_parent_class)->constructed != NULL)
263
 
    G_OBJECT_CLASS (peas_gtk_plugin_manager_store_parent_class)->constructed (object);
 
262
  G_OBJECT_CLASS (peas_gtk_plugin_manager_store_parent_class)->constructed (object);
264
263
}
265
264
 
266
265
static void
273
272
      g_signal_handlers_disconnect_by_func (store->priv->engine,
274
273
                                            plugin_loaded_toggled_cb,
275
274
                                            store);
276
 
 
277
 
      g_object_unref (store->priv->engine);
278
 
      store->priv->engine = NULL;
 
275
      g_clear_object (&store->priv->engine);
279
276
    }
280
277
 
281
278
  G_OBJECT_CLASS (peas_gtk_plugin_manager_store_parent_class)->dispose (object);
296
293
   *
297
294
   * The #PeasEngine this store is attached to.
298
295
   */
299
 
  g_object_class_install_property (object_class,
300
 
                                   PROP_ENGINE,
301
 
                                   g_param_spec_object ("engine",
302
 
                                                        "engine",
303
 
                                                        "The PeasEngine this store is attached to",
304
 
                                                        PEAS_TYPE_ENGINE,
305
 
                                                        G_PARAM_READWRITE |
306
 
                                                        G_PARAM_CONSTRUCT_ONLY |
307
 
                                                        G_PARAM_STATIC_STRINGS));
 
296
  properties[PROP_ENGINE] =
 
297
    g_param_spec_object ("engine",
 
298
                         "engine",
 
299
                         "The PeasEngine this store is attached to",
 
300
                         PEAS_TYPE_ENGINE,
 
301
                         G_PARAM_READWRITE |
 
302
                         G_PARAM_CONSTRUCT_ONLY |
 
303
                         G_PARAM_STATIC_STRINGS);
308
304
 
 
305
  g_object_class_install_properties (object_class, N_PROPERTIES, properties);
309
306
  g_type_class_add_private (object_class, sizeof (PeasGtkPluginManagerStorePrivate));
310
307
}
311
308