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:
parent
1467840f7e
commit
c18d856b22
2 changed files with 13 additions and 1 deletions
|
@ -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>
|
2002-11-02 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
* Release 2.1.2
|
* Release 2.1.2
|
||||||
|
|
|
@ -486,6 +486,7 @@ drag_data_received_cb (GtkWidget *widget, GdkDragContext *context,
|
||||||
{
|
{
|
||||||
GConfClient *client = gconf_client_get_default ();
|
GConfClient *client = gconf_client_get_default ();
|
||||||
ApplierSet *set = (ApplierSet*) data;
|
ApplierSet *set = (ApplierSet*) data;
|
||||||
|
gchar *picture_option;
|
||||||
|
|
||||||
if (info == TARGET_URI_LIST ||
|
if (info == TARGET_URI_LIST ||
|
||||||
info == TARGET_BGIMAGE)
|
info == TARGET_BGIMAGE)
|
||||||
|
@ -519,7 +520,12 @@ drag_data_received_cb (GtkWidget *widget, GdkDragContext *context,
|
||||||
gconf_entry_free (entry);
|
gconf_entry_free (entry);
|
||||||
gconf_value_free (value);
|
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);
|
gnome_vfs_uri_list_free (uris);
|
||||||
} else if (info == TARGET_COLOR) {
|
} else if (info == TARGET_COLOR) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue