From 0abed21016a32a55653446379d82f22c3a6c0b76 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 17 Sep 2017 13:06:52 -0400 Subject: src/window.c: Ellipsize and expand tab labels --- (limited to 'src/window.c') 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); -- cgit v0.9.1