summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-22 01:32:12 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-22 01:32:12 (EDT)
commitc5ec2c6c37ca5a9548957312d08edc493d512411 (patch)
tree0b6424bcae94351d0c3de6eac3707b415d4c5eb7
parent62253b54c4cbab28e4f47facfbbb810e2372c61a (diff)
downloadmarquee-c5ec2c6c37ca5a9548957312d08edc493d512411.zip
marquee-c5ec2c6c37ca5a9548957312d08edc493d512411.tar.gz
marquee-c5ec2c6c37ca5a9548957312d08edc493d512411.tar.bz2
MqTab: Convert tab page container from grid to box
-rw-r--r--src/tab.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/tab.c b/src/tab.c
index 88e0921..2c1ba65 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -95,13 +95,11 @@ mq_tab_new(gchar *uri)
G_CALLBACK(title_cb), tab);
mq_tab_chrome_set_web_view(tab->chrome, tab->web_view);
- tab->container = gtk_grid_new();
- gtk_grid_attach(GTK_GRID(tab->container),
- mq_tab_chrome_get_container(tab->chrome),
- 0, 0, 1, 1);
- gtk_grid_attach(GTK_GRID(tab->container),
- mq_tab_body_get_container(tab->body),
- 0, 1, 1, 1);
+ tab->container = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
+ gtk_box_pack_start(GTK_BOX(tab->container),
+ mq_tab_chrome_get_container(tab->chrome), FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(tab->container),
+ mq_tab_body_get_container(tab->body), TRUE, TRUE, 0);
return tab;
}