[empathy/gnome-2-34] call-window: Put the details vbox in a scroll window



commit 99706ebbfea4df20a95d7e8cfdc13d33eaf4c8b8
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Mar 16 11:17:02 2011 +0100

    call-window: Put the details vbox in a scroll window

 src/empathy-call-window.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 282e0f9..e5008f1 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1008,6 +1008,7 @@ empathy_call_window_init (EmpathyCallWindow *self)
   GtkWidget *arrow;
   GtkWidget *page;
   gchar *filename;
+  GtkWidget *scroll;
 
   priv = self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
     EMPATHY_TYPE_CALL_WINDOW, EmpathyCallWindowPriv);
@@ -1148,8 +1149,14 @@ empathy_call_window_init (EmpathyCallWindow *self)
 
   gtk_widget_set_sensitive (priv->dtmf_panel, FALSE);
 
-  empathy_sidebar_add_page (EMPATHY_SIDEBAR (priv->sidebar),
-      _("Details"), priv->details_vbox);
+  /* Put the details vbox in a scroll window as it can require a lot of
+   * horizontal space. */
+  scroll = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scroll),
+      priv->details_vbox);
+
+  empathy_sidebar_add_page (EMPATHY_SIDEBAR (priv->sidebar), _("Details"),
+    scroll);
 
   gtk_widget_show_all (top_vbox);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]