devhelp r1197 - in trunk: . src
- From: rhult svn gnome org
- To: svn-commits-list gnome org
- Subject: devhelp r1197 - in trunk: . src
- Date: Fri, 10 Oct 2008 17:56:32 +0000 (UTC)
Author: rhult
Date: Fri Oct 10 17:56:31 2008
New Revision: 1197
URL: http://svn.gnome.org/viewvc/devhelp?rev=1197&view=rev
Log:
2008-10-10 Richard Hult <richard imendio com>
* src/dh-base.c: (dh_base_init): Setup default values.
Modified:
trunk/ChangeLog
trunk/src/dh-base.c
Modified: trunk/src/dh-base.c
==============================================================================
--- trunk/src/dh-base.c (original)
+++ trunk/src/dh-base.c Fri Oct 10 17:56:31 2008
@@ -21,8 +21,6 @@
*/
#include "config.h"
-#include <sys/types.h>
-#include <unistd.h>
#include <string.h>
#include <gtk/gtk.h>
@@ -37,6 +35,8 @@
#include "dh-parser.h"
#include "dh-preferences.h"
#include "dh-assistant.h"
+#include "dh-util.h"
+#include "ige-conf.h"
#include "dh-base.h"
typedef struct {
@@ -91,6 +91,13 @@
dh_base_init (DhBase *base)
{
DhBasePriv *priv = GET_PRIVATE (base);
+ IgeConf *conf;
+ gchar *path;
+
+ conf = ige_conf_get ();
+ path = dh_util_build_data_filename ("devhelp", "devhelp.defaults");
+ ige_conf_add_defaults (conf, path);
+ g_free (path);
priv->book_tree = g_node_new (NULL);
priv->books = g_hash_table_new_full (g_str_hash, g_str_equal,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]