diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-16 18:07:05 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-16 18:07:05 (EDT) |
commit | 6431619506fb8916977831d330813ba614b0bda5 (patch) | |
tree | 08eacebaf28ea91cf29b0fa9abd404ffe129c35a /src | |
parent | 4572ba9c5b4b97782f3ecc6806185febadbc34ea (diff) | |
download | marquee-6431619506fb8916977831d330813ba614b0bda5.zip marquee-6431619506fb8916977831d330813ba614b0bda5.tar.gz marquee-6431619506fb8916977831d330813ba614b0bda5.tar.bz2 |
mq_tab_body_new(): Use GtkPaned
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; } |