]> git.0d.be Git - empathy.git/commitdiff
Don't use deprecated GtkTooltips API. Add commented out lines in
authorXavier Claessens <xclaesse@gmail.com>
Sat, 13 Oct 2007 13:00:29 +0000 (13:00 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sat, 13 Oct 2007 13:00:29 +0000 (13:00 +0000)
2007-10-13  Xavier Claessens  <xclaesse@gmail.com>

* libempathy-gtk/empathy-chat-view.h:
* libempathy-gtk/empathy-main-window.c:
* libempathy-gtk/empathy-chat.c:
* libempathy-gtk/empathy-chat-window.c:
* libempathy-gtk/empathy-chat-view.c:
* libempathy/empathy-log-manager.c:
* libempathy/empathy-time.c:
* libempathy/empathy-tp-chat.c:
* libempathy/empathy-time.h:
* libempathy/empathy-message.c:
* libempathy/empathy-message.h:
* libempathy/empathy-presence.c:
* configure.ac: Don't use deprecated GtkTooltips API. Add commented out
lines in configure.ac to disable GLib and GTK deprecated symbols.
Replace EmpathyTime by time_t which is more appropriate for timestamps.

* doc/*: Updated.

svn path=/trunk/; revision=371

19 files changed:
ChangeLog
configure.ac
doc/libempathy-gtk/tmpl/empathy-chat-view.sgml
doc/libempathy-gtk/tmpl/empathy-contact-dialogs.sgml
doc/libempathy-gtk/tmpl/empathy-contact-widget.sgml
doc/libempathy-gtk/tmpl/empathy-ui-utils.sgml
doc/libempathy/tmpl/empathy-time.sgml
libempathy-gtk/empathy-chat-view.c
libempathy-gtk/empathy-chat-view.h
libempathy-gtk/empathy-chat-window.c
libempathy-gtk/empathy-chat.c
libempathy-gtk/empathy-main-window.c
libempathy/empathy-log-manager.c
libempathy/empathy-message.c
libempathy/empathy-message.h
libempathy/empathy-presence.c
libempathy/empathy-time.c
libempathy/empathy-time.h
libempathy/empathy-tp-chat.c

index 5edcf12607a39c62000ecf1aed3139f442c46115..34011cc5c06f26b41d57e152bdfa09ebc305812d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+2007-10-13  Xavier Claessens  <xclaesse@gmail.com>
+
+       * libempathy-gtk/empathy-chat-view.h:
+       * libempathy-gtk/empathy-main-window.c:
+       * libempathy-gtk/empathy-chat.c:
+       * libempathy-gtk/empathy-chat-window.c:
+       * libempathy-gtk/empathy-chat-view.c:
+       * libempathy/empathy-log-manager.c:
+       * libempathy/empathy-time.c:
+       * libempathy/empathy-tp-chat.c:
+       * libempathy/empathy-time.h:
+       * libempathy/empathy-message.c:
+       * libempathy/empathy-message.h:
+       * libempathy/empathy-presence.c:
+       * configure.ac: Don't use deprecated GtkTooltips API. Add commented out
+       lines in configure.ac to disable GLib and GTK deprecated symbols.
+       Replace EmpathyTime by time_t which is more appropriate for timestamps.
+
+       * doc/*: Updated.
+
 2007-10-13  Xavier Claessens  <xclaesse@gmail.com>
 
        * libempathy-gtk/empathy-main-window.c:
index 958ca4ceaa8e4d415d740dfeb0464bce7e8887a9..3dbb6b3e309340c5061cc9e4de54efb0d6de4417 100644 (file)
@@ -55,6 +55,10 @@ MISSION_CONTROL_REQUIRED=4.37
 
 IDT_COMPILE_WARNINGS
 
+dnl Uncomment that to build without deprecated GTK and GLib symbols
+dnl AC_DEFINE(GTK_DISABLE_DEPRECATED, 1, [Disable deprecated GTK symbols])
+dnl AC_DEFINE(G_DISABLE_DEPRECATED, 1, [Disable deprecated GLib symbols])
+
 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
 AC_SUBST(GLIB_GENMARSHAL)
 
index 285cbc73cf4cb84467bcdfdc0d3938c22fff65f2..bbf0cd194403777f63184a79ec2933c4f8d6f35c 100644 (file)
@@ -186,7 +186,6 @@ EmpathyChatView
 
 @callback: 
 @user_data: 
-@tooltips: 
 @Returns: 
 
 
index 1a02958b79b320cb8aedf5b95f0a70cf5b1d3a28..a481e45d3bc9b18aab6912566ece165cc6dc87f5 100644 (file)
@@ -34,6 +34,7 @@ empathy-contact-dialogs
 @contact: 
 @parent: 
 @edit: 
+@edit_groups: 
 
 
 <!-- ##### FUNCTION empathy_new_contact_dialog_show ##### -->
index 76961c75003b07a84abc87739d662422605297a9..e9dee82aed0dfb47b68ecd690833f80490feea2c 100644 (file)
@@ -17,15 +17,16 @@ empathy-contact-widget
 <!-- ##### SECTION Stability_Level ##### -->
 
 
-<!-- ##### ENUM EmpathyContactWidgetType ##### -->
+<!-- ##### ENUM EmpathyContactWidgetFlags ##### -->
 <para>
 
 </para>
 
-@CONTACT_WIDGET_TYPE_SHOW: 
-@CONTACT_WIDGET_TYPE_EDIT: 
-@CONTACT_WIDGET_TYPE_ADD: 
-@CONTACT_WIDGET_TYPE_SUBSCRIPTION: 
+@EMPATHY_CONTACT_WIDGET_EDIT_ALIAS: 
+@EMPATHY_CONTACT_WIDGET_EDIT_AVATAR: 
+@EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT: 
+@EMPATHY_CONTACT_WIDGET_EDIT_ID: 
+@EMPATHY_CONTACT_WIDGET_EDIT_GROUPS: 
 
 <!-- ##### FUNCTION empathy_contact_widget_new ##### -->
 <para>
@@ -33,7 +34,7 @@ empathy-contact-widget
 </para>
 
 @contact: 
-@type
+@flags
 @Returns: 
 
 
index b7dbd542025aaabed1547f0cb182cc0395b05166..34d3056c3125f049d50fa2657dbc48b0122db942 100644 (file)
@@ -72,16 +72,6 @@ empathy-ui-utils
 @Varargs: 
 
 
-<!-- ##### FUNCTION empathy_pixbuf_from_icon_name ##### -->
-<para>
-
-</para>
-
-@icon_name: 
-@icon_size: 
-@Returns: 
-
-
 <!-- ##### FUNCTION empathy_icon_name_from_account ##### -->
 <para>
 
@@ -118,6 +108,16 @@ empathy-ui-utils
 @Returns: 
 
 
+<!-- ##### FUNCTION empathy_pixbuf_from_data ##### -->
+<para>
+
+</para>
+
+@data: 
+@data_size: 
+@Returns: 
+
+
 <!-- ##### FUNCTION empathy_pixbuf_from_avatar_scaled ##### -->
 <para>
 
@@ -140,6 +140,26 @@ empathy-ui-utils
 @Returns: 
 
 
+<!-- ##### FUNCTION empathy_pixbuf_scale_down_if_necessary ##### -->
+<para>
+
+</para>
+
+@pixbuf: 
+@max_size: 
+@Returns: 
+
+
+<!-- ##### FUNCTION empathy_pixbuf_from_icon_name ##### -->
+<para>
+
+</para>
+
+@icon_name: 
+@icon_size: 
+@Returns: 
+
+
 <!-- ##### FUNCTION empathy_text_iter_forward_search ##### -->
 <para>
 
index 512e7751df237ca414a19377fccafa37cc0b75b3..290f8fa6e7d76112f8d30309c9f50b1fa88dcbc6 100644 (file)
@@ -31,12 +31,6 @@ empathy-time
 
 
 
-<!-- ##### TYPEDEF EmpathyTime ##### -->
-<para>
-
-</para>
-
-
 <!-- ##### FUNCTION empathy_time_get_current ##### -->
 <para>
 
index 116892b6016df3f832f37a6e61d3ac26a7b3bb5a..e0c75b1911d84a73a82bfb5a7135cc94c0464e50 100644 (file)
@@ -725,10 +725,10 @@ chat_view_maybe_append_date_and_time (EmpathyChatView *view,
        }
 
        date = g_date_new ();
-       g_date_set_time (date, timestamp);
+       g_date_set_time_t (date, timestamp);
 
        last_date = g_date_new ();
-       g_date_set_time (last_date, priv->last_timestamp);
+       g_date_set_time_t (last_date, priv->last_timestamp);
 
        append_date = FALSE;
        append_time = FALSE;
@@ -1958,8 +1958,7 @@ empathy_chat_view_set_margin (EmpathyChatView *view,
 
 GtkWidget *
 empathy_chat_view_get_smiley_menu (GCallback    callback,
-                                  gpointer     user_data,
-                                  GtkTooltips *tooltips)
+                                  gpointer     user_data)
 {
        EmpathySmileyManager *smiley_manager;
        GSList               *smileys, *l;
@@ -1987,10 +1986,7 @@ empathy_chat_view_get_smiley_menu (GCallback    callback,
                gtk_menu_attach (GTK_MENU (menu), item,
                                 x, x + 1, y, y + 1);
 
-               gtk_tooltips_set_tip (tooltips,
-                                     item,
-                                     smiley->str,
-                                     NULL);
+               gtk_widget_set_tooltip_text (item, smiley->str);
 
                g_object_set_data  (G_OBJECT (item), "smiley_text", smiley->str);
                g_signal_connect (item, "activate", callback, user_data);
index 370c8dd85180bf857b6494fe5b700f1883e49258..0402bd7c0605c9c42488851861823f931ed81d57 100644 (file)
@@ -26,7 +26,6 @@
 #define __EMPATHY_CHAT_VIEW_H__
 
 #include <gtk/gtktextview.h>
-#include <gtk/gtktooltips.h>
 
 #include <libempathy/empathy-contact.h>
 #include <libempathy/empathy-message.h>
@@ -90,8 +89,7 @@ void             empathy_chat_view_set_irc_style        (EmpathyChatView *view,
 void             empathy_chat_view_set_margin           (EmpathyChatView *view,
                                                         gint             margin);
 GtkWidget *      empathy_chat_view_get_smiley_menu      (GCallback        callback,
-                                                        gpointer         user_data,
-                                                        GtkTooltips     *tooltips);
+                                                        gpointer         user_data);
 void             empathy_chat_view_set_is_group_chat    (EmpathyChatView *view,
                                                         gboolean         is_group_chat);
 
index 54e896263a2605e0fbc28811eef61cb6eeca1849..a4d29b258b112cf2f01bf7e4fdf752ca01bec079 100644 (file)
@@ -74,8 +74,6 @@ struct _EmpathyChatWindowPriv {
        GtkWidget             *dialog;
        GtkWidget             *notebook;
 
-       GtkTooltips           *tooltips;
-
        /* Menu items. */
        GtkWidget             *menu_conv_clear;
        GtkWidget             *menu_conv_insert_smiley;
@@ -277,8 +275,6 @@ empathy_chat_window_init (EmpathyChatWindow *window)
 
        priv = GET_PRIV (window);
 
-       priv->tooltips = g_object_ref_sink (gtk_tooltips_new ());
-
        glade = empathy_glade_get_file ("empathy-chat.glade",
                                       "chat_window",
                                       NULL,
@@ -345,7 +341,7 @@ empathy_chat_window_init (EmpathyChatWindow *window)
                                  window);
 
        priv->notebook = gtk_notebook_new ();
-       gtk_notebook_set_group_id (GTK_NOTEBOOK (priv->notebook), 1); 
+       gtk_notebook_set_group (GTK_NOTEBOOK (priv->notebook), "EmpathyChatWindow"); 
        gtk_box_pack_start (GTK_BOX (chat_vbox), priv->notebook, TRUE, TRUE, 0);
        gtk_widget_show (priv->notebook);
 
@@ -377,8 +373,7 @@ empathy_chat_window_init (EmpathyChatWindow *window)
        /* Set up smiley menu */
        menu = empathy_chat_view_get_smiley_menu (
                G_CALLBACK (chat_window_insert_smiley_activate_cb),
-               window,
-               priv->tooltips);
+               window);
        gtk_menu_item_set_submenu (GTK_MENU_ITEM (priv->menu_conv_insert_smiley), menu);
 
        /* Set up signals we can't do with glade since we may need to
@@ -508,7 +503,6 @@ empathy_chat_window_finalize (GObject *object)
 
        chat_windows = g_list_remove (chat_windows, window);
        gtk_widget_destroy (priv->dialog);
-       g_object_unref (priv->tooltips);
 
        g_signal_handlers_disconnect_by_func (priv->chatroom_manager,
                                              chat_window_update_menu,
@@ -1291,10 +1285,7 @@ chat_window_update_tooltip (EmpathyChatWindow *window,
        }
 
        widget = g_object_get_data (G_OBJECT (chat), "chat-window-tab-tooltip-widget");
-       gtk_tooltips_set_tip (priv->tooltips,
-                             widget,
-                             str,
-                             NULL);
+       gtk_widget_set_tooltip_text (widget, str);
 
        g_free (str);
 }
index f68a828261e70037b252e11e178e8b998c80c121..9dd75c2c77ee70284c208c4811c6516df7032681 100644 (file)
@@ -67,7 +67,6 @@ struct _EmpathyChatPriv {
        EmpathyLogManager     *log_manager;
        EmpathyTpChat         *tp_chat;
        EmpathyChatWindow      *window;
-       GtkTooltips           *tooltips;
        guint                  composing_stop_timeout_id;
        gboolean               sensitive;
        gchar                 *id;
@@ -76,7 +75,7 @@ struct _EmpathyChatPriv {
        GList                 *compositors;
        guint                  scroll_idle_id;
        gboolean               first_tp_chat;
-       EmpathyTime            last_log_timestamp;
+       time_t                 last_log_timestamp;
        /* Used to automatically shrink a window that has temporarily
         * grown due to long input. 
         */
