summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/notebook.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c
index bdcbacb..5124d7b 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -134,6 +134,7 @@ static void
mq_notebook_init(MqNotebook *notebook)
{
GtkWidget *new_tab_button;
+ GtkWidget *tab_list_button;
notebook->tree = MQ_TAB_TREE(mq_tree_insert_root_allocated(
MQ_TREE(g_new0(MqTabTree, 1)), NULL));
@@ -153,6 +154,14 @@ mq_notebook_init(MqNotebook *notebook)
g_signal_connect(new_tab_button, "clicked",
G_CALLBACK(new_tab_clicked_cb), notebook);
+ tab_list_button = gtk_button_new_from_icon_name("pan-down-symbolic",
+ GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_relief(GTK_BUTTON(tab_list_button), GTK_RELIEF_NONE);
+ gtk_widget_set_tooltip_text(tab_list_button, "Tab list");
+ gtk_notebook_set_action_widget(GTK_NOTEBOOK(notebook), tab_list_button,
+ GTK_PACK_END);
+ gtk_widget_show_all(tab_list_button);
+
g_signal_connect(notebook, "switch-page",
G_CALLBACK(switch_page_cb), NULL);
}