Index: gtkwindow.c
===================================================================
--- gtkwindow.c	(revision 19885)
+++ gtkwindow.c	(working copy)
@@ -1510,6 +1510,25 @@ gtk_window_set_default (GtkWindow *windo
 	}
     }
 }
+/**
+ * gtk_window_get_default:
+ * @window: a #GtkWindow
+ * 
+ * The default widget is the widget that's activated when the user
+ * presses Enter in a dialog (for example). This function gets the 
+ * default widget for a #GtkWindow. 
+ * 
+ * Return value: the default_widget for the @window, or %NULL if there's none.
+ * 
+ * Since: 2.13?
+ **/
+GtkWidget *
+gtk_window_get_default (GtkWindow *window)
+{
+  g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
+
+  return window->default_widget;
+}
 
 void
 gtk_window_set_policy (GtkWindow *window,
Index: gtkwindow.h
===================================================================
--- gtkwindow.h	(revision 19885)
+++ gtkwindow.h	(working copy)
@@ -198,6 +198,7 @@ void       gtk_window_set_focus         
 GtkWidget *gtk_window_get_focus                (GtkWindow           *window);
 void       gtk_window_set_default              (GtkWindow           *window,
 						GtkWidget           *default_widget);
+GtkWidget *gtk_window_get_default              (GtkWindow           *window);
 gboolean   gtk_window_activate_default	       (GtkWindow           *window);
 
 void       gtk_window_set_transient_for        (GtkWindow           *window, 
