diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-08-12 23:32:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-08-12 23:32:21 (GMT) |
commit | 9cfe738c2e9bb49eb2872e92bc4422c548edb517 (patch) | |
tree | ee8dbe5965b9d46394395b8beee87676e098a9f1 /src/dialogs/export.c | |
parent | fc49e98dc2b3e0ae08a5874ecacaef046a0f3ec1 (diff) |
Cleaned the code and handled file binaries properly.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@259 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/dialogs/export.c')
-rw-r--r-- | src/dialogs/export.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/dialogs/export.c b/src/dialogs/export.c index e514511..317ada4 100644 --- a/src/dialogs/export.c +++ b/src/dialogs/export.c @@ -103,7 +103,7 @@ static void register_content_panel(GtkAssistant *); * * ******************************************************************************/ -void run_export_assistant(GOpenidaBinary *binary, GtkWindow *parent) +void run_export_assistant(GLoadedBinary *binary, GtkWindow *parent) { GtkWidget *assistant; /* Fenêtre à afficher */ GObject *ref; /* Espace de référencement */ @@ -170,7 +170,7 @@ static void export_assistant_close(GtkAssistant *assistant, GObject *ref) int fd; /* Descripteur de la sortie */ struct _export_data *export; /* Informations à faire suivre */ GtkToggleButton *checkbutton; /* Coche à retrouver */ - GOpenidaBinary *binary; /* Binaire chargé à parcourir */ + GLoadedBinary *binary; /* Binaire chargé à parcourir */ GCodeBuffer *buffer; /* Tampon de code à traiter */ /* Fichier de sortie */ @@ -206,9 +206,9 @@ static void export_assistant_close(GtkAssistant *assistant, GObject *ref) /* Programmation de la tâche */ - binary = G_OPENIDA_BINARY(g_object_get_data(ref, "binary")); + binary = G_LOADED_BINARY(g_object_get_data(ref, "binary")); - buffer = g_openida_binary_get_disassembled_buffer(binary); + buffer = g_loaded_binary_get_disassembled_buffer(binary); g_buffer_code_scan(buffer, 0, VMPA_MAX, _("Exporting binary lines..."), (process_line_fc)export_buffer_line, export); @@ -277,7 +277,7 @@ static void register_output_panel(GtkAssistant *assistant) GtkWidget *combobox; /* Sélection du format */ GtkWidget *entry; /* Zone de saisie de texte */ GtkWidget *button; /* Sélection de fichier */ - GOpenidaBinary *binary; /* Binaire chargé à parcourir */ + GLoadedBinary *binary; /* Binaire chargé à parcourir */ const char *filename; /* Chemin d'accès par défaut */ alignment = qck_create_padded_alignment(8, 8, 8, 8); @@ -327,8 +327,8 @@ static void register_output_panel(GtkAssistant *assistant) /* Choix par défaut */ - binary = G_OPENIDA_BINARY(g_object_get_data(G_OBJECT(assistant), "binary")); - filename = g_openida_binary_get_filename(binary); + binary = G_LOADED_BINARY(g_object_get_data(G_OBJECT(assistant), "binary")); + filename = g_loaded_binary_get_filename(binary, true); gtk_entry_set_text(GTK_ENTRY(entry), filename); gtk_editable_insert_text(GTK_EDITABLE(entry), ".txt", -1, (gint []) { strlen(filename) }); |