file choosing manager is not behaving normal



Hi,

I was working at an application and suddenly the file choosing manager is
not open right. Usuall it shows the path and its containing files of the
working folder. But now it is somehow hanging up and waiting. As it is not
launched completly. This never happened before? And I can somehow not
reconstruct how I got to that. 

My code for the file manager looks like that:
Glib::ustring::ustring dialog::get_messurment_data_dlg_open()
{
	Gtk::FileChooserDialog dlg("Please choose a file",
Gtk::FILE_CHOOSER_ACTION_OPEN);
	
	dlg.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
	dlg.add_button("Select", Gtk::RESPONSE_OK);
	
	// Filter 
	Gtk::FileFilter filter_imr;
	filter_imr.set_name("IMR files");
	filter_imr.add_pattern("*.imr");
	dlg.add_filter(filter_imr);
	
	Gtk::FileFilter filter_any;
	filter_any.set_name("Any files");
	filter_any.add_pattern("*");
	dlg.add_filter(filter_any);
	
	result = dlg.run();	
	switch (result)
	{
		case (Gtk::RESPONSE_OK) :
						choosen_file = dlg.get_filename();
						break;
		case (Gtk::RESPONSE_CANCEL) :
						choosen_file = "none";
						break; 
		default:
						choosen_file = "none";
						break; 
	}
	return (choosen_file);
}
-- 
View this message in context: http://www.nabble.com/file-choosing-manager-is-not-behaving-normal-tf3279070.html#a9119489
Sent from the Gtkmm mailing list archive at Nabble.com.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]