diff options
author | Ray Strode <rstrode@redhat.com> | 2012-08-21 14:29:22 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2012-08-21 14:32:33 -0400 |
commit | b0e7a5efa819525bf6709ac3a009b12bb145d601 (patch) | |
tree | 2488149c5f6740c6606fb0ad69610d5671eb42ab /panels/online-accounts | |
parent | 0c1a76df6ac1d12b23f911c07607b19e51f167f8 (diff) | |
download | gnome-control-center-b0e7a5efa819525bf6709ac3a009b12bb145d601.tar.gz |
panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.
This commit does that.
Diffstat (limited to 'panels/online-accounts')
-rw-r--r-- | panels/online-accounts/cc-online-accounts-panel.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/panels/online-accounts/cc-online-accounts-panel.c b/panels/online-accounts/cc-online-accounts-panel.c index 1833e1c85..fefb01e2c 100644 --- a/panels/online-accounts/cc-online-accounts-panel.c +++ b/panels/online-accounts/cc-online-accounts-panel.c @@ -85,7 +85,7 @@ static void on_account_changed (GoaClient *client, static gboolean select_account_by_id (GoaPanel *panel, const gchar *account_id); -G_DEFINE_DYNAMIC_TYPE (GoaPanel, goa_panel, CC_TYPE_PANEL); +CC_PANEL_REGISTER (GoaPanel, goa_panel); enum { PROP_0, @@ -285,11 +285,6 @@ goa_panel_class_init (GoaPanelClass *klass) g_object_class_override_property (object_class, PROP_ARGV, "argv"); } -static void -goa_panel_class_finalize (GoaPanelClass *klass) -{ -} - /* ---------------------------------------------------------------------------------------------------- */ static void |