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/universal-access | |
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/universal-access')
-rw-r--r-- | panels/universal-access/cc-ua-panel.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c index 6102d24c5..8bee6b1db 100644 --- a/panels/universal-access/cc-ua-panel.c +++ b/panels/universal-access/cc-ua-panel.c @@ -42,7 +42,7 @@ #define KEY_ICON_THEME "icon-theme" -G_DEFINE_DYNAMIC_TYPE (CcUaPanel, cc_ua_panel, CC_TYPE_PANEL) +CC_PANEL_REGISTER (CcUaPanel, cc_ua_panel) #define UA_PANEL_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), CC_TYPE_UA_PANEL, CcUaPanelPrivate)) @@ -178,11 +178,6 @@ cc_ua_panel_class_init (CcUaPanelClass *klass) object_class->finalize = cc_ua_panel_finalize; } -static void -cc_ua_panel_class_finalize (CcUaPanelClass *klass) -{ -} - static gchar *sticky_keys_section[] = { "typing_sticky_keys_disable_two_keys_checkbutton", "typing_sticky_keys_beep_modifier_checkbutton", |