Reset Picture option to "Wall paper" only in the case of "none" while DnD.

2002-11-13  Pasupathi Duraisamy <pasupathi.duraisamy@wipro.com>

        * background-properties-capplet.c (drag_data_received_cb):
        Reset Picture option to "Wall paper" only in the case of
        "none" while DnD. Fixes #94329
This commit is contained in:
Pasupathi Duraisamy 2002-11-13 09:08:44 +00:00 committed by Pasupathi Duraisamy
parent 1467840f7e
commit c18d856b22
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2002-11-13 Pasupathi Duraisamy <pasupathi.duraisamy@wipro.com>
* background-properties-capplet.c (drag_data_received_cb):
Reset Picture option to "Wall paper" only in the case of
"none" while DnD. Fixes #94329
2002-11-02 Jody Goldberg <jody@gnome.org>
* Release 2.1.2

View file

@ -486,6 +486,7 @@ drag_data_received_cb (GtkWidget *widget, GdkDragContext *context,
{
GConfClient *client = gconf_client_get_default ();
ApplierSet *set = (ApplierSet*) data;
gchar *picture_option;
if (info == TARGET_URI_LIST ||
info == TARGET_BGIMAGE)
@ -519,7 +520,12 @@ drag_data_received_cb (GtkWidget *widget, GdkDragContext *context,
gconf_entry_free (entry);
gconf_value_free (value);
gconf_client_set_string (client, BG_PREFERENCES_PICTURE_OPTIONS, "wallpaper", NULL);
picture_option = gconf_client_get_string (client, BG_PREFERENCES_PICTURE_OPTIONS, NULL);
if ((picture_option != NULL) && !strcmp (picture_option, "none"))
gconf_client_set_string (client, BG_PREFERENCES_PICTURE_OPTIONS, "wallpaper", NULL);
g_free (picture_option);
}
gnome_vfs_uri_list_free (uris);
} else if (info == TARGET_COLOR) {