Author: kelnos Date: 2009-04-02 06:43:49 +0000 (Thu, 02 Apr 2009) New Revision: 29694
Modified: xfdesktop/trunk/NEWS xfdesktop/trunk/settings/main.c Log: run 'xfdesktop --reload' when the 1st img is added to an img list (bug 5001) Modified: xfdesktop/trunk/NEWS =================================================================== --- xfdesktop/trunk/NEWS 2009-04-02 06:34:40 UTC (rev 29693) +++ xfdesktop/trunk/NEWS 2009-04-02 06:43:49 UTC (rev 29694) @@ -8,6 +8,8 @@ is run (bug 5156). * Make default button in 'delete multiple' dialog consistent with default in 'delete single' dialog (bug 5140). + * Reload the desktop when the first image is added to an image + list (bug 5001). Xfce 4.6.0 Modified: xfdesktop/trunk/settings/main.c =================================================================== --- xfdesktop/trunk/settings/main.c 2009-04-02 06:34:40 UTC (rev 29693) +++ xfdesktop/trunk/settings/main.c 2009-04-02 06:43:49 UTC (rev 29694) @@ -876,8 +876,14 @@ g_free(pdata); } - if(panel->image_list_loaded) + if(panel->image_list_loaded) { xfdesktop_settings_save_backdrop_list(panel, model); + + /* if we just added the first image, instruct xfdesktop + * to load it */ + if(gtk_tree_model_iter_n_children(model, NULL) == 1) + g_spawn_command_line_async("xfdesktop --reload", NULL); + } } gtk_widget_destroy(chooser); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits