aboutsummaryrefslogtreecommitdiff
path: root/src/ka-pwdialog.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-06-19 15:27:57 +0200
committerGuido Günther <agx@sigxcpu.org>2010-06-19 15:27:57 +0200
commitdaedd98264fd9aa755f3122d46ce27f93e08cfca (patch)
tree482a9e1683593e017f49a1fecb230c87c038f22b /src/ka-pwdialog.c
parentImported Upstream version 0.16~rc1 (diff)
downloadkrb5-auth-dialog-daedd98264fd9aa755f3122d46ce27f93e08cfca.tar.gz
krb5-auth-dialog-daedd98264fd9aa755f3122d46ce27f93e08cfca.tar.bz2
krb5-auth-dialog-daedd98264fd9aa755f3122d46ce27f93e08cfca.zip
Imported Upstream version 0.16~rc2
Diffstat (limited to 'src/ka-pwdialog.c')
-rw-r--r--src/ka-pwdialog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ka-pwdialog.c b/src/ka-pwdialog.c
index 2f8463c..da34471 100644
--- a/src/ka-pwdialog.c
+++ b/src/ka-pwdialog.c
@@ -96,7 +96,8 @@ grab_keyboard (GtkWidget *win, GdkEvent *event, gpointer data)
GdkGrabStatus status;
if (!pwdialog->priv->grabbed) {
- status = gdk_keyboard_grab (win->window, FALSE, gdk_event_get_time (event));
+ status = gdk_keyboard_grab (gtk_widget_get_window (win),
+ FALSE, gdk_event_get_time (event));
if (status == GDK_GRAB_SUCCESS)
pwdialog->priv->grabbed = TRUE;
else
@@ -123,7 +124,7 @@ ungrab_keyboard (GtkWidget *win G_GNUC_UNUSED,
static gboolean
window_state_changed (GtkWidget *win, GdkEventWindowState *event, gpointer data)
{
- GdkWindowState state = gdk_window_get_state (win->window);
+ GdkWindowState state = gdk_window_get_state (gtk_widget_get_window (win));
if (state & GDK_WINDOW_STATE_WITHDRAWN ||
state & GDK_WINDOW_STATE_ICONIFIED ||
bgstack15