summaryrefslogtreecommitdiff
path: root/gtk/gtkpasswordentry.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-10-15 15:34:16 +0200
committerBenjamin Otte <otte@redhat.com>2019-10-15 16:33:05 +0200
commit427deb4f13fbe8b9ef437edf113162f9219c4a54 (patch)
treecb95e6893ddc5e92cbab90c26d22769f5ea9ca0c /gtk/gtkpasswordentry.c
parenta1a70a1130a45a00767bddb000d550eca23ec3c4 (diff)
downloadgtk+-427deb4f13fbe8b9ef437edf113162f9219c4a54.tar.gz
widget: Make gtk_widget_grab_focus() return a boolean
So now it can actually fail. It doesn't yet though.
Diffstat (limited to 'gtk/gtkpasswordentry.c')
-rw-r--r--gtk/gtkpasswordentry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c
index d8ed6a90e8..99717faf37 100644
--- a/gtk/gtkpasswordentry.c
+++ b/gtk/gtkpasswordentry.c
@@ -346,13 +346,13 @@ gtk_password_entry_get_accessible (GtkWidget *widget)
return atk_obj;
}
-static void
+static gboolean
gtk_password_entry_grab_focus (GtkWidget *widget)
{
GtkPasswordEntry *entry = GTK_PASSWORD_ENTRY (widget);
GtkPasswordEntryPrivate *priv = gtk_password_entry_get_instance_private (entry);
- gtk_widget_grab_focus (priv->entry);
+ return gtk_widget_grab_focus (priv->entry);
}
static gboolean