diff options
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); } |