Index: gnome-wp-capplet.c
===================================================================
RCS file: /cvs/gnome/gnome-control-center/capplets/background/gnome-wp-capplet.c,v
retrieving revision 1.37
diff -u -r1.37 gnome-wp-capplet.c
--- gnome-wp-capplet.c	21 Nov 2005 04:42:44 -0000	1.37
+++ gnome-wp-capplet.c	5 Jan 2006 19:27:06 -0000
@@ -362,7 +362,35 @@
   }
 }
 
+void gnome_wp_set_state (GnomeWPCapplet * capplet) {
+    int width, height;
+    
+    width = gconf_client_get_int (capplet->client,
+                                                    WP_WIDTH_KEY,
+                                                    NULL);
+     height = gconf_client_get_int (capplet->client,
+                                                    WP_HEIGHT_KEY,
+                                                    NULL);                                               
+    gtk_window_resize (GTK_WINDOW (capplet->window), width, height);    
+}
+
+void gnome_wp_save_state (GnomeWPCapplet * capplet) {
+    GtkAllocation *allocation;
+    GConfChangeSet * cs;
+    
+    cs = gconf_change_set_new ();
+    allocation= &(GTK_WIDGET (capplet->window)->allocation);
+    gconf_change_set_set_int (cs, WP_HEIGHT_KEY, allocation->height);
+    gconf_change_set_set_int (cs, WP_WIDTH_KEY, allocation->width);
+    
+    gconf_client_commit_change_set (capplet->client, cs, TRUE, NULL);
+    
+    gconf_change_set_unref (cs);
+}
+
 void gnome_wp_main_quit (GnomeWPCapplet * capplet) {
+    gnome_wp_save_state (capplet);
+
     g_hash_table_foreach (capplet->wphash, (GHFunc) gnome_wp_remove_wp,
 			  capplet);
 
@@ -1238,6 +1266,8 @@
   
   g_signal_connect (G_OBJECT (capplet->window), "response",
 		    G_CALLBACK (wallpaper_properties_clicked), capplet);
+
+  gnome_wp_set_state (capplet);
 
   gtk_widget_show (capplet->window);
 
Index: gnome-wp-utils.h
===================================================================
RCS file: /cvs/gnome/gnome-control-center/capplets/background/gnome-wp-utils.h,v
retrieving revision 1.4
diff -u -r1.4 gnome-wp-utils.h
--- gnome-wp-utils.h	26 Feb 2005 19:15:58 -0000	1.4
+++ gnome-wp-utils.h	5 Jan 2006 19:27:06 -0000
@@ -33,6 +33,9 @@
 #define WP_KEYBOARD_PATH "/desktop/gnome/peripherals/keyboard"
 #define WP_DELAY_KEY WP_KEYBOARD_PATH "/delay"
 
+#define WP_HEIGHT_KEY "/apps/gnome-background/ui/height"
+#define WP_WIDTH_KEY "/apps/gnome-background/ui/width"
+
 G_BEGIN_DECLS
 
 GdkPixbuf * gnome_wp_pixbuf_new_gradient (GtkOrientation orientation,
