projects
/
ptask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepared code to add a way to change the notes directory
[ptask.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
567b56c
..
f3983d6
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-30,6
+30,7
@@
#include <log.h>
#include <note.h>
#include <log.h>
#include <note.h>
+#include <settings.h>
#include <tw.h>
#include <ui.h>
#include <ui_projecttree.h>
#include <tw.h>
#include <ui.h>
#include <ui_projecttree.h>
@@
-38,7
+39,6
@@
static const char *program_name;
static struct task **tasks;
static const char *program_name;
static struct task **tasks;
-static GSettings *settings;
static struct option long_options[] = {
{"version", no_argument, 0, 'v'},
static struct option long_options[] = {
{"version", no_argument, 0, 'v'},
@@
-195,14
+195,14
@@
int main(int argc, char **argv)
gtk_init(NULL, NULL);
gtk_init(NULL, NULL);
- settings
= g_settings_new("ptask"
);
+ settings
_init(
);
builder = gtk_builder_new();
gtk_builder_add_from_file
(builder,
PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "ptask.glade",
NULL);
builder = gtk_builder_new();
gtk_builder_add_from_file
(builder,
PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "ptask.glade",
NULL);
- window = create_window(builder
, settings
);
+ window = create_window(builder);
gtk_builder_connect_signals(builder, NULL);
gtk_builder_connect_signals(builder, NULL);