Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_export_filename_modified ( GtkObject *  object,
gpointer  data 
) [static]

This function is called when the filename is changed by anyone. It resets the virgin bit.

Parameters:
object Text entry box
data The export dialog
Returns:
None
This function gets called when the text area is modified. It is looking for the case where the text area is modified from its original value. In that case it sets the "filename-modified" bit to TRUE. If the text dialog returns back to the original text, the bit gets reset. This should stop simple mistakes.

Definition at line 1734 of file export.cpp.

Referenced by sp_export_dialog().

{
    GtkWidget * text_entry = (GtkWidget *)object;
    GtkWidget * export_dialog = (GtkWidget *)data;

    if (!strcmp(original_name, gtk_entry_get_text(GTK_ENTRY(text_entry)))) {
        gtk_object_set_data (GTK_OBJECT (export_dialog), "filename-modified", (gpointer)FALSE);
//        printf("Modified: FALSE\n");
    } else {
        gtk_object_set_data (GTK_OBJECT (export_dialog), "filename-modified", (gpointer)TRUE);
//        printf("Modified: TRUE\n");
    }

    return;
} // end sp_export_filename_modified


Generated by  Doxygen 1.6.0   Back to index