summaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 0559186..77e0337 100644
--- a/src/window.c
+++ b/src/window.c
@@ -41,6 +41,9 @@ add_tab(MqWindow *window, gchar *uri, gint position)
gtk_grid_attach(GTK_GRID(tab_label), tab_label_image,
0, 0, 1, 1);
tab_label_label = gtk_label_new("New tab");
+ gtk_label_set_ellipsize(GTK_LABEL(tab_label_label),
+ PANGO_ELLIPSIZE_END);
+ gtk_widget_set_hexpand(tab_label_label, TRUE);
gtk_grid_attach(GTK_GRID(tab_label), tab_label_label,
1, 0, 1, 1);
gtk_widget_show_all(tab_label);