[gnome-games] Fix the build on hildon



commit 6dc4634bb581a82975b724eb499b4ab2f9a384e1
Author: Christian Persch <chpe gnome org>
Date:   Tue Jun 2 00:20:07 2009 +0200

    Fix the build on hildon
    
    cairo is only available since maemo4, so guard the
    games_card_theme_set_font_options calls accordingly.
---
 aisleriot/window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/aisleriot/window.c b/aisleriot/window.c
index 5255ae4..af12c79 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -1475,7 +1475,9 @@ aisleriot_window_take_card_theme (AisleriotWindow *window,
                                   GamesCardTheme *theme /* adopting */)
 {
   AisleriotWindowPrivate *priv = window->priv;
+#if GTK_CHECK_VERSION (2, 10, 0)
   GtkWidget *widget = GTK_WIDGET (window);
+#endif
 
   if (theme == priv->theme)
     return;
@@ -1485,12 +1487,14 @@ aisleriot_window_take_card_theme (AisleriotWindow *window,
   }
   priv->theme = theme;
 
+#if GTK_CHECK_VERSION (2, 10, 0)
   if (gtk_widget_has_screen (widget)) {
     const cairo_font_options_t *font_options;
 
     font_options = gdk_screen_get_font_options (gtk_widget_get_screen (widget));
     games_card_theme_set_font_options (theme, font_options);
   }
+#endif /* GTK+ 2.10.0 */
 
   aisleriot_board_set_card_theme (priv->board, theme);
 }    



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]