Commit e364ae3e authored by Florian Müllner's avatar Florian Müllner Committed by Matthias Clasen

Use gtk_widget_set_focus_on_click() instead of deprecated setters

https://bugzilla.gnome.org/show_bug.cgi?id=757269
parent 9a29a276
......@@ -9825,7 +9825,7 @@ append_bubble_action (GtkEntry *entry,
GtkWidget *item, *image;
item = gtk_button_new ();
gtk_button_set_focus_on_click (GTK_BUTTON (item), FALSE);
gtk_widget_set_focus_on_click (item, FALSE);
image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
gtk_widget_show (image);
gtk_container_add (GTK_CONTAINER (item), image);
......
......@@ -516,7 +516,7 @@ setup_search (GtkFileChooserDialog *dialog)
GtkWidget *header;
button = gtk_toggle_button_new ();
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
gtk_widget_set_focus_on_click (button, FALSE);
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
image = gtk_image_new_from_icon_name ("edit-find-symbolic", GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (button), image);
......
......@@ -1575,7 +1575,7 @@ make_directory_button (GtkPathBar *path_bar,
button_data->type = find_button_type (path_bar, file);
button_data->button = gtk_toggle_button_new ();
atk_obj = gtk_widget_get_accessible (button_data->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);
switch (button_data->type)
......
......@@ -244,7 +244,7 @@ add_child (GtkWidget *widget,
priv = gtk_stack_switcher_get_instance_private (self);
button = gtk_radio_button_new (NULL);
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
gtk_widget_set_focus_on_click (button, FALSE);
gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (button), FALSE);
update_button (self, widget, button);
......
......@@ -9542,7 +9542,7 @@ append_bubble_action (GtkTextView *text_view,
GtkWidget *item, *image;
item = gtk_button_new ();
gtk_button_set_focus_on_click (GTK_BUTTON (item), FALSE);
gtk_widget_set_focus_on_click (item, FALSE);
image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
gtk_widget_show (image);
gtk_container_add (GTK_CONTAINER (item), image);
......
......@@ -698,7 +698,7 @@ gtk_toolbar_init (GtkToolbar *toolbar)
gtk_button_set_relief (GTK_BUTTON (priv->arrow_button),
get_button_relief (toolbar));
gtk_button_set_focus_on_click (GTK_BUTTON (priv->arrow_button), FALSE);
gtk_widget_set_focus_on_click (priv->arrow_button, FALSE);
priv->arrow = gtk_image_new_from_icon_name ("pan-down-symbolic", GTK_ICON_SIZE_BUTTON);
gtk_widget_set_name (priv->arrow, "gtk-toolbar-arrow");
......
......@@ -352,7 +352,7 @@ gtk_tool_button_init (GtkToolButton *button,
/* create button */
button->priv->button = g_object_new (klass->button_type, NULL);
gtk_button_set_focus_on_click (GTK_BUTTON (button->priv->button), FALSE);
gtk_widget_set_focus_on_click (GTK_WIDGET (button->priv->button), FALSE);
g_signal_connect_object (button->priv->button, "clicked",
G_CALLBACK (button_clicked), button, 0);
......
......@@ -406,7 +406,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
priv->header = gtk_button_new ();
g_object_ref_sink (priv->header);
gtk_button_set_focus_on_click (GTK_BUTTON (priv->header), FALSE);
gtk_widget_set_focus_on_click (priv->header, FALSE);
gtk_container_add (GTK_CONTAINER (priv->header), alignment);
gtk_widget_set_parent (priv->header, GTK_WIDGET (group));
......@@ -2109,8 +2109,7 @@ gtk_tool_item_group_insert (GtkToolItemGroup *group,
child_widget = gtk_bin_get_child (GTK_BIN (item));
if (GTK_IS_BUTTON (child_widget))
gtk_button_set_focus_on_click (GTK_BUTTON (child_widget), TRUE);
gtk_widget_set_focus_on_click (child_widget, TRUE);
gtk_widget_set_parent (GTK_WIDGET (item), GTK_WIDGET (group));
}
......
......@@ -173,7 +173,7 @@ gtk_inspector_window_init (GtkInspectorWindow *iw)
{
button = gtk_button_new_from_icon_name ("find-location-symbolic",
GTK_ICON_SIZE_MENU);
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
gtk_widget_set_focus_on_click (button, FALSE);
gtk_widget_set_halign (button, GTK_ALIGN_START);
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
g_signal_connect (button, "clicked",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment