diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-body.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/tab-body.c b/src/tab-body.c index 6084260..d9259bc 100644 --- a/src/tab-body.c +++ b/src/tab-body.c @@ -33,12 +33,17 @@ mq_tab_body_new(gchar *uri) body = malloc(sizeof(*body)); - body->container = gtk_grid_new(); + body->container = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL); + + gtk_paned_pack1(GTK_PANED(body->container), gtk_label_new("Sidebar"), + TRUE, TRUE); body->web_view = WEBKIT_WEB_VIEW(webkit_web_view_new()); webkit_web_view_load_uri(body->web_view, uri); - gtk_grid_attach(GTK_GRID(body->container), GTK_WIDGET(body->web_view), - 1, 0, 1, 1); + gtk_paned_pack2(GTK_PANED(body->container), GTK_WIDGET(body->web_view), + TRUE, TRUE); + + gtk_paned_set_position(GTK_PANED(body->container), 100); return body; } |