[dia] [gtk-deprecated] No more GTK_WIDGET_TOPLEVEL with gtk-2-22



commit e7cc63274104615c7aeb6ac11875193d4515e68c
Author: Hans Breuer <hans breuer org>
Date:   Fri Apr 22 12:27:42 2011 +0200

    [gtk-deprecated] No more GTK_WIDGET_TOPLEVEL with gtk-2-22

 lib/widgets.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/widgets.c b/lib/widgets.c
index d9f3ec8..38cf606 100644
--- a/lib/widgets.c
+++ b/lib/widgets.c
@@ -384,7 +384,7 @@ dia_file_selector_browse_pressed(GtkWidget *widget, gpointer data)
   gchar *filename;
   GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
 
-  if (!GTK_WIDGET_TOPLEVEL(toplevel) || !GTK_WINDOW(toplevel))
+  if (toplevel && !GTK_WINDOW(toplevel))
     toplevel = NULL;
 
   if (fs->dialog == NULL) {



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