From b6df62a0e89479cd8f132da37fe76137827247f7 Mon Sep 17 00:00:00 2001 From: Andre Miranda <andreldm@xfce.org> Date: Sat, 2 Jun 2018 01:48:31 -0300 Subject: [PATCH] Replace gtk_button_set_focus_on_click --- thunar/thunar-history-action.c | 2 +- thunar/thunar-window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thunar/thunar-history-action.c b/thunar/thunar-history-action.c index 30e451c63..5f2baab5e 100644 --- a/thunar/thunar-history-action.c +++ b/thunar/thunar-history-action.c @@ -260,7 +260,7 @@ thunar_history_action_create_tool_item (GtkAction *action) gtk_container_add (GTK_CONTAINER (tool_item), button); gtk_button_set_relief (GTK_BUTTON (button), gtk_tool_item_get_relief_style (GTK_TOOL_ITEM (tool_item))); - gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE); + gtk_widget_set_focus_on_click (button, FALSE); gtk_widget_show (button); G_GNUC_BEGIN_IGNORE_DEPRECATIONS diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c index 197ab8b69..25ff9cd23 100644 --- a/thunar/thunar-window.c +++ b/thunar/thunar-window.c @@ -1827,7 +1827,7 @@ thunar_window_notebook_insert (ThunarWindow *window, button = gtk_button_new (); gtk_box_pack_start (GTK_BOX (label_box), button, FALSE, FALSE, 0); gtk_widget_set_can_default (button, FALSE); - gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE); + gtk_widget_set_focus_on_click (button, FALSE); gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE); gtk_widget_set_tooltip_text (button, _("Close tab")); g_signal_connect_swapped (G_OBJECT (button), "clicked", G_CALLBACK (gtk_widget_destroy), view); -- GitLab