mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Fix some assignments involving booleans. (#346467, Christian Persch)
2006-07-05 Matthias Clasen <mclasen@redhat.com> * gtk/gtkwindow.c (gtk_window_unmap, gtk_window_set_keep_above) (gtk_window_set_keep_below): Fix some assignments involving booleans. (#346467, Christian Persch)
This commit is contained in:
parent
9f3f53b53c
commit
d7418f894f
@ -1,3 +1,9 @@
|
||||
2006-07-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_unmap, gtk_window_set_keep_above)
|
||||
(gtk_window_set_keep_below): Fix some assignments involving
|
||||
booleans. (#346467, Christian Persch)
|
||||
|
||||
2006-07-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkgamma.c: Use serialized pixbufs instead of xpms.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2006-07-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_unmap, gtk_window_set_keep_above)
|
||||
(gtk_window_set_keep_below): Fix some assignments involving
|
||||
booleans. (#346467, Christian Persch)
|
||||
|
||||
2006-07-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkgamma.c: Use serialized pixbufs instead of xpms.
|
||||
|
@ -4208,11 +4208,11 @@ gtk_window_unmap (GtkWidget *widget)
|
||||
}
|
||||
|
||||
state = gdk_window_get_state (widget->window);
|
||||
window->iconify_initially = state & GDK_WINDOW_STATE_ICONIFIED;
|
||||
window->maximize_initially = state & GDK_WINDOW_STATE_MAXIMIZED;
|
||||
window->stick_initially = state & GDK_WINDOW_STATE_STICKY;
|
||||
priv->above_initially = state & GDK_WINDOW_STATE_ABOVE;
|
||||
priv->below_initially = state & GDK_WINDOW_STATE_BELOW;
|
||||
window->iconify_initially = (state & GDK_WINDOW_STATE_ICONIFIED) != 0;
|
||||
window->maximize_initially = (state & GDK_WINDOW_STATE_MAXIMIZED) != 0;
|
||||
window->stick_initially = (state & GDK_WINDOW_STATE_STICKY) != 0;
|
||||
priv->above_initially = (state & GDK_WINDOW_STATE_ABOVE) != 0;
|
||||
priv->below_initially = (state & GDK_WINDOW_STATE_BELOW) != 0;
|
||||
}
|
||||
|
||||
static void
|
||||
@ -6597,7 +6597,7 @@ gtk_window_set_keep_above (GtkWindow *window,
|
||||
widget = GTK_WIDGET (window);
|
||||
priv = GTK_WINDOW_GET_PRIVATE (window);
|
||||
|
||||
priv->above_initially = setting;
|
||||
priv->above_initially = setting != FALSE;
|
||||
if (setting)
|
||||
priv->below_initially = FALSE;
|
||||
|
||||
@ -6651,7 +6651,7 @@ gtk_window_set_keep_below (GtkWindow *window,
|
||||
widget = GTK_WIDGET (window);
|
||||
priv = GTK_WINDOW_GET_PRIVATE (window);
|
||||
|
||||
priv->below_initially = setting;
|
||||
priv->below_initially = setting != FALSE;
|
||||
if (setting)
|
||||
priv->above_initially = FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user