aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-chat-view.c')
-rw-r--r--libempathy-gtk/empathy-chat-view.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/libempathy-gtk/empathy-chat-view.c b/libempathy-gtk/empathy-chat-view.c
index f38ab1750..25c1721a4 100644
--- a/libempathy-gtk/empathy-chat-view.c
+++ b/libempathy-gtk/empathy-chat-view.c
@@ -259,52 +259,3 @@ empathy_chat_view_get_last_contact (EmpathyChatView *view)
return NULL;
}
-GtkWidget *
-empathy_chat_view_get_smiley_menu (GCallback callback,
- gpointer user_data)
-{
- EmpathySmileyManager *smiley_manager;
- GSList *smileys, *l;
- GtkWidget *menu;
- gint x = 0;
- gint y = 0;
-
- g_return_val_if_fail (callback != NULL, NULL);
-
- menu = gtk_menu_new ();
-
- smiley_manager = empathy_smiley_manager_new ();
- smileys = empathy_smiley_manager_get_all (smiley_manager);
- for (l = smileys; l; l = l->next) {
- EmpathySmiley *smiley;
- GtkWidget *item;
- GtkWidget *image;
-
- smiley = l->data;
- image = gtk_image_new_from_pixbuf (smiley->pixbuf);
-
- item = gtk_image_menu_item_new_with_label ("");
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
-
- gtk_menu_attach (GTK_MENU (menu), item,
- x, x + 1, y, y + 1);
-
- gtk_widget_set_tooltip_text (item, smiley->str);
-
- g_object_set_data (G_OBJECT (item), "smiley_text", smiley->str);
- g_signal_connect (item, "activate", callback, user_data);
-
- if (x > 3) {
- y++;
- x = 0;
- } else {
- x++;
- }
- }
- g_object_unref (smiley_manager);
-
- gtk_widget_show_all (menu);
-
- return menu;
-}
-