aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-06-17 19:57:47 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-06-17 19:57:47 +0000
commit946af07b3a5b054b6d07d0502c1c5569f4ac16a1 (patch)
tree5b128f920dec85cb555818a899ce92e21e845c09 /gtk
parentcf1eb444f43ac7ca552643590a4bf03fb2fa263f (diff)
gtk1 does not have gtk_window_get_modal
svn path=/trunk/; revision=22120
Diffstat (limited to 'gtk')
-rw-r--r--gtk/filter_dlg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/filter_dlg.c b/gtk/filter_dlg.c
index 3d3ea1b10f..3378b09242 100644
--- a/gtk/filter_dlg.c
+++ b/gtk/filter_dlg.c
@@ -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