summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-13 17:15:39 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-13 17:15:39 (EST)
commit9359183dda9e3f6d854fe60c27c62d9b69e71496 (patch)
tree90dc950ee1fc523d7e0ea0595c9b24cbe1892efb
parent8f84f949d3fb68402610f85fff283276ddb87205 (diff)
downloadmarquee-9359183dda9e3f6d854fe60c27c62d9b69e71496.zip
marquee-9359183dda9e3f6d854fe60c27c62d9b69e71496.tar.gz
marquee-9359183dda9e3f6d854fe60c27c62d9b69e71496.tar.bz2
MqNotebook: Disable focus on new tab and tab list buttons
-rw-r--r--src/notebook.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 0edd0d0..4919b0c 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -263,6 +263,7 @@ mq_notebook_init(MqNotebook *notebook)
new_tab_button = gtk_button_new_from_icon_name("tab-new-symbolic",
GTK_ICON_SIZE_BUTTON);
gtk_button_set_relief(GTK_BUTTON(new_tab_button), GTK_RELIEF_NONE);
+ gtk_widget_set_can_focus(new_tab_button, FALSE);
gtk_widget_set_tooltip_text(new_tab_button, "New tab");
gtk_notebook_set_action_widget(GTK_NOTEBOOK(notebook), new_tab_button,
GTK_PACK_START);
@@ -273,6 +274,7 @@ mq_notebook_init(MqNotebook *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_can_focus(tab_list_button, FALSE);
gtk_widget_set_tooltip_text(tab_list_button, "Tab list");
gtk_notebook_set_action_widget(GTK_NOTEBOOK(notebook), tab_list_button,
GTK_PACK_END);