diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-07-14 11:01:17 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-07-14 11:01:17 (GMT) |
commit | de82c8165e61e3c19be184dbc00f66bfc7479c76 (patch) | |
tree | 14a1f60c2c975bd2e8a637098ca5948c3637aed8 /src/gui/dialogs | |
parent | 2bd3ea7249d1234204c1b70abac8bc46e221fb95 (diff) |
Updated the code handling binary contents.
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/export_disass.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/dialogs/export_disass.c b/src/gui/dialogs/export_disass.c index beaa3c8..314b9cf 100644 --- a/src/gui/dialogs/export_disass.c +++ b/src/gui/dialogs/export_disass.c @@ -875,7 +875,7 @@ static void register_output_panel(GtkAssistant *assistant) GtkWidget *entry; /* Zone de saisie de texte */ GtkWidget *button; /* Sélection de fichier */ GLoadedBinary *binary; /* Binaire chargé à parcourir */ - const char *filename; /* Chemin d'accès par défaut */ + char *filename; /* Chemin d'accès par défaut */ vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); qck_set_margins(vbox, 8, 8, 8, 8); @@ -907,11 +907,13 @@ static void register_output_panel(GtkAssistant *assistant) /* Choix par défaut */ binary = G_LOADED_BINARY(g_object_get_data(G_OBJECT(assistant), "binary")); - filename = g_loaded_binary_get_name(binary, true); + filename = g_loaded_content_describe(G_LOADED_CONTENT(binary), true); gtk_entry_set_text(GTK_ENTRY(entry), filename); gtk_editable_insert_text(GTK_EDITABLE(entry), ".html", -1, (gint []) { strlen(filename) }); + free(filename); + g_signal_connect(G_OBJECT(entry), "changed", G_CALLBACK(on_export_filename_changed), assistant); } |