aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
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
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')
-rw-r--r--libempathy-gtk/empathy-chat-simple-view.c74
-rw-r--r--libempathy-gtk/empathy-chat-view.c16
-rw-r--r--libempathy-gtk/empathy-chat-view.h8
3 files changed, 0 insertions, 98 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;
diff --git a/libempathy-gtk/empathy-chat-view.c b/libempathy-gtk/empathy-chat-view.c
index 0ccffc01a..dbf9cafcb 100644
--- a/libempathy-gtk/empathy-chat-view.c
+++ b/libempathy-gtk/empathy-chat-view.c
@@ -94,22 +94,6 @@ empathy_chat_view_append_event (EmpathyChatView *view,
}
void
-empathy_chat_view_append_button (EmpathyChatView *view,
- const gchar *message,
- GtkWidget *button1,
- GtkWidget *button2)
-{
- g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-
- if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_button) {
- EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_button (view,
- message,
- button1,
- button2);
- }
-}
-
-void
empathy_chat_view_scroll (EmpathyChatView *view,
gboolean allow_scrolling)
{
diff --git a/libempathy-gtk/empathy-chat-view.h b/libempathy-gtk/empathy-chat-view.h
index e4c724e3b..a96b114b2 100644
--- a/libempathy-gtk/empathy-chat-view.h
+++ b/libempathy-gtk/empathy-chat-view.h
@@ -48,10 +48,6 @@ struct _EmpathyChatViewIface {
EmpathyMessage *msg);
void (*append_event) (EmpathyChatView *view,
const gchar *str);
- void (*append_button) (EmpathyChatView *view,
- const gchar *message,
- GtkWidget *button1,
- GtkWidget *button2);
void (*set_margin) (EmpathyChatView *view,
gint margin);
void (*scroll) (EmpathyChatView *view,
@@ -89,10 +85,6 @@ void empathy_chat_view_append_message (EmpathyChatView *view,
EmpathyMessage *msg);
void empathy_chat_view_append_event (EmpathyChatView *view,
const gchar *str);
-void empathy_chat_view_append_button (EmpathyChatView *view,
- const gchar *message,
- GtkWidget *button1,
- GtkWidget *button2);
void empathy_chat_view_scroll (EmpathyChatView *view,
gboolean allow_scrolling);
void empathy_chat_view_scroll_down (EmpathyChatView *view);