Add a "(none)" string to the history
2001-07-26 Bradford Hovinen <hovinen@ximian.com> * background-properties-capplet.c (create_dialog): Add a "(none)" string to the history
This commit is contained in:
parent
dae9cccc0e
commit
4e921471d4
2 changed files with 15 additions and 10 deletions
|
@ -158,27 +158,25 @@ get_legacy_settings (Bonobo_ConfigDatabase db)
|
|||
/* Code to deal with new enum - messy */
|
||||
val_ulong = -1;
|
||||
val_string = gnome_config_get_string_with_default ("/Background/Default/simple=solid", &def);
|
||||
if (!def)
|
||||
{
|
||||
if (!strcmp (val_string, "solid"))
|
||||
if (!def) {
|
||||
if (!strcmp (val_string, "solid")) {
|
||||
val_ulong = 0;
|
||||
else
|
||||
{
|
||||
} else {
|
||||
g_free (val_string);
|
||||
val_string = gnome_config_get_string_with_default ("/Background/Default/gradient=vertical", &def);
|
||||
if (!def)
|
||||
val_ulong = !strcmp (val_string, "vertical");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
g_free (val_string);
|
||||
|
||||
|
||||
if (val_ulong != -1)
|
||||
bonobo_config_set_ulong (db, "/main/orientation", val_ulong, NULL);
|
||||
|
||||
|
||||
val_boolean = gnome_config_get_bool_with_default ("/Background/Default/adjustOpacity=true", &def);
|
||||
if (!def && val_boolean)
|
||||
{
|
||||
|
||||
if (!def && val_boolean) {
|
||||
COPY_FROM_LEGACY (long, "/main/opacity", int, "/Background/Default/opacity=100");
|
||||
}
|
||||
}
|
||||
|
@ -262,6 +260,8 @@ create_dialog (void)
|
|||
TRUE, TRUE, 0);
|
||||
gtk_widget_show_all (holder);
|
||||
|
||||
gnome_entry_append_history (GNOME_ENTRY (gnome_file_entry_gnome_entry (GNOME_FILE_ENTRY (WID ("image_fileentry")))), 0, "(none)");
|
||||
|
||||
gtk_signal_connect_object (GTK_OBJECT (widget), "destroy",
|
||||
GTK_SIGNAL_FUNC (gtk_object_destroy),
|
||||
GTK_OBJECT (dialog));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue