[gnome-screensaver] Fix build with latest gtk
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Fix build with latest gtk
- Date: Thu, 9 Dec 2010 12:18:54 +0000 (UTC)
commit e6b8ff62886d4d7d7b5dcfed617d7bb53c7612a1
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 9 07:18:09 2010 -0500
Fix build with latest gtk
gdk_window_get_geometry lost its depth argument.
savers/gs-theme-engine.c | 6 +-----
savers/gs-theme-window.c | 2 +-
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/savers/gs-theme-engine.c b/savers/gs-theme-engine.c
index 724a7c2..8e0c7e9 100644
--- a/savers/gs-theme-engine.c
+++ b/savers/gs-theme-engine.c
@@ -195,11 +195,7 @@ gs_theme_engine_get_window_size (GSThemeEngine *engine,
}
gdk_window_get_geometry (gtk_widget_get_window (GTK_WIDGET (engine)),
- NULL,
- NULL,
- width,
- height,
- NULL);
+ NULL, NULL, width, height);
}
GdkWindow *
diff --git a/savers/gs-theme-window.c b/savers/gs-theme-window.c
index 7adc6ed..e0e9aed 100644
--- a/savers/gs-theme-window.c
+++ b/savers/gs-theme-window.c
@@ -179,7 +179,7 @@ gs_theme_window_real_realize (GtkWidget *widget)
gdk_window_set_user_data (window, widget);
gtk_widget_set_realized (widget, TRUE);
- gdk_window_get_geometry (window, &x, &y, &width, &height, NULL);
+ gdk_window_get_geometry (window, &x, &y, &width, &height);
if (width < MIN_SIZE || height < MIN_SIZE) {
g_critical ("This window is way too small to use");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]