File Selection Dialog Box
- From: Mike Lindahl <mlindahl phoenix Princeton EDU>
- To: gtk-list redhat com
- Subject: File Selection Dialog Box
- Date: Mon, 17 May 1999 19:15:57 -0400 (EDT)
I am using GTK 1.2 and GTK-- 1.0 and am having a problem with the file
selection dialog box.
Specifically, the set_filename() function takes an inordinate amount of
time. Below is the code that I am using. isFastComputer is a simple
boolean value. When it is true, the dialog box takes a long time to
display but, when false, the box pops right up. Does anyone know why this
is true? Is there a way for me to fix it?
static void InitFileSel (string s)
{
dlog << "Initializing Dialog Box: " << s << endl;
DestroyFileSel ();
dialog = new Gtk_FileSelection (s);
dialog->set_modal (true);
if (last_dir != "")
if (isFastComputer)
dialog->set_filename(last_dir);
connect_to_function (dialog->get_cancel_button()->clicked,
&File_Sel_cancel);
ConnectDestroy();
dialog->show ();
dlog << "Dialog Box displayed" << endl;
}
Thanks a lot
Mike
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]