diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index d463306..5e43744 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -406,15 +406,20 @@ gtk_dialog_map (GtkWidget *widget)
     {
       GList *children, *tmp_list;
       GtkWidget *first_focus = NULL;
+      gint count = 0;
       
       do 
 	{
+	  g_assert (++count < 10);
+	  g_print ("1: first %p window %p\n", first_focus, window->focus_widget);
 	  g_signal_emit_by_name (window, "move_focus", GTK_DIR_TAB_FORWARD);
+	  g_print ("2: first %p window %p\n", first_focus, window->focus_widget);
 
 	  if (first_focus == NULL)
 	    first_focus = window->focus_widget;
 	  else if (first_focus == window->focus_widget)
 	    break;
+	  g_print ("3: is label %d\n", GTK_IS_LABEL (window->focus_widget));
 
 	  if (!GTK_IS_LABEL (window->focus_widget))
 	    break;
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 62dba19..7974698 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3937,12 +3937,15 @@ gtk_label_focus (GtkWidget        *widget,
 
   if (!gtk_widget_is_focus (widget))
     {
+      g_print ("grab focus on %p\n", widget);
       gtk_widget_grab_focus (widget);
       if (info)
         {
+      g_print ("and has info %p\n", widget);
           focus_link = gtk_label_get_focus_link (label);
           if (focus_link && direction == GTK_DIR_TAB_BACKWARD)
             {
+      g_print ("and back %p\n", widget);
               l = g_list_last (info->links);
               focus_link = l->data;
               info->selection_anchor = focus_link->start;
@@ -3972,6 +3975,7 @@ gtk_label_focus (GtkWidget        *widget,
 
             if (link->start > index)
               {
+              g_print ("select link for %p\n", label);
                 gtk_label_select_region_index (label, link->start, link->start);
                 return TRUE;
               }
@@ -3983,6 +3987,7 @@ gtk_label_focus (GtkWidget        *widget,
 
             if (link->end < index)
               {
+              g_print ("select link back %p\n", label);
                 gtk_label_select_region_index (label, link->start, link->start);
                 return TRUE;
               }
@@ -4025,7 +4030,7 @@ gtk_label_focus (GtkWidget        *widget,
           info->selection_anchor = focus_link->start;
           info->selection_end = focus_link->start;
           gtk_widget_queue_draw (widget);
-
+g_print ("focus link not selectable %p\n", widget);
           return TRUE;
         }
     }
