aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:24:25 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:24:25 +0800
commitfdd591f3ff497d354ac3ccddee4e204e6968e5ae (patch)
treefe4c26e73f19f960fb111374e6551976c05470a5 /libempathy-gtk/empathy-ui-utils.c
parent05fb3355953415a3d144b3ff7141c3fb830c7752 (diff)
downloadgsoc2013-empathy-fdd591f3ff497d354ac3ccddee4e204e6968e5ae.tar
gsoc2013-empathy-fdd591f3ff497d354ac3ccddee4e204e6968e5ae.tar.gz
gsoc2013-empathy-fdd591f3ff497d354ac3ccddee4e204e6968e5ae.tar.bz2
gsoc2013-empathy-fdd591f3ff497d354ac3ccddee4e204e6968e5ae.tar.lz
gsoc2013-empathy-fdd591f3ff497d354ac3ccddee4e204e6968e5ae.tar.xz
gsoc2013-empathy-fdd591f3ff497d354ac3ccddee4e204e6968e5ae.tar.zst
gsoc2013-empathy-fdd591f3ff497d354ac3ccddee4e204e6968e5ae.zip
Remove useless empathy_text_buffer_tag_set
svn path=/trunk/; revision=1990
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c49
1 files changed, 1 insertions, 48 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index b317671d2..3b9dcbdc6 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1416,54 +1416,6 @@ empathy_toggle_button_set_state_quietly (GtkWidget *widget,
g_signal_handlers_unblock_by_func (widget, callback, user_data);
}
-GtkTextTag *
-empathy_text_buffer_tag_set (GtkTextBuffer *buffer,
- const gchar *tag_name,
- const gchar *first_property_name,
- ...)
-{
- GtkTextTagTable *table;
- GtkTextTag *tag;
-
- g_return_val_if_fail (GTK_IS_TEXT_BUFFER (buffer), NULL);
- g_return_val_if_fail (tag_name != NULL, NULL);
-
- table = gtk_text_buffer_get_tag_table (buffer);
- tag = gtk_text_tag_table_lookup (table, tag_name);
-
- if (!tag) {
- tag = gtk_text_tag_new (tag_name);
- gtk_text_tag_table_add (table, tag);
- g_object_unref (tag);
- } else {
- /* Clear the old values so that we don't affect the new theme. */
- g_object_set (tag,
- "background-set", FALSE,
- "foreground-set", FALSE,
- "invisible-set", FALSE,
- "justification-set", FALSE,
- "paragraph-background-set", FALSE,
- "pixels-above-lines-set", FALSE,
- "pixels-below-lines-set", FALSE,
- "rise-set", FALSE,
- "scale-set", FALSE,
- "size-set", FALSE,
- "style-set", FALSE,
- "weight-set", FALSE,
- NULL);
- }
-
- if (first_property_name) {
- va_list list;
-
- va_start (list, first_property_name);
- g_object_set_valist (G_OBJECT (tag), first_property_name, list);
- va_end (list);
- }
-
- return tag;
-}
-
/* Sending files with the file chooser */
static void
@@ -1537,3 +1489,4 @@ empathy_send_file_with_file_chooser (EmpathyContact *contact)
gtk_widget_show (widget);
}
+