aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat-view.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-10-13 21:00:29 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-10-13 21:00:29 +0800
commitd00adf45ea54086a8d1d29090639b5beb3f88b34 (patch)
tree9cc7756b93e51e5c9ba250e82164316e8778e3f3 /libempathy-gtk/empathy-chat-view.c
parent0ab84cc3ffe6129ae40ad436eb62fccbd52b00ad (diff)
downloadgsoc2013-empathy-d00adf45ea54086a8d1d29090639b5beb3f88b34.tar
gsoc2013-empathy-d00adf45ea54086a8d1d29090639b5beb3f88b34.tar.gz
gsoc2013-empathy-d00adf45ea54086a8d1d29090639b5beb3f88b34.tar.bz2
gsoc2013-empathy-d00adf45ea54086a8d1d29090639b5beb3f88b34.tar.lz
gsoc2013-empathy-d00adf45ea54086a8d1d29090639b5beb3f88b34.tar.xz
gsoc2013-empathy-d00adf45ea54086a8d1d29090639b5beb3f88b34.tar.zst
gsoc2013-empathy-d00adf45ea54086a8d1d29090639b5beb3f88b34.zip
Don't use deprecated GtkTooltips API. Add commented out lines in
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
Diffstat (limited to 'libempathy-gtk/empathy-chat-view.c')
-rw-r--r--libempathy-gtk/empathy-chat-view.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libempathy-gtk/empathy-chat-view.c b/libempathy-gtk/empathy-chat-view.c
index 116892b60..e0c75b191 100644
--- a/libempathy-gtk/empathy-chat-view.c
+++ b/libempathy-gtk/empathy-chat-view.c
@@ -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);