Nicolò Chieffo wrote: > I've already tried unsuccessfully using > gtk_text_view_add_child_in_window, but nothing appears.
The attached patch vaguely works for me, although it doesn't deal well with the box resizing or scrolling very well. Maybe you didn't show() the child widget? -- Will
From b86a6f36bdbd137aa035936790436ee0be89287a Mon Sep 17 00:00:00 2001 From: Will Thompson <will.thomp...@collabora.co.uk> Date: Thu, 18 Jun 2009 12:30:36 +0100 Subject: [PATCH] Add a misc widget to the RHS of the input box --- libempathy-gtk/empathy-chat.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index c3fc794..225967a 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -1442,6 +1442,13 @@ chat_create_ui (EmpathyChat *chat) chat->input_text_view); gtk_widget_show (chat->input_text_view); + { + GtkWidget *l = gtk_label_new ("sup"); + gtk_text_view_set_border_window_size (GTK_TEXT_VIEW (chat->input_text_view), GTK_TEXT_WINDOW_RIGHT, 30); + gtk_text_view_add_child_in_window (GTK_TEXT_VIEW (chat->input_text_view), l, GTK_TEXT_WINDOW_RIGHT, 0, 0); + gtk_widget_show (l); + } + /* Create contact list */ chat_set_show_contacts (chat, priv->remote_contact == NULL); -- 1.6.3.1
signature.asc
Description: OpenPGP digital signature
_______________________________________________ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy