static void cc_ua_panel_dispose (GObject *object) { CcUaPanelPrivate *priv = CC_UA_PANEL (object)->priv; g_clear_object (&priv->builder); g_clear_object (&priv->wm_settings); g_clear_object (&priv->a11y_settings); g_clear_object (&priv->interface_settings); g_clear_object (&priv->kb_settings); g_clear_object (&priv->mouse_settings); g_clear_object (&priv->application_settings); g_clear_object (&priv->zoom_options); g_clear_pointer (&priv->sections, g_list_free); g_clear_pointer (&priv->sections_reverse, g_list_free); G_OBJECT_CLASS (cc_ua_panel_parent_class)->dispose (object); }
static void cc_ua_panel_dispose (GObject *object) { CcUaPanelPrivate *priv = CC_UA_PANEL (object)->priv; GSList *l; /* remove the notify callbacks, since they rely on builder/client being * available */ if (priv->notify_list) { for (l = priv->notify_list; l; l = g_slist_next (l)) { gconf_client_notify_remove (priv->client, GPOINTER_TO_INT (l->data)); } g_slist_free (priv->notify_list); priv->notify_list = NULL; } if (priv->shell_watch_id) { g_bus_unwatch_name (priv->shell_watch_id); priv->shell_watch_id = 0; } if (priv->builder) { g_object_unref (priv->builder); priv->builder = NULL; } if (priv->client) { g_object_unref (priv->client); priv->client = NULL; } if (priv->interface_settings) { g_object_unref (priv->interface_settings); priv->interface_settings = NULL; } if (priv->kb_settings) { g_object_unref (priv->kb_settings); priv->kb_settings = NULL; } if (priv->mouse_settings) { g_object_unref (priv->mouse_settings); priv->mouse_settings = NULL; } if (priv->application_settings) { g_object_unref (priv->application_settings); priv->application_settings = NULL; } if (priv->mediakeys_settings) { g_object_unref (priv->mediakeys_settings); priv->mediakeys_settings = NULL; } if (priv->zoom_options) { g_object_unref (priv->zoom_options); priv->zoom_options = NULL; } G_OBJECT_CLASS (cc_ua_panel_parent_class)->dispose (object); }
static void cc_ua_panel_dispose (GObject *object) { CcUaPanelPrivate *priv = CC_UA_PANEL (object)->priv; if (priv->shell_watch_id) { g_bus_unwatch_name (priv->shell_watch_id); priv->shell_watch_id = 0; } if (priv->builder) { g_object_unref (priv->builder); priv->builder = NULL; } if (priv->wm_settings) { g_object_unref (priv->wm_settings); priv->wm_settings = NULL; } if (priv->interface_settings) { g_object_unref (priv->interface_settings); priv->interface_settings = NULL; } if (priv->kb_settings) { g_object_unref (priv->kb_settings); priv->kb_settings = NULL; } if (priv->mouse_settings) { g_object_unref (priv->mouse_settings); priv->mouse_settings = NULL; } if (priv->application_settings) { g_object_unref (priv->application_settings); priv->application_settings = NULL; } if (priv->mediakeys_settings) { g_object_unref (priv->mediakeys_settings); priv->mediakeys_settings = NULL; } if (priv->zoom_options) { g_object_unref (priv->zoom_options); priv->zoom_options = NULL; } G_OBJECT_CLASS (cc_ua_panel_parent_class)->dispose (object); }