From dcccb22acc252879837bb08a7f6eaaea91005860 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 12 Jan 2003 01:24:41 +0000 Subject: Move root nodes ids to ephy-types. Simple logging facility: 2003-01-12 Marco Pesenti Gritti * configure.in: * embed/ephy-favicon-cache.c: (ephy_favicon_cache_download): * embed/ephy-history.c: * lib/Makefile.am: * lib/ephy-types.h: * src/bookmarks/ephy-bookmarks.c: * src/ephy-shell.c: (ephy_shell_init): Move root nodes ids to ephy-types. Simple logging facility: EPHY_DEBUG_MODULES= all | filename will enable it. Need to provide a way to disable it and to get rid of the old per file crap. --- lib/Makefile.am | 3 ++- lib/ephy-types.h | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Makefile.am b/lib/Makefile.am index 7648fe31c..d131235bb 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -21,6 +21,8 @@ libephy_la_SOURCES = \ ephy-autocompletion-source.h \ ephy-bonobo-extensions.h \ ephy-bonobo-extensions.c \ + ephy-debug.c \ + ephy-debug.h \ ephy-dialog.c \ ephy-dialog.h \ ephy-dnd.c \ @@ -53,7 +55,6 @@ libephy_la_SOURCES = \ ephy-stock-icons.h \ ephy-thread-helpers.c \ ephy-thread-helpers.h \ - ephy-types.h \ ephy-types.h libephy_la_LIBADD = \ diff --git a/lib/ephy-types.h b/lib/ephy-types.h index 70ce681e0..da27ceaaf 100644 --- a/lib/ephy-types.h +++ b/lib/ephy-types.h @@ -30,6 +30,17 @@ typedef enum G_NOT_IMPLEMENTED } gresult; +/* Ids of the root nodes of history, + * bookmarks and favicon cache */ +enum +{ + BOOKMARKS_NODE_ID = 0, + KEYWORDS_NODE_ID = 1, + HOSTS_NODE_ID = 5, + PAGES_NODE_ID = 6, + ICONS_NODE_ID = 9, +}; + G_END_DECLS #endif -- cgit v1.2.3