[gnome-boxes] unattended-installer: Use correct API for grabbing focus
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] unattended-installer: Use correct API for grabbing focus
- Date: Mon, 15 Apr 2013 17:37:44 +0000 (UTC)
commit 5bbb1392f8bf91e16af7cb0156603d1642dda44f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Apr 11 02:56:39 2013 +0300
unattended-installer: Use correct API for grabbing focus
Gtk.Widget.is_focus is not for grabbing focus but dictates whether the
widget is the focus widget within the toplevel or not.
https://bugzilla.gnome.org/show_bug.cgi?id=664218
src/unattended-installer.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/unattended-installer.vala b/src/unattended-installer.vala
index 9b939ba..0b49cd8 100644
--- a/src/unattended-installer.vala
+++ b/src/unattended-installer.vala
@@ -423,7 +423,7 @@ private class Boxes.UnattendedInstaller: InstallerMedia {
notebook.append_page (password_entry);
button.clicked.connect (() => {
notebook.next_page ();
- password_entry.is_focus = true;
+ password_entry.grab_focus ();
});
password_entry.focus_out_event.connect (() => {
if (password_entry.text_length == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]