summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-12-13 17:27:32 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-12-13 17:27:32 +0000
commitd2cb503ec53f151e38576cdda7f799ca77f20494 (patch)
tree9de4b0786004f08fd2ff3df5cec2d206985cffc3 /gtk
parent7a448075bcc6ce87ccbdf0d46dfeef3c12e709bf (diff)
downloadgtk+-d2cb503ec53f151e38576cdda7f799ca77f20494.tar.gz
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)
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkwindow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 3fbf1716c9..83cd6c1c8a 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -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)