Skip to content

Commit

Permalink
save to png
Browse files Browse the repository at this point in the history
  • Loading branch information
lidaobing committed May 24, 2024
1 parent 4f414bb commit 32ab514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iptux/DialogBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ void DialogBase::OnSaveImage(GtkImage* image) {
_("_Save"), GTK_RESPONSE_ACCEPT, NULL);
gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog),

Check warning on line 888 in src/iptux/DialogBase.cpp

View check run for this annotation

Codecov / codecov/patch

src/iptux/DialogBase.cpp#L888

Added line #L888 was not covered by tests
TRUE);
gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), "image.bmp");
gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), "image.png");

Check warning on line 890 in src/iptux/DialogBase.cpp

View check run for this annotation

Codecov / codecov/patch

src/iptux/DialogBase.cpp#L890

Added line #L890 was not covered by tests

if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) {
char* save_path = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog));

Check warning on line 893 in src/iptux/DialogBase.cpp

View check run for this annotation

Codecov / codecov/patch

src/iptux/DialogBase.cpp#L892-L893

Added lines #L892 - L893 were not covered by tests
Expand Down

0 comments on commit 32ab514

Please sign in to comment.