summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-04-28 19:15:11 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-04-28 23:20:13 +0000
commit65052a5d6cd2a4d4c4e625e4732aa2c93625ad53 (patch)
treed115b1297ced30f0b735427a3a10f91fad21c20d /gtk/gtkwindow.c
parent1364eb2f628d7a1c3ba0fe126bc24a60577c92bb (diff)
downloadgtk+-65052a5d6cd2a4d4c4e625e4732aa2c93625ad53.tar.gz
Rename gtk_window_set_default
Call it gtk_window_set_default_widget, to match the getter, and the property name. Update all callers.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 7ed87238da..fd009aa832 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2529,7 +2529,7 @@ gtk_window_set_startup_id (GtkWindow *window,
}
/**
- * gtk_window_set_default:
+ * gtk_window_set_default_widget:
* @window: a #GtkWindow
* @default_widget: (allow-none): widget to be the default, or %NULL
* to unset the default widget for the toplevel
@@ -2543,8 +2543,8 @@ gtk_window_set_startup_id (GtkWindow *window,
* the widget you’d like to make the default.
*/
void
-gtk_window_set_default (GtkWindow *window,
- GtkWidget *default_widget)
+gtk_window_set_default_widget (GtkWindow *window,
+ GtkWidget *default_widget)
{
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
@@ -3046,7 +3046,7 @@ gtk_window_dispose (GObject *object)
priv->foci = NULL;
gtk_window_set_focus (window, NULL);
- gtk_window_set_default (window, NULL);
+ gtk_window_set_default_widget (window, NULL);
remove_attach_widget (window);
G_OBJECT_CLASS (gtk_window_parent_class)->dispose (object);
@@ -6618,7 +6618,7 @@ _gtk_window_unset_focus_and_default (GtkWindow *window,
child = _gtk_widget_get_parent (child);
if (child == widget)
- gtk_window_set_default (window, NULL);
+ gtk_window_set_default_widget (window, NULL);
g_object_unref (widget);
g_object_unref (window);