summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-18 19:09:14 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-18 19:09:14 (EDT)
commit8274a5496d0c62a7f9b240523757be2340674c89 (patch)
treecd5451ebb1acac8e8221d5d8ba341f152f0c9c5f /src
parenta015433bb66697c11c2163ab3e0cca7bdb00d0fe (diff)
downloadmarquee-8274a5496d0c62a7f9b240523757be2340674c89.zip
marquee-8274a5496d0c62a7f9b240523757be2340674c89.tar.gz
marquee-8274a5496d0c62a7f9b240523757be2340674c89.tar.bz2
src/tab-chrome.c: Add back/forward icons to tab history list
Diffstat (limited to 'src')
-rw-r--r--src/tab-chrome.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index 2d8fb8f..5331d34 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -57,6 +57,7 @@ back_forward_box_button_press_cb(GtkWidget *widget, GdkEvent *event,
WebKitBackForwardList *back_forward_list;
GtkWidget *list_box;
GList *list_item;
+ GtkWidget *list_item_box;
GtkWidget *stack;
GtkWidget *toggle_button;
GtkWidget *box;
@@ -84,17 +85,27 @@ back_forward_box_button_press_cb(GtkWidget *widget, GdkEvent *event,
list_item = webkit_back_forward_list_get_back_list(
back_forward_list);
for (; list_item; list_item = list_item->next) {
- gtk_list_box_insert(GTK_LIST_BOX(list_box), gtk_label_new(
+ list_item_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_box_pack_start(GTK_BOX(list_item_box),
+ gtk_image_new_from_icon_name("go-previous",
+ GTK_ICON_SIZE_BUTTON), FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(list_item_box), gtk_label_new(
webkit_back_forward_list_item_get_title(
- list_item->data)), 0);
+ list_item->data)), TRUE, TRUE, 0);
+ gtk_list_box_insert(GTK_LIST_BOX(list_box), list_item_box, 0);
}
list_item = webkit_back_forward_list_get_forward_list(
back_forward_list);
for (; list_item; list_item = list_item->next) {
- gtk_list_box_insert(GTK_LIST_BOX(list_box), gtk_label_new(
+ list_item_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_box_pack_start(GTK_BOX(list_item_box),
+ gtk_image_new_from_icon_name("go-next",
+ GTK_ICON_SIZE_BUTTON), FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(list_item_box), gtk_label_new(
webkit_back_forward_list_item_get_title(
- list_item->data)), -1);
+ list_item->data)), TRUE, TRUE, 0);
+ gtk_list_box_insert(GTK_LIST_BOX(list_box), list_item_box, -1);
}
stack = gtk_stack_new();