Don't set the value if it is NULL

2002-01-11  Bradford Hovinen  <hovinen@ximian.com>

	* service-info.c (set_string): Don't set the value if it is NULL

	* service-edit-dialog.c (store_data): Call service_info_save
This commit is contained in:
Bradford Hovinen 2002-01-11 15:48:52 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent ee6a2823a4
commit a53fac33f2
4 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,9 @@
2002-01-11 Bradford Hovinen <hovinen@ximian.com>
* service-info.c (set_string): Don't set the value if it is NULL
* service-edit-dialog.c (store_data): Call service_info_save
* mime-edit-dialog.c (add_ext_cb): Terminate column list with -1
* service-edit-dialog.c (store_data): Call service_info_update

View file

@ -16,3 +16,4 @@ CVS Surgery
- Move default-apps to control-center-plus
- Rename .glade files in standard convention (gnome-xxx-properties.glade)
- Rename primary .c files in standard convention (gnome-xxx-properties.c)
- Kill url-properties, preferably with extreme prejudice

View file

@ -303,6 +303,7 @@ store_data (ServiceEditDialog *dialog)
g_strdup (gnome_file_entry_get_full_path (GNOME_FILE_ENTRY (WID ("custom_program_entry")), FALSE));
service_info_update (dialog->p->info);
service_info_save (dialog->p->info, NULL);
}
static void

View file

@ -42,6 +42,9 @@ set_string (const ServiceInfo *info, gchar *end, gchar *value, GConfChangeSet *c
{
gchar *key;
if (value == NULL)
return;
key = get_key_name (info, end);
if (changeset != NULL)