diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-22 01:29:51 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-22 01:29:51 (EDT) |
commit | 62253b54c4cbab28e4f47facfbbb810e2372c61a (patch) | |
tree | 5e9de053e17fe9a2e59920dea7a0ff1b868daf40 | |
parent | 06795d8cd18df331305f4874213591ff2cf4ee4c (diff) | |
download | marquee-62253b54c4cbab28e4f47facfbbb810e2372c61a.zip marquee-62253b54c4cbab28e4f47facfbbb810e2372c61a.tar.gz marquee-62253b54c4cbab28e4f47facfbbb810e2372c61a.tar.bz2 |
MqTab: Convert tab label container from grid to box
-rw-r--r-- | src/tab.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -39,13 +39,11 @@ mq_tab_populate_tab(MqTab *tab) gtk_widget_set_hexpand(tab->tab_label, TRUE); gtk_widget_set_size_request(tab->tab_label, 50, 1); - tab->tab = gtk_grid_new(); - gtk_grid_attach(GTK_GRID(tab->tab), tab->tab_image, - 0, 0, 1, 1); - gtk_grid_attach(GTK_GRID(tab->tab), tab->tab_label, - 1, 0, 1, 1); - gtk_grid_attach(GTK_GRID(tab->tab), gtk_button_new_from_icon_name( - "window-close", GTK_ICON_SIZE_BUTTON), 2, 0, 1, 1); + tab->tab = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); + gtk_box_pack_start(GTK_BOX(tab->tab), tab->tab_image, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(tab->tab), tab->tab_label, TRUE, TRUE, 0); + gtk_box_pack_start(GTK_BOX(tab->tab), gtk_button_new_from_icon_name( + "window-close", GTK_ICON_SIZE_BUTTON), FALSE, FALSE, 0); gtk_widget_show_all(tab->tab); } |