[gnome-games] gnibbles: Fix GSEAL issues



commit 79150707588776a06e890f3770ef5738739de6a9
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Dec 8 07:54:36 2009 +0100

    gnibbles: Fix GSEAL issues
    
    https://bugzilla.gnome.org/show_bug.cgi?id=586731

 gnibbles/preferences.c              |    2 +-
 libgames-support/games-gtk-compat.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnibbles/preferences.c b/gnibbles/preferences.c
index 4d367bc..8b181df 100644
--- a/gnibbles/preferences.c
+++ b/gnibbles/preferences.c
@@ -249,7 +249,7 @@ gnibbles_preferences_cb (GtkWidget * widget, gpointer data)
 
   notebook = gtk_notebook_new ();
   gtk_container_set_border_width (GTK_CONTAINER (notebook), 5);
-  gtk_container_add (GTK_CONTAINER (GTK_DIALOG (pref_dialog)->vbox),
+  gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (pref_dialog))),
                      notebook);
 
   label = gtk_label_new (_("Game"));
diff --git a/libgames-support/games-gtk-compat.h b/libgames-support/games-gtk-compat.h
index 4a2a022..30f897e 100644
--- a/libgames-support/games-gtk-compat.h
+++ b/libgames-support/games-gtk-compat.h
@@ -36,6 +36,7 @@ G_BEGIN_DECLS
 #endif /* GTK < 2.18.0 */
 
 #if !GTK_CHECK_VERSION (2, 14, 0)
+#define gtk_dialog_get_content_area(dialog) ((dialog)->vbox)
 #define gtk_widget_get_window(widget) ((widget)->window)
 #endif /* GTK < 2.14.0 */
 



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