[empathy: 1/2] streamed-media-window: Put the details vbox in a scroll window



commit 2220cb934612b293018e364ae22f1229f1023e0e
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Mar 16 09:54:14 2011 +0100

    streamed-media-window: Put the details vbox in a scroll window
    
    It can require a lot of horizontal space and we don't want to enlarge the call
    window just for that (#644830).

 src/empathy-streamed-media-window.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-streamed-media-window.c b/src/empathy-streamed-media-window.c
index 3d02245..390e2dd 100644
--- a/src/empathy-streamed-media-window.c
+++ b/src/empathy-streamed-media-window.c
@@ -1038,6 +1038,7 @@ empathy_streamed_media_window_init (EmpathyStreamedMediaWindow *self)
   gchar *filename;
   GKeyFile *keyfile;
   GError *error = NULL;
+  GtkWidget *scroll;
 
   filename = empathy_file_lookup ("empathy-call-window.ui", "src");
   gui = empathy_builder_get_file (filename,
@@ -1194,8 +1195,14 @@ empathy_streamed_media_window_init (EmpathyStreamedMediaWindow *self)
 
   gtk_widget_set_sensitive (priv->dtmf_panel, FALSE);
 
+  /* 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);
+
   ev_sidebar_add_page (EV_SIDEBAR (priv->sidebar), "details",
-      _("Details"), priv->details_vbox);
+      _("Details"), scroll);
 
   gtk_widget_show_all (top_vbox);
 



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