allow main window to be resized smaller

Certain views/widgets were preventing the ability to resize the
main window to a smaller size. They have either been placed in
resizable containers (GtkScrolledWindow or GtkPaned) or their
properties have been modified such that they can be shrunk.

The account view has also been made to look more consistent with
the rest of the application as a result.

The main window has also been given a bigger default size, since
the previous size was forced by certain widgets.

Change-Id: Id8ee182becb1bee58a9fbf66236d795df54fc0f5
Tuleap: #348
diff --git a/src/mediasettingsview.cpp b/src/mediasettingsview.cpp
index 3d8fe01..dc08193 100644
--- a/src/mediasettingsview.cpp
+++ b/src/mediasettingsview.cpp
@@ -34,12 +34,12 @@
 
 struct _MediaSettingsView
 {
-    GtkBox parent;
+    GtkScrolledWindow parent;
 };
 
 struct _MediaSettingsViewClass
 {
-    GtkBoxClass parent_class;
+    GtkScrolledWindowClass parent_class;
 };
 
 typedef struct _MediaSettingsViewPrivate MediaSettingsViewPrivate;
@@ -78,7 +78,7 @@
     QMetaObject::Connection rate_selection;
 };
 
-G_DEFINE_TYPE_WITH_PRIVATE(MediaSettingsView, media_settings_view, GTK_TYPE_BOX);
+G_DEFINE_TYPE_WITH_PRIVATE(MediaSettingsView, media_settings_view, GTK_TYPE_SCROLLED_WINDOW);
 
 #define MEDIA_SETTINGS_VIEW_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), MEDIA_SETTINGS_VIEW_TYPE, MediaSettingsViewPrivate))
 
@@ -142,6 +142,7 @@
     gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(box), renderer, FALSE);
     gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(box), renderer,
                                    "text", 0, NULL);
+    g_object_set(G_OBJECT(renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
 
     /* connect signals to and from the selection model */
     connection = QObject::connect(