RE: [gtk-list] gtk_file_selection doesn't interact when called from "inside" gnome_dialog
- From: "James D. Watson" <jwatson0 erols com>
- To: <gtk-list redhat com>
- Subject: RE: [gtk-list] gtk_file_selection doesn't interact when called from "inside" gnome_dialog
- Date: Sun, 27 Feb 2000 16:30:35 -0500
Hi,
Many thanks to Owen (whom I ran into over on irc.gimp.org(#gtk+)), this
was easy to solve...
It does indeed hinge on the fact that gnome_dialog is modal.
Solution: In my function that builds and shows the gtk_file_selection
dialog, I made my gtk_file_selection modal. I learned from Owen that having
both gnome_dialog and gtk_file_selection modal doesn't cause interference
because the most recent window to be set modal takes over (and, once it's
closed, modality returns to gnome_dialog).
So, a snippet of code...
static GtkWidget *fileSelector=NULL;
...
fileSelector=gtk_file_selection_new("Select a file to load");
...[connect signals, hide file ops, etc.]...
gtk_widget_show(fileSelector);
gtk_window_set_modal(GTK_WINDOW(fileSelector), TRUE); /* <-- added
this */
Thanks Owen!
Regards,
Jim
-----Original Message-----
From: James D. Watson [mailto:jwatson0@erols.com]
Sent: Sunday, February 27, 2000 3:08 PM
To: gtk-list@redhat.com
Subject: [gtk-list] gtk_file_selection doesn't interact when called from
"inside" gnome_dialog
[Hope this isn't an archived question; I couldn't find it in the archive or
on line under gtk or gnome devel lists.]
I run a gnome_dialog that contains a notebook. On one page, a button
launches a gtk_file_selection. The gtk_file_selection displays but doesn't
interact. (Buttons don't respond; can't navigate through the filesystem,
etc.)
I'm sure the gtk_file_selection code I have is correct -- I can attach it
to toolbar buttons and it's fine.
Is this a modal thing with gnome_dialog? Any good way for me to get
around it and still keep the gtk_file_selection launcher as part of the
gnome_dialog box?
Thank you!
Jim
jwatson0@erols.com
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]