[nautilus] remove gtk_button_set_focus_on_click



commit 6bbf9c0ee8bc272bbf5a37ad1ebac2017adff853
Author: Razvan Chitu <razvan ch95 gmail com>
Date:   Fri Feb 19 11:08:58 2016 +0200

    remove gtk_button_set_focus_on_click
    
    The function is deprecated. Replace it with the parent function
    gtk_widget_set_focus_on_click.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762245

 src/nautilus-notebook.c |    2 +-
 src/nautilus-pathbar.c  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c
index b04254c..9a61e1c 100644
--- a/src/nautilus-notebook.c
+++ b/src/nautilus-notebook.c
@@ -314,7 +314,7 @@ build_tab_label (NautilusNotebook *nb, NautilusWindowSlot *slot)
        gtk_button_set_relief (GTK_BUTTON (close_button),
                               GTK_RELIEF_NONE);
        /* don't allow focus on the close button */
-       gtk_button_set_focus_on_click (GTK_BUTTON (close_button), FALSE);
+       gtk_widget_set_focus_on_click (close_button, FALSE);
 
        gtk_widget_set_name (close_button, "nautilus-tab-close-button");
 
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 20025bc..9eaf3e8 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -210,7 +210,7 @@ get_slider_button (NautilusPathBar  *path_bar,
         gtk_widget_push_composite_child ();
 
         button = gtk_button_new ();
-       gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
+       gtk_widget_set_focus_on_click (button, FALSE);
        gtk_widget_add_events (button, GDK_SCROLL_MASK);
         gtk_container_add (GTK_CONTAINER (button), gtk_arrow_new (arrow_type, GTK_SHADOW_OUT));
         gtk_container_add (GTK_CONTAINER (path_bar), button);
@@ -1808,7 +1808,7 @@ make_button_data (NautilusPathBar  *path_bar,
         button_data->button = gtk_toggle_button_new ();
        gtk_style_context_add_class (gtk_widget_get_style_context (button_data->button),
                                     "text-button");
-       gtk_button_set_focus_on_click (GTK_BUTTON (button_data->button), FALSE);
+       gtk_widget_set_focus_on_click (button_data->button, FALSE);
        gtk_widget_add_events (button_data->button, GDK_SCROLL_MASK);
        /* TODO update button type when xdg directories change */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]