static void mnb_zones_preview_init (MnbZonesPreview *self) { MnbZonesPreviewPrivate *priv = self->priv = ZONES_PREVIEW_PRIVATE (self); priv->zoom = 1.0; priv->spacing = 24; priv->dest_workspace = -1; g_signal_connect (self, "style-changed", G_CALLBACK (mnb_zones_preview_style_changed_cb), self); }
static void mnb_zones_preview_init (MnbZonesPreview *self) { MnbZonesPreviewPrivate *priv = self->priv = ZONES_PREVIEW_PRIVATE (self); MetaPlugin *plugin = dawati_netbook_get_plugin_singleton (); MetaScreen *screen = meta_plugin_get_screen (plugin); priv->zoom = 1.0; priv->spacing = 0; priv->dest_workspace = -1; priv->workspace_bg = meta_background_actor_new_for_screen (screen); clutter_actor_set_parent (priv->workspace_bg, CLUTTER_ACTOR (self)); g_signal_connect (self, "style-changed", G_CALLBACK (mnb_zones_preview_style_changed_cb), self); }