[aisleriot] sol: Use new gtk workarea API
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot] sol: Use new gtk workarea API
- Date: Mon, 19 Dec 2011 18:37:52 +0000 (UTC)
commit 9c6a63bc8e570bd5171de2d68ac6e1c7905c418e
Author: Christian Persch <chpe gnome org>
Date: Mon Dec 19 16:41:51 2011 +0100
sol: Use new gtk workarea API
src/ar-fullscreen-button.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ar-fullscreen-button.c b/src/ar-fullscreen-button.c
index a4e941b..563d7ac 100644
--- a/src/ar-fullscreen-button.c
+++ b/src/ar-fullscreen-button.c
@@ -97,7 +97,11 @@ update_position (ArFullscreenButton *button)
gtk_widget_size_request (widget, &requisition);
screen = gtk_widget_get_screen (widget);
+#if GTK_CHECK_VERSION (3, 3, 5)
+ gdk_screen_get_monitor_workarea
+#else
gdk_screen_get_monitor_geometry
+#endif
(screen,
gtk_widget_get_realized (widget)
? gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (widget))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]