static void meta_default_plugin_class_init (MetaDefaultPluginClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); MetaPluginClass *plugin_class = META_PLUGIN_CLASS (klass); gobject_class->finalize = meta_default_plugin_finalize; gobject_class->dispose = meta_default_plugin_dispose; gobject_class->set_property = meta_default_plugin_set_property; gobject_class->get_property = meta_default_plugin_get_property; plugin_class->start = start; plugin_class->map = map; plugin_class->minimize = minimize; plugin_class->maximize = maximize; plugin_class->unmaximize = unmaximize; plugin_class->destroy = destroy; plugin_class->switch_workspace = switch_workspace; plugin_class->plugin_info = plugin_info; plugin_class->kill_window_effects = kill_window_effects; plugin_class->kill_switch_workspace = kill_switch_workspace; plugin_class->confirm_display_change = confirm_display_change; g_type_class_add_private (gobject_class, sizeof (MetaDefaultPluginPrivate)); }
static void budgie_wm_class_init(BudgieWMClass *klass) { GObjectClass *g_object_class; MetaPluginClass *plugin_class; g_object_class = G_OBJECT_CLASS(klass); g_object_class->dispose = &budgie_wm_dispose; plugin_class = META_PLUGIN_CLASS(klass); plugin_class->start = budgie_wm_start; plugin_class->map = map; plugin_class->minimize = minimize; plugin_class->destroy = destroy; plugin_class->plugin_info = budgie_plugin_info; /* Existing legacy code from old default plugin */ plugin_class->switch_workspace = switch_workspace; plugin_class->show_tile_preview = show_tile_preview; plugin_class->hide_tile_preview = hide_tile_preview; plugin_class->kill_window_effects = kill_window_effects; plugin_class->kill_switch_workspace = kill_switch_workspace; plugin_class->confirm_display_change = confirm_display_change; }