[gnome-utils] [gdict] Use gtk_widget_is_toplevel() instead of GTK_WIDGET_TOPLEVEL()



commit 741f27df45cfb37634c4dc430b2f0cdc5491b691
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Jan 13 15:10:27 2010 +0100

    [gdict] Use gtk_widget_is_toplevel() instead of GTK_WIDGET_TOPLEVEL()
    
    This means we now require GTK+ 2.18.0, instead of just 2.17.2.

 configure.ac                            |    2 +-
 gnome-dictionary/libgdict/gdict-utils.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5565f4a..f73ef00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,7 +70,7 @@ dnl pkg-config check
 
 GLIB_REQUIRED=2.20.0
 GIO_REQUIRED=2.16.0
-GTK_REQUIRED=2.17.2
+GTK_REQUIRED=2.18.0
 GIO_UNIX_REQUIRED=2.18.0
 LIBPANEL_APPLET_REQUIRED=2.13.4
 LIBGTOP_REQUIRED=2.12.0
diff --git a/gnome-dictionary/libgdict/gdict-utils.c b/gnome-dictionary/libgdict/gdict-utils.c
index 938f545..d6c7241 100644
--- a/gnome-dictionary/libgdict/gdict-utils.c
+++ b/gnome-dictionary/libgdict/gdict-utils.c
@@ -279,7 +279,7 @@ get_toplevel_window (GtkWidget *widget)
   GtkWidget *toplevel;
   
   toplevel = gtk_widget_get_toplevel (widget);
-  if (!GTK_WIDGET_TOPLEVEL (toplevel))
+  if (!gtk_widget_is_toplevel (toplevel))
     return NULL;
   else
     return GTK_WINDOW (toplevel);



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