diff options
author | Gabriel Millaire <millaire.gabriel@gmail.com> | 2009-07-02 01:17:00 +0800 |
---|---|---|
committer | Gabriel Millaire <gabriel.millaire@collabora.co.uk> | 2009-10-01 02:14:10 +0800 |
commit | 3f4adb1dc22d89c35b56ea5fa99a5976cfc101bb (patch) | |
tree | c17c455dd3d0284bc5081157e372716dd8fe69f9 /libempathy-gtk/empathy-theme-boxes.c | |
parent | d038bcbb47ea96e4c128f85f64897d557ea380b9 (diff) | |
download | gsoc2013-empathy-3f4adb1dc22d89c35b56ea5fa99a5976cfc101bb.tar gsoc2013-empathy-3f4adb1dc22d89c35b56ea5fa99a5976cfc101bb.tar.gz gsoc2013-empathy-3f4adb1dc22d89c35b56ea5fa99a5976cfc101bb.tar.bz2 gsoc2013-empathy-3f4adb1dc22d89c35b56ea5fa99a5976cfc101bb.tar.lz gsoc2013-empathy-3f4adb1dc22d89c35b56ea5fa99a5976cfc101bb.tar.xz gsoc2013-empathy-3f4adb1dc22d89c35b56ea5fa99a5976cfc101bb.tar.zst gsoc2013-empathy-3f4adb1dc22d89c35b56ea5fa99a5976cfc101bb.zip |
Fix copy clipboard to show smileys and to show name and time when using themes other than Classic
Adds an association string to hbox for name and time in themes, adds an association string to pixbuf smiley
Diffstat (limited to 'libempathy-gtk/empathy-theme-boxes.c')
-rw-r--r-- | libempathy-gtk/empathy-theme-boxes.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-theme-boxes.c b/libempathy-gtk/empathy-theme-boxes.c index f5224278c..0c989ba11 100644 --- a/libempathy-gtk/empathy-theme-boxes.c +++ b/libempathy-gtk/empathy-theme-boxes.c @@ -199,6 +199,7 @@ theme_boxes_maybe_append_header (EmpathyThemeBoxes *theme, gboolean color_set; GtkTextTagTable *table; GtkTextTag *tag; + GString *str_obj; contact = empathy_message_get_sender (msg); name = empathy_contact_get_name (contact); @@ -267,6 +268,12 @@ theme_boxes_maybe_append_header (EmpathyThemeBoxes *theme, "use-markup", TRUE, "xalign", 1.0, NULL); + + str_obj = g_string_new ("\n- "); + str_obj = g_string_append (str_obj, name); + str_obj = g_string_append (str_obj, ", "); + str_obj = g_string_append (str_obj, tmp); + str_obj = g_string_append (str_obj, " -"); g_free (tmp); g_free (str); @@ -290,6 +297,10 @@ theme_boxes_maybe_append_header (EmpathyThemeBoxes *theme, gtk_box_pack_start (GTK_BOX (box), label2, TRUE, TRUE, 0); /* Add the header box to the text view */ + g_object_set_data_full (G_OBJECT (box), + "str_obj", + g_string_free (str_obj, FALSE), + g_free); gtk_text_view_add_child_at_anchor (GTK_TEXT_VIEW (view), box, anchor); |