gtk1 does not have gtk_window_get_modal
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 17 Jun 2007 19:57:47 +0000 (19:57 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 17 Jun 2007 19:57:47 +0000 (19:57 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22120 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/filter_dlg.c

index 3d3ea1b10fc4de5f481e2dde3bbb07a5265c3af9..3378b0924220894f76f4ed6aaabb28c737e6a15d 100644 (file)
@@ -1435,6 +1435,7 @@ filter_add_expr_bt_cb(GtkWidget *w _U_, gpointer main_w_arg)
        filter_te = OBJECT_GET_DATA(main_w, E_FILT_FILTER_TE_KEY);
        dfilter_w = dfilter_expr_dlg_new(filter_te);
 
+#if GTK_MAJOR_VERSION >= 2
        /* If we're opening a series of modal dialogs (such as when going
         * through file->open, make the latest dialog modal also so that it
         * takes over "control" from the other modal dialogs.  Also set
@@ -1445,6 +1446,7 @@ filter_add_expr_bt_cb(GtkWidget *w _U_, gpointer main_w_arg)
                gtk_window_set_transient_for(GTK_WINDOW(dfilter_w),
                                             GTK_WINDOW(main_w));
        }
+#endif
 }
 
 static void