diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-08-06 21:14:14 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-08-06 21:14:14 +0800 |
commit | de613c2209c88b8a50623ce920e886685f7086c3 (patch) | |
tree | 5fdbdab220ab31c4d8141f9b344cacaa4b3ac79a /src | |
parent | 7ca43af0be7e068d0a2634bd814a8f42b8b2abb2 (diff) | |
download | gsoc2013-epiphany-de613c2209c88b8a50623ce920e886685f7086c3.tar gsoc2013-epiphany-de613c2209c88b8a50623ce920e886685f7086c3.tar.gz gsoc2013-epiphany-de613c2209c88b8a50623ce920e886685f7086c3.tar.bz2 gsoc2013-epiphany-de613c2209c88b8a50623ce920e886685f7086c3.tar.lz gsoc2013-epiphany-de613c2209c88b8a50623ce920e886685f7086c3.tar.xz gsoc2013-epiphany-de613c2209c88b8a50623ce920e886685f7086c3.tar.zst gsoc2013-epiphany-de613c2209c88b8a50623ce920e886685f7086c3.zip |
Fix restoring the history window on resume.
2004-08-06 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-session.c: (write_window_geometry), (write_tool_window),
(ephy_session_load):
Fix restoring the history window on resume.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-session.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c index f526703ed..78f4142bb 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -518,16 +518,16 @@ write_window_geometry (xmlTextWriterPtr writer, gtk_window_get_position (window, &x, &y); /* set window properties */ - ret = xmlTextWriterWriteFormatAttribute (writer, (xmlChar *) "x", "%d", x); + ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *) "x", "%d", x); if (ret < 0) return ret; - ret = xmlTextWriterWriteFormatAttribute (writer, (xmlChar *) "y", "%d", y); + ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *) "y", "%d", y); if (ret < 0) return ret; - ret = xmlTextWriterWriteFormatAttribute (writer, (xmlChar *) "width", "%d", width); + ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *) "width", "%d", width); if (ret < 0) return ret; - ret = xmlTextWriterWriteFormatAttribute (writer, (xmlChar *) "height", "%d", height); + ret = xmlTextWriterWriteFormatAttribute (writer, (const xmlChar *) "height", "%d", height); return ret; } @@ -551,10 +551,10 @@ write_tool_window (xmlTextWriterPtr writer, g_return_val_if_reached (-1); } - ret = xmlTextWriterStartElement (writer, (xmlChar *) "toolwindow"); + ret = xmlTextWriterStartElement (writer, (const xmlChar *) "toolwindow"); if (ret < 0) return ret; - ret = xmlTextWriterWriteAttribute (writer, (xmlChar *) "id", id); + ret = xmlTextWriterWriteAttribute (writer, (const xmlChar *) "id", id); if (ret < 0) return ret; ret = write_window_geometry (writer, window); @@ -755,18 +755,18 @@ ephy_session_load (EphySession *session, { xmlChar *id; - id = xmlGetProp (child, (xmlChar *) "id"); + id = xmlGetProp (child, (const xmlChar *) "id"); - if (id && xmlStrEqual ((xmlChar *) BOOKMARKS_EDITOR_ID, id)) + if (id && xmlStrEqual ((const xmlChar *) BOOKMARKS_EDITOR_ID, id)) { if (!eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_BOOKMARK_EDITING)) { widget = ephy_shell_get_bookmarks_editor (ephy_shell); } } - else if (id && xmlStrEqual ((xmlChar *) HISTORY_WINDOW_ID, id)) + else if (id && xmlStrEqual ((const xmlChar *) HISTORY_WINDOW_ID, id)) { - if (eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_HISTORY)) + if (!eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_HISTORY)) { widget = ephy_shell_get_history_window (ephy_shell); } |