diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-04-13 18:12:34 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-04-13 18:12:34 +0800 |
commit | 71ba304503bfc2219ea4905ea766ed0880219ecc (patch) | |
tree | b6b78fa300e81856e52c24ee701cf40f4fc6d47a /lib/ephy-node.c | |
parent | 4e4065d82b2f0322c43015db238e11e9edf76bd8 (diff) | |
download | gsoc2013-epiphany-71ba304503bfc2219ea4905ea766ed0880219ecc.tar gsoc2013-epiphany-71ba304503bfc2219ea4905ea766ed0880219ecc.tar.gz gsoc2013-epiphany-71ba304503bfc2219ea4905ea766ed0880219ecc.tar.bz2 gsoc2013-epiphany-71ba304503bfc2219ea4905ea766ed0880219ecc.tar.lz gsoc2013-epiphany-71ba304503bfc2219ea4905ea766ed0880219ecc.tar.xz gsoc2013-epiphany-71ba304503bfc2219ea4905ea766ed0880219ecc.tar.zst gsoc2013-epiphany-71ba304503bfc2219ea4905ea766ed0880219ecc.zip |
Use google feel like for keywords
2003-04-13 Marco Pesenti Gritti <marco@it.gnome.org>
* embed/mozilla/default-prefs.js:
Use google feel like for keywords
* lib/ephy-node.c: (ephy_node_new_with_id),
(ephy_node_system_init):
* lib/ephy-node.h:
Pass the reserved ids num
* lib/ephy-types.h:
* src/ephy-shell.c: (ephy_shell_init):
Increase reserved ids to 100.
* src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init_defaults),
(ephy_bookmarks_load), (ephy_bookmarks_init):
Default keywords and bookmarks (only google smb).
Keywords are probably quite sucky, well it's a start ;)
Adding more bookmarks could be a i18n pain.
We should be ready for 0.5.0 now.
Apologies to translators for the added string, but this
was really necessary for the bookmarks system to make sense :/
Diffstat (limited to 'lib/ephy-node.c')
-rw-r--r-- | lib/ephy-node.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/ephy-node.c b/lib/ephy-node.c index 19ca32a15..44ae48c2e 100644 --- a/lib/ephy-node.c +++ b/lib/ephy-node.c @@ -96,14 +96,12 @@ enum LAST_SIGNAL }; -#define RESERVED_IDS 10 - static GObjectClass *parent_class = NULL; static guint ephy_node_signals[LAST_SIGNAL] = { 0 }; static GMutex *id_factory_lock = NULL; -static long id_factory = RESERVED_IDS; +static long id_factory; static GStaticRWLock *id_to_node_lock = NULL; static GPtrArray *id_to_node; @@ -399,8 +397,6 @@ ephy_node_new_with_id (gulong reserved_id) { EphyNode *node; - g_return_val_if_fail (reserved_id < RESERVED_IDS, NULL); - node = EPHY_NODE (g_object_new (EPHY_TYPE_NODE, "id", reserved_id, NULL)); @@ -1376,7 +1372,7 @@ ephy_node_get_previous_child (EphyNode *node, } void -ephy_node_system_init (void) +ephy_node_system_init (gulong reserved_ids) { /* id to node */ id_to_node = g_ptr_array_new (); @@ -1385,7 +1381,7 @@ ephy_node_system_init (void) g_static_rw_lock_init (id_to_node_lock); /* id factory */ - id_factory = RESERVED_IDS; + id_factory = reserved_ids; id_factory_lock = g_mutex_new (); } |