[gtk/present-toplevel-2: 130/178] toplevellayout: drop type hints
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 130/178] toplevellayout: drop type hints
- Date: Tue, 10 Mar 2020 01:20:52 +0000 (UTC)
commit cdc7f43ab9c99e91b9caf1a79c3c8380a31a9a65
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 7 09:09:36 2020 -0800
toplevellayout: drop type hints
gdk/gdktoplevellayout.c | 18 ------------------
gdk/gdktoplevellayout.h | 7 -------
2 files changed, 25 deletions(-)
---
diff --git a/gdk/gdktoplevellayout.c b/gdk/gdktoplevellayout.c
index 8cbb1a6bf5..b36a98e8bc 100644
--- a/gdk/gdktoplevellayout.c
+++ b/gdk/gdktoplevellayout.c
@@ -33,7 +33,6 @@ struct _GdkToplevelLayout
guint maximized : 1;
guint fullscreen : 1;
guint modal : 1;
- GdkSurfaceTypeHint type_hint;
GdkMonitor *fullscreen_monitor;
};
@@ -64,7 +63,6 @@ gdk_toplevel_layout_new (int min_width,
layout->maximized = FALSE;
layout->fullscreen = FALSE;
layout->modal = FALSE;
- layout->type_hint = GDK_SURFACE_TYPE_HINT_NORMAL;
layout->fullscreen_monitor = NULL;
return layout;
@@ -123,7 +121,6 @@ gdk_toplevel_layout_copy (GdkToplevelLayout *layout)
new_layout->maximized = layout->maximized;
new_layout->fullscreen = layout->fullscreen;
new_layout->modal = layout->modal;
- new_layout->type_hint = layout->type_hint;
if (layout->fullscreen_monitor)
new_layout->fullscreen_monitor = g_object_ref (layout->fullscreen_monitor);
@@ -153,7 +150,6 @@ gdk_toplevel_layout_equal (GdkToplevelLayout *layout,
layout->maximized == other->maximized &&
layout->fullscreen == other->fullscreen &&
layout->modal == other->modal &&
- layout->type_hint == other->type_hint &&
layout->fullscreen_monitor == other->fullscreen_monitor;
}
@@ -230,17 +226,3 @@ gdk_toplevel_layout_get_modal (GdkToplevelLayout *layout)
{
return layout->modal;
}
-
-void
-gdk_toplevel_layout_set_type_hint (GdkToplevelLayout *layout,
- GdkSurfaceTypeHint type_hint)
-{
- layout->type_hint = type_hint;
-}
-
-
-GdkSurfaceTypeHint
-gdk_toplevel_layout_get_type_hint (GdkToplevelLayout *layout)
-{
- return layout->type_hint;
-}
diff --git a/gdk/gdktoplevellayout.h b/gdk/gdktoplevellayout.h
index a05f03f472..7b20e65ccb 100644
--- a/gdk/gdktoplevellayout.h
+++ b/gdk/gdktoplevellayout.h
@@ -92,13 +92,6 @@ void gdk_toplevel_layout_set_modal (GdkToplevelLayout *layout
GDK_AVAILABLE_IN_ALL
gboolean gdk_toplevel_layout_get_modal (GdkToplevelLayout *layout);
-GDK_AVAILABLE_IN_ALL
-void gdk_toplevel_layout_set_type_hint (GdkToplevelLayout *layout,
- GdkSurfaceTypeHint hint);
-
-GDK_AVAILABLE_IN_ALL
-GdkSurfaceTypeHint gdk_toplevel_layout_get_type_hint (GdkToplevelLayout *layout);
-
G_END_DECLS
#endif /* __GDK_TOPLEVEL_LAYOUT_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]