@@ -237,7 +236,6 @@ empathy_chat_init (EmpathyChat *chat)
 
        priv->manager = empathy_contact_manager_new ();
        priv->log_manager = empathy_log_manager_new ();
-       priv->tooltips = g_object_ref_sink (gtk_tooltips_new ());
        priv->default_window_height = -1;
        priv->vscroll_visible = FALSE;
        priv->sensitive = TRUE;
@@ -303,7 +301,6 @@ chat_finalize (GObject *object)
        g_object_unref (chat->account);
        g_object_unref (priv->manager);
        g_object_unref (priv->log_manager);
-       g_object_unref (priv->tooltips);
 
        if (priv->tp_chat) {
                g_object_unref (priv->tp_chat);
@@ -402,7 +399,7 @@ chat_message_received_cb (EmpathyTpChat  *tp_chat,
 {
        EmpathyChatPriv *priv;
        EmpathyContact  *sender;
-       EmpathyTime      timestamp;
+       time_t           timestamp;
 
        priv = GET_PRIV (chat);
 
@@ -927,8 +924,7 @@ chat_text_populate_popup_cb (GtkTextView *view,
 
        smiley_menu = empathy_chat_view_get_smiley_menu (
                G_CALLBACK (chat_insert_smiley_activate_cb),
-               chat,
-               priv->tooltips);
+               chat);
        gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), smiley_menu);
 
        /* Add the spell check menu item. */
index 8883fa3064003c0d6846ffce28ec737842069f4e..26e54226f9f2b5ae4d94314a8b83332553fcbb59 100644 (file)
@@ -75,9 +75,6 @@ typedef struct {
        GtkWidget              *window;
        GtkWidget              *main_vbox;
 
-       /* Tooltips for all widgets */
-       GtkTooltips            *tooltips;
-
        /* Menu widgets */
        GtkWidget              *room;
        GtkWidget              *room_menu;
@@ -187,7 +184,6 @@ empathy_main_window_show (void)
        GtkWidget                *show_offline_widget;
        GtkWidget                *ebox;
        GtkToolItem              *item;
-       gchar                    *str;
        gboolean                  show_offline;
        gboolean                  show_avatars;
        gboolean                  compact_contact_list;
@@ -240,7 +236,6 @@ empathy_main_window_show (void)
        main_window_connection_items_setup (window, glade);
        g_object_unref (glade);
 
-       window->tooltips = g_object_ref_sink (gtk_tooltips_new ());
        window->mc = empathy_mission_control_new ();
        dbus_g_proxy_connect_signal (DBUS_G_PROXY (window->mc), "AccountStatusChanged",
                                     G_CALLBACK (main_window_status_changed_cb),
@@ -276,9 +271,7 @@ empathy_main_window_show (void)
 
        gtk_toolbar_insert (GTK_TOOLBAR (window->presence_toolbar), item, -1);
 
-       str = _("Show and edit accounts");
-       gtk_tooltips_set_tip (GTK_TOOLTIPS (window->tooltips),
-                             ebox, str, str);
+       gtk_widget_set_tooltip_text (ebox, _("Show and edit accounts"));
 
        g_signal_connect (ebox,
                          "button-press-event",
@@ -386,7 +379,6 @@ main_window_destroy_cb (GtkWidget         *widget,
        g_list_free (window->widgets_connected);
        g_list_free (window->widgets_disconnected);
 
-       g_object_unref (window->tooltips);
        g_object_unref (window->mc);
        g_object_unref (window->list_store);
 
index efdbae86b18fbd7b8bdfc9f04d6eb59800dc680b..e5ff2b777132517721674ec76a8e47c93bebc686 100644 (file)
@@ -329,7 +329,7 @@ empathy_log_manager_get_messages_for_file (EmpathyLogManager *manager,
                EmpathyMessage     *message;
                EmpathyContact     *sender;
                gchar              *time;
-               EmpathyTime         t;
+               time_t              t;
                gchar              *sender_id;
                gchar              *sender_name;
                gchar              *body;
@@ -527,7 +527,7 @@ empathy_log_manager_search_free (GList *hits)
 gchar *
 empathy_log_manager_get_date_readable (const gchar *date)
 {
-       EmpathyTime t;
+       time_t t;
 
        t = empathy_time_parse (date);
 
@@ -703,7 +703,7 @@ log_manager_get_filename_for_date (EmpathyLogManager *manager,
 static gchar *
 log_manager_get_timestamp_filename (void)
 {
-       EmpathyTime  t;
+       time_t      t;
        gchar      *time_str;
        gchar      *filename;
 
@@ -719,7 +719,7 @@ log_manager_get_timestamp_filename (void)
 static gchar *
 log_manager_get_timestamp_from_message (EmpathyMessage *message)
 {
-       EmpathyTime t;
+       time_t t;
 
        t = empathy_message_get_timestamp (message);
 
index ceecd5d55676f2166e9c225761bfa166271d091a..5c2028bd01975432c70fa60e89e21a60b042f717 100644 (file)
@@ -38,7 +38,7 @@ struct _EmpathyMessagePriv {
        EmpathyContact     *sender;
        EmpathyContact     *receiver;
        gchar              *body;
-       EmpathyTime         timestamp;
+       time_t              timestamp;
 };
 
 static void empathy_message_class_init (EmpathyMessageClass *class);
@@ -385,7 +385,7 @@ empathy_message_set_body (EmpathyMessage *message,
        g_object_notify (G_OBJECT (message), "body");
 }
 
-EmpathyTime
+time_t
 empathy_message_get_timestamp (EmpathyMessage *message)
 {
        EmpathyMessagePriv *priv;
@@ -399,7 +399,7 @@ empathy_message_get_timestamp (EmpathyMessage *message)
 
 void
 empathy_message_set_timestamp (EmpathyMessage *message,
-                             EmpathyTime     timestamp)
+                              time_t          timestamp)
 {
        EmpathyMessagePriv *priv;
 
index 5baddd6bb062e5f1ce5f9ea3d48cab7b513391e8..af19d364c1416a4ce3b30aa33e5d47b419372359 100644 (file)
@@ -72,9 +72,9 @@ void               empathy_message_set_receiver  (EmpathyMessage     *message,
 const gchar *      empathy_message_get_body      (EmpathyMessage     *message);
 void               empathy_message_set_body      (EmpathyMessage     *message,
                                                  const gchar        *body);
-EmpathyTime        empathy_message_get_timestamp (EmpathyMessage     *message);
+time_t             empathy_message_get_timestamp (EmpathyMessage     *message);
 void               empathy_message_set_timestamp (EmpathyMessage     *message,
-                                                 EmpathyTime         timestamp);
+                                                 time_t              timestamp);
 EmpathyMessageType empathy_message_type_from_str (const gchar        *type_str);
 const gchar *      empathy_message_type_to_str   (EmpathyMessageType  type);
 
index b30fa6151e1c6d4f264724d7a382f6a7b208304c..b7beb3900c14c9eba37de953c4ed2847ccfaab91 100644 (file)
@@ -38,7 +38,7 @@ typedef struct _EmpathyPresencePriv EmpathyPresencePriv;
 struct _EmpathyPresencePriv {
        McPresence  state;
        gchar      *status;
-       EmpathyTime  timestamp;
+       time_t      timestamp;
 };
 
 static void         presence_finalize     (GObject      *object);
index 0851add49a09d8bbc04b7024c048508e3f4884e7..9eec8adc0cea0795d4a4e746eacb3a8b41a25de9 100644 (file)
@@ -30,7 +30,7 @@
 
 /* Note: EmpathyTime is always in UTC. */
 
-EmpathyTime
+time_t
 empathy_time_get_current (void)
 {
        return time (NULL);
@@ -63,7 +63,7 @@ empathy_time_get_local_time (struct tm *tm)
 /* The format is: "20021209T23:51:30" and is in UTC. 0 is returned on
  * failure. The alternative format "20021209" is also accepted.
  */
-EmpathyTime
+time_t
 empathy_time_parse (const gchar *str)
 {
        struct tm tm;
@@ -88,8 +88,8 @@ empathy_time_parse (const gchar *str)
 
 /* Converts the UTC timestamp to a string, also in UTC. Returns NULL on failure. */
 gchar *
-empathy_time_to_string_utc (EmpathyTime   t,
-                          const gchar *format)
+empathy_time_to_string_utc (time_t       t,
+                           const gchar *format)
 {
        gchar      stamp[128];
        struct tm *tm;
@@ -106,8 +106,8 @@ empathy_time_to_string_utc (EmpathyTime   t,
 
 /* Converts the UTC timestamp to a string, in local time. Returns NULL on failure. */
 gchar *
-empathy_time_to_string_local (EmpathyTime   t,
-                            const gchar *format)
+empathy_time_to_string_local (time_t       t,
+                             const gchar *format)
 {
        gchar      stamp[128];
        struct tm *tm;
index debf784c0db5fb3f5cf8118280172cd367457d34..560b4655a87e84d00f7a5c427e9eb8e5378c5e25 100644 (file)
@@ -33,18 +33,15 @@ G_BEGIN_DECLS
 #define EMPATHY_TIME_FORMAT_DISPLAY_SHORT "%H:%M"
 #define EMPATHY_TIME_FORMAT_DISPLAY_LONG  "%a %d %b %Y"
 
-/* Note: Always in UTC. */
-typedef long EmpathyTime;
-
-EmpathyTime  empathy_time_get_current     (void);
-time_t      empathy_time_get_local_time  (struct tm   *tm);
-EmpathyTime  empathy_time_parse           (const gchar *str);
-EmpathyTime  empathy_time_parse_format    (const gchar *str,
-                                        const gchar *format);
-gchar      *empathy_time_to_string_utc   (EmpathyTime   t,
-                                        const gchar *format);
-gchar      *empathy_time_to_string_local (EmpathyTime   t,
-                                        const gchar *format);
+time_t  empathy_time_get_current     (void);
+time_t  empathy_time_get_local_time  (struct tm   *tm);
+time_t  empathy_time_parse           (const gchar *str);
+time_t  empathy_time_parse_format    (const gchar *str,
+                                     const gchar *format);
+gchar  *empathy_time_to_string_utc   (time_t       t,
+                                     const gchar *format);
+gchar  *empathy_time_to_string_local (time_t       t,
+                                     const gchar *format);
 
 G_END_DECLS
 
index feba273bda313f7c8b8710df149c09f3ad39abb3..98b82e13875c1b54b21d41120159385a1fd74a0b 100644 (file)
@@ -940,7 +940,7 @@ tp_chat_build_message (EmpathyTpChat *chat,
        empathy_message_set_type (message, type);
        empathy_message_set_sender (message, sender);
        empathy_message_set_receiver (message, priv->user);
-       empathy_message_set_timestamp (message, (EmpathyTime) timestamp);
+       empathy_message_set_timestamp (message, timestamp);
 
        g_object_unref (sender);