diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-19 03:47:57 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-19 03:47:57 (EDT) |
commit | 2ad6e3a956a674a62cd477e8320e4fdb98b92ff0 (patch) | |
tree | 61006f89a0615e2fe6599bc97dfb83f4a4219b2f /src | |
parent | d9b7863c45c8e763f1dbb7f13f5a9caa400b296a (diff) | |
download | marquee-2ad6e3a956a674a62cd477e8320e4fdb98b92ff0.zip marquee-2ad6e3a956a674a62cd477e8320e4fdb98b92ff0.tar.gz marquee-2ad6e3a956a674a62cd477e8320e4fdb98b92ff0.tar.bz2 |
src/window.c: Rearrange tab label code statements
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c index 17e2d1b..5c903c2 100644 --- a/src/window.c +++ b/src/window.c @@ -29,22 +29,24 @@ static void add_tab(MqWindow *window, gchar *uri, gint position) { - GtkWidget *tab_label; GtkWidget *tab_label_image; GtkWidget *tab_label_label; + GtkWidget *tab_label; MqTab *tab; GtkWidget *tab_widget; - tab_label = gtk_grid_new(); tab_label_image = gtk_image_new_from_icon_name("text-x-generic", GTK_ICON_SIZE_BUTTON); - 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_widget_set_size_request(tab_label_label, 50, 1); + + tab_label = gtk_grid_new(); + gtk_grid_attach(GTK_GRID(tab_label), tab_label_image, + 0, 0, 1, 1); gtk_grid_attach(GTK_GRID(tab_label), tab_label_label, 1, 0, 1, 1); gtk_widget_show_all(tab_label); |