From 71390a4e44a71bb8c9b03cb1b166dc835b7347c5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 14 Nov 2017 12:03:21 -0500 Subject: MqBackForwardButtonBox: Disable focus on back and forward buttons --- (limited to 'src') diff --git a/src/toolbars/navigation/back-forward-button-box.c b/src/toolbars/navigation/back-forward-button-box.c index 9c55919..974403a 100644 --- a/src/toolbars/navigation/back-forward-button-box.c +++ b/src/toolbars/navigation/back-forward-button-box.c @@ -406,6 +406,8 @@ mq_back_forward_button_box_init(MqBackForwardButtonBox *back_forward_button_box) /* Back button */ back_forward_button_box->back_button = gtk_button_new_from_icon_name( "go-previous", GTK_ICON_SIZE_SMALL_TOOLBAR); + gtk_widget_set_can_focus(back_forward_button_box->back_button, + FALSE); gtk_widget_set_tooltip_text(back_forward_button_box->back_button, "Go back one page"); g_signal_connect(back_forward_button_box->back_button, "clicked", @@ -414,6 +416,8 @@ mq_back_forward_button_box_init(MqBackForwardButtonBox *back_forward_button_box) /* Forward button */ back_forward_button_box->forward_button = gtk_button_new_from_icon_name( "go-next", GTK_ICON_SIZE_SMALL_TOOLBAR); + gtk_widget_set_can_focus(back_forward_button_box->forward_button, + FALSE); gtk_widget_set_tooltip_text(back_forward_button_box->forward_button, "Go forward one page"); g_signal_connect(back_forward_button_box->forward_button, "clicked", -- cgit v0.9.1