aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat-simple-view.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:23:55 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:23:55 +0800
commite8032530b2520ad3c700c404f2822bd406100552 (patch)
treef2bae0896f524138276c4a724cf7ec1dc246bc05 /libempathy-gtk/empathy-chat-simple-view.c
parent154eb38cf48362d75685f2336c1a779d3650fed0 (diff)
downloadgsoc2013-empathy-e8032530b2520ad3c700c404f2822bd406100552.tar
gsoc2013-empathy-e8032530b2520ad3c700c404f2822bd406100552.tar.gz
gsoc2013-empathy-e8032530b2520ad3c700c404f2822bd406100552.tar.bz2
gsoc2013-empathy-e8032530b2520ad3c700c404f2822bd406100552.tar.lz
gsoc2013-empathy-e8032530b2520ad3c700c404f2822bd406100552.tar.xz
gsoc2013-empathy-e8032530b2520ad3c700c404f2822bd406100552.tar.zst
gsoc2013-empathy-e8032530b2520ad3c700c404f2822bd406100552.zip
Remove _append_button since it's not used
svn path=/trunk/; revision=1983
Diffstat (limited to 'libempathy-gtk/empathy-chat-simple-view.c')
-rw-r--r--libempathy-gtk/empathy-chat-simple-view.c74
1 files changed, 0 insertions, 74 deletions
diff --git a/libempathy-gtk/empathy-chat-simple-view.c b/libempathy-gtk/empathy-chat-simple-view.c
index fca35c957..13cce79b4 100644
--- a/libempathy-gtk/empathy-chat-simple-view.c
+++ b/libempathy-gtk/empathy-chat-simple-view.c
@@ -730,79 +730,6 @@ chat_simple_view_append_event (EmpathyChatView *view,
}
static void
-chat_simple_view_append_button (EmpathyChatView *view,
- const gchar *message,
- GtkWidget *button1,
- GtkWidget *button2)
-{
- EmpathyChatSimpleViewPriv *priv;
- GtkTextChildAnchor *anchor;
- GtkTextIter iter;
- gboolean bottom;
- const gchar *tag;
-
- g_return_if_fail (EMPATHY_IS_CHAT_SIMPLE_VIEW (view));
- g_return_if_fail (button1 != NULL);
-
- priv = GET_PRIV (view);
-
- tag = "invite";
-
- bottom = chat_view_is_scrolled_down (EMPATHY_CHAT_SIMPLE_VIEW (view));
-
- empathy_theme_append_timestamp (priv->theme, EMPATHY_CHAT_VIEW(view), NULL, TRUE, TRUE);
-
- if (message) {
- empathy_theme_append_text (priv->theme, EMPATHY_CHAT_VIEW(view), message, tag, NULL);
- }
-
- gtk_text_buffer_get_end_iter (priv->buffer, &iter);
-
- anchor = gtk_text_buffer_create_child_anchor (priv->buffer, &iter);
- gtk_text_view_add_child_at_anchor (GTK_TEXT_VIEW (view), button1, anchor);
- gtk_widget_show (button1);
-
- gtk_text_buffer_insert_with_tags_by_name (priv->buffer,
- &iter,
- " ",
- 1,
- tag,
- NULL);
-
- if (button2) {
- gtk_text_buffer_get_end_iter (priv->buffer, &iter);
-
- anchor = gtk_text_buffer_create_child_anchor (priv->buffer, &iter);
- gtk_text_view_add_child_at_anchor (GTK_TEXT_VIEW (view), button2, anchor);
- gtk_widget_show (button2);
-
- gtk_text_buffer_insert_with_tags_by_name (priv->buffer,
- &iter,
- " ",
- 1,
- tag,
- NULL);
- }
-
- gtk_text_buffer_get_end_iter (priv->buffer, &iter);
- gtk_text_buffer_insert_with_tags_by_name (priv->buffer,
- &iter,
- "\n\n",
- 2,
- tag,
- NULL);
-
- if (bottom) {
- chat_simple_view_scroll_down (EMPATHY_CHAT_VIEW(view));
- }
-
- if (priv->last_contact) {
- g_object_unref (priv->last_contact);
- priv->last_contact = NULL;
- }
-}
-
-static void
chat_simple_view_scroll (EmpathyChatView *view,
gboolean allow_scrolling)
{
@@ -1293,7 +1220,6 @@ chat_view_iface_init (EmpathyChatViewIface *iface)
{
iface->append_message = chat_simple_view_append_message;
iface->append_event = chat_simple_view_append_event;
- iface->append_button = chat_simple_view_append_button;
iface->set_margin = chat_simple_view_set_margin;
iface->scroll = chat_simple_view_scroll;
iface->scroll_down = chat_simple_view_scroll_down;