From d203c16164255e7824c6394627b1a50ca536a8ab Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 17 Sep 2017 21:57:02 -0400 Subject: src/tab-chrome.c: Use labels on tab history stack switcher Works, but icons would be prettier. --- (limited to 'src/tab-chrome.c') diff --git a/src/tab-chrome.c b/src/tab-chrome.c index e089e9c..c164b5e 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -54,12 +54,13 @@ back_forward_box_button_press_cb(GtkWidget *widget, GdkEvent *event, } stack = gtk_stack_new(); - gtk_stack_add_named(GTK_STACK(stack), gtk_label_new("List"), "list"); - gtk_stack_add_named(GTK_STACK(stack), gtk_label_new("Text"), "text"); + gtk_stack_add_titled(GTK_STACK(stack), gtk_label_new("List"), "list", "LIST"); + gtk_stack_add_titled(GTK_STACK(stack), gtk_label_new("Text"), "text", "TEXT"); stack_switcher = gtk_stack_switcher_new(); gtk_stack_switcher_set_stack(GTK_STACK_SWITCHER(stack_switcher), GTK_STACK(stack)); + /* gtk_box_pack_start(GTK_BOX(stack_switcher), gtk_image_new_from_icon_name("view-list-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR), @@ -68,6 +69,7 @@ back_forward_box_button_press_cb(GtkWidget *widget, GdkEvent *event, gtk_image_new_from_icon_name("edit-select-all-symbolic", GTK_ICON_SIZE_SMALL_TOOLBAR), FALSE, FALSE, 0); + */ box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start(GTK_BOX(box), stack_switcher, TRUE, FALSE, 0); -- cgit v0.9.1