Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::UI::Dialogs::FileSaveDialogImpl::fileTypeChangedCallback (  )  [private]

Callback for user input into fileNameEntry

Callback for fileNameEntry widget

Definition at line 1124 of file filedialog.cpp.

References fileTypeComboBox, and fileTypes.

Referenced by createFileTypeMenu(), and FileSaveDialogImpl().

{
    int sel = fileTypeComboBox.get_active_row_number();
    if (sel<0 || sel >= (int)fileTypes.size())
        return;
    FileType type = fileTypes[sel];
    //g_message("selected: %s\n", type.name.c_str());
    Gtk::FileFilter filter;
    filter.add_pattern(type.pattern);
    set_filter(filter);
}


Generated by  Doxygen 1.6.0   Back to index