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
|
@ -67,9 +67,9 @@ GType
|
|||
gnome_settings_module_default_editor_get_type (void)
|
||||
{
|
||||
static GType module_type = 0;
|
||||
|
||||
|
||||
if (!module_type) {
|
||||
static const GTypeInfo module_info = {
|
||||
const GTypeInfo module_info = {
|
||||
sizeof (GnomeSettingsModuleDefaultEditorClass),
|
||||
NULL, /* base_init */
|
||||
NULL, /* base_finalize */
|
||||
|
@ -80,12 +80,12 @@ gnome_settings_module_default_editor_get_type (void)
|
|||
0, /* n_preallocs */
|
||||
(GInstanceInitFunc) gnome_settings_module_default_editor_init,
|
||||
};
|
||||
|
||||
|
||||
module_type = g_type_register_static (GNOME_SETTINGS_TYPE_MODULE,
|
||||
"GnomeSettingsModuleDefaultEditor",
|
||||
&module_info, 0);
|
||||
}
|
||||
|
||||
|
||||
return module_type;
|
||||
}
|
||||
|
||||
|
@ -109,8 +109,8 @@ print_mime_app (const char *mime_type)
|
|||
"\t command: %s\n"
|
||||
"\tneeds term: %s\n",
|
||||
mime_type, mime_app,
|
||||
mime_app->id,
|
||||
mime_app->name,
|
||||
mime_app->id,
|
||||
mime_app->name,
|
||||
mime_app->command,
|
||||
mime_app->requires_terminal ? "Yes" : "No");
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ vfs_change_cb (GnomeVFSMIMEMonitor *monitor, GConfClient *client)
|
|||
|
||||
if (!sync_changes)
|
||||
return;
|
||||
|
||||
|
||||
star_app = gnome_vfs_mime_get_default_application ("text/*");
|
||||
plain_app = gnome_vfs_mime_get_default_application ("text/plain");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue