diff options
Diffstat (limited to 'src')
-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); } |