Don't loop forever here, even if the only focusable widgets are labels.
2005-01-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever here, even if the only focusable widgets are labels.
This commit is contained in:
committed by
Matthias Clasen
parent
72f3a28e86
commit
a7cd9932b7
@@ -1,5 +1,8 @@
|
||||
2005-01-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
|
||||
here, even if the only focusable widgets are labels.
|
||||
|
||||
* gtk/gtkmodules.c (load_module): Don't reverse the order
|
||||
of modules when putting them in gtk_modules. (#162676, Dennis
|
||||
Cranston, patch by Remus Draica)
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
2005-01-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
|
||||
here, even if the only focusable widgets are labels.
|
||||
|
||||
* gtk/gtkmodules.c (load_module): Don't reverse the order
|
||||
of modules when putting them in gtk_modules. (#162676, Dennis
|
||||
Cranston, patch by Remus Draica)
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
2005-01-20 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkdialog.c (gtk_dialog_map): Don't loop forever
|
||||
here, even if the only focusable widgets are labels.
|
||||
|
||||
* gtk/gtkmodules.c (load_module): Don't reverse the order
|
||||
of modules when putting them in gtk_modules. (#162676, Dennis
|
||||
Cranston, patch by Remus Draica)
|
||||
|
||||
@@ -345,10 +345,16 @@ gtk_dialog_map (GtkWidget *widget)
|
||||
if (!window->focus_widget)
|
||||
{
|
||||
GList *children, *tmp_list;
|
||||
GtkWidget *first_focus = NULL;
|
||||
|
||||
do
|
||||
{
|
||||
g_signal_emit_by_name (window, "move_focus", GTK_DIR_TAB_FORWARD);
|
||||
|
||||
if (first_focus == NULL)
|
||||
first_focus = window->focus_widget;
|
||||
else if (first_focus == window->focus_widget)
|
||||
break;
|
||||
}
|
||||
while (GTK_IS_LABEL (window->focus_widget));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user