diff options
author | Bill Meier <wmeier@newsguy.com> | 2007-09-05 14:59:37 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2007-09-05 14:59:37 +0000 |
commit | 7b02205d274c3a60932d4fc90532a46fe9f5ceed (patch) | |
tree | 645e4a44ac02f4c364901c1f81e7b3f54856595e | |
parent | ad1b52310a0017e918a26174f7b25b8ba58f526c (diff) |
Prevent Gtk-Critical msg when invoking "+Expression" from Filter Toolbar in main window;
Fixes bug reported by Toralf Förster
svn path=/trunk/; revision=22795
-rw-r--r-- | gtk/filter_dlg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/filter_dlg.c b/gtk/filter_dlg.c index e5cb86ab41..571c01bce3 100644 --- a/gtk/filter_dlg.c +++ b/gtk/filter_dlg.c @@ -1440,8 +1440,10 @@ filter_add_expr_bt_cb(GtkWidget *w _U_, gpointer main_w_arg) * through file->open, make the latest dialog modal also so that it * takes over "control" from the other modal dialogs. Also set * the transient property of the new dialog so the user doesn't try - * to interact with the previous window when they can't. */ - if(gtk_window_get_modal(GTK_WINDOW(main_w))) { + * to interact with the previous window when they can't. + * XXX: containing widget might be the Filter Toolbar */ + + if ( GTK_IS_WINDOW(main_w) && gtk_window_get_modal(GTK_WINDOW(main_w))) { gtk_window_set_modal(GTK_WINDOW(dfilter_w), TRUE); gtk_window_set_transient_for(GTK_WINDOW(dfilter_w), GTK_WINDOW(main_w)); |