diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2020-07-29 15:47:48 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2020-07-29 17:57:30 +0200 |
commit | c7c71137b287f9df26a47547202bb5ff3553773c (patch) | |
tree | 76aafb6d7d5747f9cd9d90824f4adf95f6052bfd /gdk/gdkmonitor.c | |
parent | ec34675019446c080db60be2e8f7a8aec39bd097 (diff) | |
download | gtk+-c7c71137b287f9df26a47547202bb5ff3553773c.tar.gz |
gdk/monitor: Remove gdk_monitor_work_area and GdkMonitor::work-area
It's not a portable API, so remove it. The corresponding backend
specific functions are still available, if they were implemented, e.g.
gdk_macos_monitor_get_workarea() and gdk_x11_monitor_get_workarea().
Diffstat (limited to 'gdk/gdkmonitor.c')
-rw-r--r-- | gdk/gdkmonitor.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/gdk/gdkmonitor.c b/gdk/gdkmonitor.c index 5157caea0a..46edc8a5c4 100644 --- a/gdk/gdkmonitor.c +++ b/gdk/gdkmonitor.c @@ -51,7 +51,6 @@ enum { PROP_CONNECTOR, PROP_SCALE_FACTOR, PROP_GEOMETRY, - PROP_WORKAREA, PROP_WIDTH_MM, PROP_HEIGHT_MM, PROP_REFRESH_RATE, @@ -112,14 +111,6 @@ gdk_monitor_get_property (GObject *object, g_value_set_boxed (value, &monitor->geometry); break; - case PROP_WORKAREA: - { - GdkRectangle workarea; - gdk_monitor_get_workarea (monitor, &workarea); - g_value_set_boxed (value, &workarea); - } - break; - case PROP_WIDTH_MM: g_value_set_int (value, monitor->width_mm); break; @@ -222,12 +213,6 @@ gdk_monitor_class_init (GdkMonitorClass *class) "The geometry of the monitor", GDK_TYPE_RECTANGLE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); - props[PROP_WORKAREA] = - g_param_spec_boxed ("workarea", - "Workarea", - "The workarea of the monitor", - GDK_TYPE_RECTANGLE, - G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); props[PROP_WIDTH_MM] = g_param_spec_int ("width-mm", "Physical width", @@ -317,38 +302,6 @@ gdk_monitor_get_geometry (GdkMonitor *monitor, } /** - * gdk_monitor_get_workarea: - * @monitor: a #GdkMonitor - * @workarea: (out): a #GdkRectangle to be filled with - * the monitor workarea - * - * Retrieves the size and position of the “work area” on a monitor - * within the display coordinate space. The returned geometry is in - * ”application pixels”, not in ”device pixels” (see - * gdk_monitor_get_scale_factor()). - * - * The work area should be considered when positioning menus and - * similar popups, to avoid placing them below panels, docks or other - * desktop components. - * - * Note that not all backends may have a concept of workarea. This - * function will return the monitor geometry if a workarea is not - * available, or does not apply. - */ -void -gdk_monitor_get_workarea (GdkMonitor *monitor, - GdkRectangle *workarea) -{ - g_return_if_fail (GDK_IS_MONITOR (monitor)); - g_return_if_fail (workarea != NULL); - - if (GDK_MONITOR_GET_CLASS (monitor)->get_workarea) - GDK_MONITOR_GET_CLASS (monitor)->get_workarea (monitor, workarea); - else - *workarea = monitor->geometry; -} - -/** * gdk_monitor_get_width_mm: * @monitor: a #GdkMonitor * |