changeset 1532:f74a6ba233c2 trunk

[svn] - allow configdb::pnxmms::preset to set what pn preset to load on start
author nenolod
date Tue, 08 Aug 2006 02:19:55 -0700
parents 4319ae8c8f69
children e0438384ce0a
files ChangeLog Plugins/Visualization/paranormal/client.c
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Aug 07 23:49:36 2006 -0700
+++ b/ChangeLog	Tue Aug 08 02:19:55 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-08 06:49:36 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1976]
+  - ok, with this commit, loading now works =)
+  
+
+  Changes:        Modified:
+  +6 -3           trunk/Plugins/Visualization/paranormal/pn/pnvis.c  
+
+
 2006-08-08 06:27:43 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1974]
   - don't peg the CPU
--- a/Plugins/Visualization/paranormal/client.c	Mon Aug 07 23:49:36 2006 -0700
+++ b/Plugins/Visualization/paranormal/client.c	Tue Aug 08 02:19:55 2006 -0700
@@ -430,6 +430,8 @@
   if (bmp_cfg_db_get_int (cfg, "pnxmms", "image_height", &i))
     image_height = i;
 
+  bmp_cfg_db_get_string (cfg, "pnxmms", "preset", &preset);
+
   bmp_cfg_db_close (cfg);
 
   return;
@@ -447,6 +449,9 @@
   bmp_cfg_db_set_int (cfg, "pnxmms", "image_width", image_width);
   bmp_cfg_db_set_int (cfg, "pnxmms", "image_height", image_height);
 
+  if (preset)
+      bmp_cfg_db_set_string (cfg, "pnxmms", "preset", preset);
+
   bmp_cfg_db_close (cfg);
 }