diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-06-21 00:27:06 +0800 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-07-10 20:13:24 +0800 |
commit | 7deb4ea20b08eab10473f2620c90f6b896d5af10 (patch) | |
tree | 0658af67eae180a741bd65a3e92ffe92e8faf497 /src/empathy-chat-window.c | |
parent | fb43069972c8eccefcf1beb28251d1ed23c4a20c (diff) | |
download | gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.gz gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.bz2 gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.lz gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.xz gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.tar.zst gsoc2013-empathy-7deb4ea20b08eab10473f2620c90f6b896d5af10.zip |
Use accessor functions instead direct access (Fixes #586476)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r-- | src/empathy-chat-window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index f9d0b924a..7bc64bb08 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -176,7 +176,7 @@ chat_tab_style_set_cb (GtkWidget *hbox, "chat-window-tab-close-button"); context = gtk_widget_get_pango_context (hbox); - metrics = pango_context_get_metrics (context, hbox->style->font_desc, + metrics = pango_context_get_metrics (context, gtk_widget_get_style (hbox)->font_desc, pango_context_get_language (context)); char_width = pango_font_metrics_get_approximate_char_width (metrics); pango_font_metrics_unref (metrics); @@ -1242,7 +1242,7 @@ chat_window_drag_data_received (GtkWidget *widget, const gchar *account_id; const gchar *contact_id; - id = (const gchar*) selection->data; + id = (const gchar*) gtk_selection_data_get_data (selection); account_manager = empathy_account_manager_dup_singleton (); DEBUG ("DND contact from roster with id:'%s'", id); @@ -1299,7 +1299,7 @@ chat_window_drag_data_received (GtkWidget *widget, DEBUG ("DND tab"); - chat = (void *) selection->data; + chat = (void *) gtk_selection_data_get_data (selection); old_window = chat_window_find_chat (*chat); if (old_window) { |