Commit d2cb503e authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Compare only the HAS_DEFAULT flags. (#160711, Tommi Komulainen)

2004-12-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
	the HAS_DEFAULT flags.  (#160711, Tommi Komulainen)
parent 7a448075
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
the HAS_DEFAULT flags. (#160711, Tommi Komulainen)
* gtk/gtkimage.c (gtk_image_set_property): Add a missing break
statement. (#161172, Damon Chaplin)
......
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
the HAS_DEFAULT flags. (#160711, Tommi Komulainen)
* gtk/gtkimage.c (gtk_image_set_property): Add a missing break
statement. (#161172, Damon Chaplin)
......
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
the HAS_DEFAULT flags. (#160711, Tommi Komulainen)
* gtk/gtkimage.c (gtk_image_set_property): Add a missing break
statement. (#161172, Damon Chaplin)
......
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
the HAS_DEFAULT flags. (#160711, Tommi Komulainen)
* gtk/gtkimage.c (gtk_image_set_property): Add a missing break
statement. (#161172, Damon Chaplin)
......
......@@ -4689,7 +4689,7 @@ gtk_window_real_set_focus (GtkWindow *window,
GtkWidget *focus)
{
GtkWidget *old_focus = window->focus_widget;
gboolean def_flags = 0;
gboolean had_default = FALSE;
if (old_focus)
{
......@@ -4703,7 +4703,7 @@ gtk_window_real_set_focus (GtkWindow *window,
}
if (window->default_widget)
def_flags = GTK_WIDGET_HAS_DEFAULT (window->default_widget);
had_default = GTK_WIDGET_HAS_DEFAULT (window->default_widget);
if (window->focus_widget)
{
......@@ -4754,7 +4754,7 @@ gtk_window_real_set_focus (GtkWindow *window,
* is harmless.
*/
if (window->default_widget &&
(def_flags != GTK_WIDGET_FLAGS (window->default_widget)))
(had_default != GTK_WIDGET_HAS_DEFAULT (window->default_widget)))
gtk_widget_queue_draw (window->default_widget);
if (old_focus)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment