summaryrefslogtreecommitdiff
path: root/gtk/gtkmnemonichash.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkmnemonichash.c')
-rw-r--r--gtk/gtkmnemonichash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkmnemonichash.c b/gtk/gtkmnemonichash.c
index 4a87f0c3e7..03488e2887 100644
--- a/gtk/gtkmnemonichash.c
+++ b/gtk/gtkmnemonichash.c
@@ -111,7 +111,7 @@ _gtk_mnemonic_hash_activate (GtkMnemonicHash *mnemonic_hash,
{
GSList *list, *targets;
GtkWidget *widget, *chosen_widget;
- GdkSurface *window;
+ GdkSurface *surface;
gboolean overloaded;
targets = g_hash_table_lookup (mnemonic_hash->hash,
@@ -124,11 +124,11 @@ _gtk_mnemonic_hash_activate (GtkMnemonicHash *mnemonic_hash,
for (list = targets; list; list = list->next)
{
widget = GTK_WIDGET (list->data);
- window = gtk_widget_get_surface (widget);
+ surface = gtk_widget_get_surface (widget);
if (gtk_widget_is_sensitive (widget) &&
gtk_widget_get_mapped (widget) &&
- window && gdk_surface_is_viewable (window))
+ surface && gdk_surface_is_viewable (surface))
{
if (chosen_widget)
{