Index: gtk/gtkwidget.c
===================================================================
--- gtk/gtkwidget.c	(Revision 20758)
+++ gtk/gtkwidget.c	(Arbeitskopie)
@@ -9888,6 +9888,43 @@ gtk_widget_get_has_tooltip (GtkWidget *w
 }
 
 /**
+ * gtk_widget_has_focus:
+ * @widget: a #GtkWidget
+ *
+ * Determines whether the widget was the last one to recently grab focus.
+ *
+ * Return value: %TRUE if widget was the last to grab focus
+ *
+ * Since: 2.14
+ */
+gboolean
+gtk_widget_has_focus (GtkWidget *widget)
+{
+  g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
+
+  return (GTK_WIDGET_FLAGS (widget) & GTK_HAS_FOCUS) != 0;
+}
+
+/**
+ * gtk_widget_has_grab:
+ * @widget: a #GtkWidget
+ *
+ * Determines whether the widget is in the grab_widgets stack and
+ * will be the preferred one for receiving events.
+ *
+ * Return value: %TRUE if the widget is in the grab_widgets stack
+ *
+ * Since: 2.14
+ */
+gboolean
+gtk_widget_has_grab (GtkWidget *widget)
+{
+  g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
+
+  return (GTK_WIDGET_FLAGS (widget) & GTK_HAS_GRAB) != 0;
+}
+
+/**
  * gtk_widget_get_allocation:
  * @widget: a #GtkWidget
  *
Index: gtk/gtkwidget.h
===================================================================
--- gtk/gtkwidget.h	(Revision 20758)
+++ gtk/gtkwidget.h	(Arbeitskopie)
@@ -572,6 +572,8 @@ void                  gtk_widget_set_par
 void                  gtk_widget_set_child_visible      (GtkWidget    *widget,
 							 gboolean      is_visible);
 gboolean              gtk_widget_get_child_visible      (GtkWidget    *widget);
+gboolean              gtk_widget_has_focus              (GtkWidget    *widget);
+gboolean              gtk_widget_has_grab               (GtkWidget    *widget);
 GtkAllocation	      gtk_widget_get_allocation         (GtkWidget    *widget);
 GdkWindow*            gtk_widget_get_window             (GtkWidget    *widget);
 
Index: gtk/gtk.symbols
===================================================================
--- gtk/gtk.symbols	(Revision 20758)
+++ gtk/gtk.symbols	(Arbeitskopie)
@@ -4798,6 +4798,8 @@ gtk_widget_trigger_tooltip_query
 gtk_widget_unmap
 gtk_widget_unparent
 gtk_widget_unrealize
+gtk_widget_has_focus
+gtk_widget_has_grab
 gtk_widget_get_allocation
 gtk_widget_get_window
 #endif
