reduce static data
2007-07-01 Jens Granseuer <jensgr@gmx.net> * gnome-settings-accessibility-keyboard.c: (gnome_settings_module_accessibility_keyboard_get_type): * gnome-settings-background.c: (gnome_settings_module_background_get_type): * gnome-settings-clipboard.c: (gnome_settings_module_clipboard_get_type): * gnome-settings-default-editor.c: (gnome_settings_module_default_editor_get_type): * gnome-settings-font.c: (gnome_settings_module_font_get_type): * gnome-settings-gtk1theme.c: (gnome_settings_module_gtk1_get_type): * gnome-settings-keybindings.c: (gnome_settings_module_keybindings_get_type): * gnome-settings-keyboard.c: (gnome_settings_module_keyboard_get_type): * gnome-settings-module.c: (gnome_settings_module_get_type): * gnome-settings-mouse.c: (gnome_settings_module_mouse_get_type): * gnome-settings-multimedia-keys.c: (gnome_settings_module_multimedia_keys_get_type): * gnome-settings-screensaver.c: (gnome_settings_module_screensaver_get_type): * gnome-settings-sound.c: (gnome_settings_module_sound_get_type): * gnome-settings-typing-break.c: (gnome_settings_module_typing_break_get_type): * gnome-settings-xrdb.c: (gnome_settings_module_xrdb_get_type): * gnome-settings-xsettings.c: (gnome_settings_module_xsettings_get_type): reduce static data svn path=/trunk/; revision=7813
This commit is contained in:
parent
d69ad6a3fc
commit
e73cddb29f
17 changed files with 222 additions and 192 deletions
|
@ -77,9 +77,9 @@ GType
|
|||
gnome_settings_module_get_type (void)
|
||||
{
|
||||
static GType module_type = 0;
|
||||
|
||||
|
||||
if (!module_type) {
|
||||
static const GTypeInfo module_info = {
|
||||
const GTypeInfo module_info = {
|
||||
sizeof (GnomeSettingsModuleClass),
|
||||
NULL, /* base_init */
|
||||
NULL, /* base_finalize */
|
||||
|
@ -90,12 +90,12 @@ gnome_settings_module_get_type (void)
|
|||
0, /* n_preallocs */
|
||||
(GInstanceInitFunc) gnome_settings_module_init,
|
||||
};
|
||||
|
||||
|
||||
module_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GnomeSettingsModule",
|
||||
&module_info, 0);
|
||||
}
|
||||
|
||||
|
||||
return module_type;
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,7 @@ gnome_settings_module_stop (GnomeSettingsModule *module)
|
|||
{
|
||||
g_return_val_if_fail (GNOME_SETTINGS_IS_MODULE (module), FALSE);
|
||||
g_return_val_if_fail (module->priv->status == GNOME_SETTINGS_MODULE_STATUS_STARTED, FALSE);
|
||||
|
||||
|
||||
if (!CLASS (module)->stop)
|
||||
return TRUE;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue