summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-17 13:06:52 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-17 13:06:52 (EDT)
commit0abed21016a32a55653446379d82f22c3a6c0b76 (patch)
tree4c518aaa61b7292723c0887ee4a3634a2b43adc0 /src
parent8437cd78866ed171d9ba50b592b14df5ba7dc6e1 (diff)
downloadmarquee-0abed21016a32a55653446379d82f22c3a6c0b76.zip
marquee-0abed21016a32a55653446379d82f22c3a6c0b76.tar.gz
marquee-0abed21016a32a55653446379d82f22c3a6c0b76.tar.bz2
src/window.c: Ellipsize and expand tab labels
Diffstat (limited to 'src')
-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);