From 320433a4a3b9c3abc62d2be1ca5e4157da209875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Sun, 31 Jul 2005 20:35:26 +0000 Subject: Fix gcc 4.0 warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2005-07-31 Jean-François Rameau * src/epiphany.override: (_wrap_ephy_embed_event_get_coords): * embed/ephy-history.c: Fix gcc 4.0 warnings. --- ChangeLog | 7 +++++++ embed/ephy-history.c | 6 +++--- src/epiphany.override | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index d98278757..094b48d79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-07-31 Jean-François Rameau + + * src/epiphany.override: (_wrap_ephy_embed_event_get_coords): + * embed/ephy-history.c: + + Fix gcc 4.0 warnings. + 2005-07-31 Christian Persch * src/Makefile.am: diff --git a/embed/ephy-history.c b/embed/ephy-history.c index f35b0f87a..d3c64d286 100644 --- a/embed/ephy-history.c +++ b/embed/ephy-history.c @@ -34,8 +34,8 @@ #include #include -#define EPHY_HISTORY_XML_ROOT "ephy_history" -#define EPHY_HISTORY_XML_VERSION "1.0" +#define EPHY_HISTORY_XML_ROOT (const xmlChar *)"ephy_history" +#define EPHY_HISTORY_XML_VERSION (const xmlChar *)"1.0" /* how often to save the history, in milliseconds */ #define HISTORY_SAVE_INTERVAL (5 * 60 * 1000) @@ -277,7 +277,7 @@ ephy_history_save (EphyHistory *eb) LOG ("Saving history db"); ret = ephy_node_db_write_to_xml_safe - (eb->priv->db, eb->priv->xml_file, + (eb->priv->db, (const xmlChar *)eb->priv->xml_file, EPHY_HISTORY_XML_ROOT, EPHY_HISTORY_XML_VERSION, NULL, /* comment */ diff --git a/src/epiphany.override b/src/epiphany.override index f6b8d15b7..439ca3c2e 100644 --- a/src/epiphany.override +++ b/src/epiphany.override @@ -205,10 +205,10 @@ override ephy_embed_event_get_coords noargs static PyObject * _wrap_ephy_embed_event_get_coords(PyGObject *self) { - gint x, y; + guint x, y; ephy_embed_event_get_coords (EPHY_EMBED_EVENT(self->obj), &x, &y); - return Py_BuildValue("(ii)", x, y); + return Py_BuildValue("(ll)", x, y); } %% override ephy_window_get_tabs noargs -- cgit v1.2.3