summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 07:02:33 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 07:02:33 (EDT)
commitf5bb04660a51569e924df0bde82ce71821edd30d (patch)
treed3834341bba835fa3cca687b36064b00de8a9bf2 /src
parent8f64e939cb722d6b32ee9ef4d0d08d7d1977e7c8 (diff)
downloadmarquee-f5bb04660a51569e924df0bde82ce71821edd30d.zip
marquee-f5bb04660a51569e924df0bde82ce71821edd30d.tar.gz
marquee-f5bb04660a51569e924df0bde82ce71821edd30d.tar.bz2
MqNotebook: Add (non-functional) tab list button
Diffstat (limited to 'src')
-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);
}