[gtk/present-toplevel-2: 60/79] headerbar: Stop looking at type hints
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 60/79] headerbar: Stop looking at type hints
- Date: Mon, 9 Mar 2020 15:36:37 +0000 (UTC)
commit 0e9517160106a0220ffb810dd9c21ce1692db28e
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 6 12:55:15 2020 -0800
headerbar: Stop looking at type hints
gtk/gtkheaderbar.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index e618ff7a68..eb5bca55a4 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -346,9 +346,8 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
else
menu = NULL;
- is_sovereign_window = (!gtk_window_get_modal (window) &&
- gtk_window_get_transient_for (window) == NULL &&
- gtk_window_get_type_hint (window) == GDK_SURFACE_TYPE_HINT_NORMAL);
+ is_sovereign_window = !gtk_window_get_modal (window) &&
+ gtk_window_get_transient_for (window) == NULL;
tokens = g_strsplit (layout_desc, ":", 2);
if (tokens)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]