diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-11 00:35:56 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-11 00:35:56 +0800 |
commit | e3396ef5e3ae7fd5674eda19a893e7dca88bce35 (patch) | |
tree | 6315e5bc2549ec9db6109607fbb29596363d969e /lib/ephy-node-db.c | |
parent | 80bc591b9024029ee12957944593053db6763c41 (diff) | |
download | gsoc2013-epiphany-e3396ef5e3ae7fd5674eda19a893e7dca88bce35.tar gsoc2013-epiphany-e3396ef5e3ae7fd5674eda19a893e7dca88bce35.tar.gz gsoc2013-epiphany-e3396ef5e3ae7fd5674eda19a893e7dca88bce35.tar.bz2 gsoc2013-epiphany-e3396ef5e3ae7fd5674eda19a893e7dca88bce35.tar.lz gsoc2013-epiphany-e3396ef5e3ae7fd5674eda19a893e7dca88bce35.tar.xz gsoc2013-epiphany-e3396ef5e3ae7fd5674eda19a893e7dca88bce35.tar.zst gsoc2013-epiphany-e3396ef5e3ae7fd5674eda19a893e7dca88bce35.zip |
Implement history disabling.
2004-01-10 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-history.c: (ephy_history_get_type),
(ephy_history_set_enabled), (ephy_history_set_property),
(ephy_history_get_property), (ephy_history_class_init),
(page_removed_from_host_cb), (disable_history_notifier),
(ephy_history_init), (ephy_history_finalize), (ephy_history_new),
(ephy_history_get_host), (ephy_history_visited),
(ephy_history_add_page), (ephy_history_set_page_title),
(ephy_history_clear), (ephy_history_is_enabled):
* embed/ephy-history.h:
* lib/ephy-node-db.c: (ephy_node_db_get_property),
(ephy_node_db_set_property), (ephy_node_db_set_immutable):
* lib/ephy-node-db.h:
* lib/ephy-prefs.h:
* src/bookmarks/ephy-bookmarks.c: (clear_favorites),
(history_cleared_cb), (ephy_setup_history_notifiers):
Implement history disabling.
Diffstat (limited to 'lib/ephy-node-db.c')
-rw-r--r-- | lib/ephy-node-db.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/ephy-node-db.c b/lib/ephy-node-db.c index 43b6db39f..920bdf1fb 100644 --- a/lib/ephy-node-db.c +++ b/lib/ephy-node-db.c @@ -99,7 +99,6 @@ ephy_node_db_set_name (EphyNodeDb *db, const char *name) g_hash_table_insert (ephy_node_databases, db->priv->name, db); } - static void ephy_node_db_get_property (GObject *object, guint prop_id, @@ -116,12 +115,11 @@ ephy_node_db_get_property (GObject *object, g_value_set_string (value, db->priv->name); break; case PROP_IMMUTABLE: - g_value_set_boolean (value, db->priv->immutable); + g_value_set_boolean (value, ephy_node_db_is_immutable (db)); break; } } - static void ephy_node_db_set_property (GObject *object, guint prop_id, @@ -138,8 +136,7 @@ ephy_node_db_set_property (GObject *object, ephy_node_db_set_name (db, g_value_get_string (value)); break; case PROP_IMMUTABLE: - db->priv->immutable = g_value_get_boolean (value); - g_object_notify (G_OBJECT (db), "immutable"); + ephy_node_db_set_immutable (db, g_value_get_boolean (value)); break; } } @@ -253,6 +250,14 @@ ephy_node_db_is_immutable (EphyNodeDb *db) return db->priv->immutable; } +void +ephy_node_db_set_immutable (EphyNodeDb *db, gboolean immutable) +{ + db->priv->immutable = immutable; + + g_object_notify (G_OBJECT (db), "immutable"); +} + EphyNode * ephy_node_db_get_node_from_id (EphyNodeDb *db, long id) { |