aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-06-13 02:00:23 +0800
committerXan Lopez <xan@src.gnome.org>2003-06-13 02:00:23 +0800
commitef8562bb3eef845145818dbaf726dfb2d0d394b7 (patch)
treec68eb45857636dec2deeedf11621996e92fa1dd9 /src
parent53d825c05b5eafa38c10a5a9b1b9e58f1bc1051d (diff)
downloadgsoc2013-epiphany-ef8562bb3eef845145818dbaf726dfb2d0d394b7.tar
gsoc2013-epiphany-ef8562bb3eef845145818dbaf726dfb2d0d394b7.tar.gz
gsoc2013-epiphany-ef8562bb3eef845145818dbaf726dfb2d0d394b7.tar.bz2
gsoc2013-epiphany-ef8562bb3eef845145818dbaf726dfb2d0d394b7.tar.lz
gsoc2013-epiphany-ef8562bb3eef845145818dbaf726dfb2d0d394b7.tar.xz
gsoc2013-epiphany-ef8562bb3eef845145818dbaf726dfb2d0d394b7.tar.zst
gsoc2013-epiphany-ef8562bb3eef845145818dbaf726dfb2d0d394b7.zip
Do not persist node selection in BME between sessions.
Do not persist node selection in BME between sessions.
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 7a5b087df..56d3ef1a9 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -15,6 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
+ * $Id$
*/
#ifdef HAVE_CONFIG_H
@@ -42,7 +43,6 @@
#include "ephy-dnd.h"
#include "ephy-prefs.h"
#include "ephy-shell.h"
-#include "eel-gconf-extensions.h"
#include "ephy-file-helpers.h"
#include "egg-action-group.h"
#include "egg-toggle-action.h"
@@ -964,8 +964,6 @@ static void
ephy_bookmarks_editor_dispose (GObject *object)
{
EphyBookmarksEditor *editor;
- long selected_id;
- char *selected_id_str;
GList *selection;
g_return_if_fail (object != NULL);
@@ -989,15 +987,6 @@ ephy_bookmarks_editor_dispose (GObject *object)
return;
}
- selected_id = ephy_node_get_id (selection->data);
- if (selected_id >= 0)
- {
- selected_id_str = g_strdup_printf ("%ld", selected_id);
- eel_gconf_set_string (CONF_BOOKMARKS_SELECTED_NODE,
- selected_id_str);
- g_free (selected_id_str);
- }
-
g_list_free (selection);
editor->priv->key_view = NULL;
@@ -1207,9 +1196,6 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
GtkWidget *bm_view, *key_view;
GtkWidget *scrolled_window;
EphyNode *node;
- long selected_id;
- EphyNode *selected_node;
- char *selected_id_str;
EggMenuMerge *ui_merge;
EggActionGroup *action_group;
EggAction *action;
@@ -1379,22 +1365,6 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
ephy_state_add_paned (GTK_WIDGET (hpaned),
"bookmarks_paned",
130);
-
- selected_id_str = eel_gconf_get_string (CONF_BOOKMARKS_SELECTED_NODE);
- selected_id = g_ascii_strtoull (selected_id_str, NULL, 10);
- if (selected_id <= 0)
- {
- g_free (selected_id_str);
- return;
- }
-
- selected_node = ephy_bookmarks_get_from_id (editor->priv->bookmarks, selected_id);
- if (selected_node != NULL)
- {
- ephy_node_view_select_node (EPHY_NODE_VIEW (key_view), selected_node);
- }
-
- g_free (selected_id_str);
}
void