summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-03-29 23:38:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-03-29 23:39:54 -0400
commitde31bb59a19655e87c931e2104afeab72737c439 (patch)
treeaf6a9b8e0012bac1df72506a2e27d2b0a7cb08f0
parent07bb29153b588cb611df0162fbda36dacf434661 (diff)
downloadgtk+-de31bb59a19655e87c931e2104afeab72737c439.tar.gz
window: Remove initial-focus leftovers
We removed the way to set initial_focus a year ago, time to get rid of the leftovers.
-rw-r--r--gtk/gtkwindow.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b6f90ca794..7f1ec9e020 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -175,7 +175,6 @@ typedef struct
{
GtkWidget *attach_widget;
GtkWidget *default_widget;
- GtkWidget *initial_focus;
GtkWidget *focus_widget;
GtkWindow *transient_parent;
GtkWindowGeometryInfo *geometry_info;
@@ -2343,10 +2342,7 @@ gtk_window_get_focus (GtkWindow *window)
g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
- if (priv->initial_focus)
- return priv->initial_focus;
- else
- return priv->focus_widget;
+ return priv->focus_widget;
}
static void
@@ -4156,12 +4152,7 @@ gtk_window_show (GtkWidget *widget)
gtk_widget_map (widget);
if (!priv->focus_widget)
- {
- if (priv->initial_focus)
- gtk_window_set_focus (window, priv->initial_focus);
- else
- gtk_window_move_focus (widget, GTK_DIR_TAB_FORWARD);
- }
+ gtk_window_move_focus (widget, GTK_DIR_TAB_FORWARD);
if (priv->modal)
gtk_grab_add (widget);