Skip to content

Commit

Permalink
use bmp
Browse files Browse the repository at this point in the history
  • Loading branch information
lidaobing committed May 24, 2024
1 parent 82a82ed commit b77976a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iptux/DialogBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ void DialogBase::OnChatHistoryInsertChildAnchor(DialogBase* self,
const char* path =
(const char*)g_object_get_data(G_OBJECT(anchor), kObjectKeyImagePath);
if (!path) {
LOG_WARN("No image path found in anchor.");
LOG_ERROR("No image path found in anchor.");
return;

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

View check run for this annotation

Codecov / codecov/patch

src/iptux/DialogBase.cpp#L852-L853

Added lines #L852 - L853 were not covered by tests
}

Expand Down 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.png");
gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog), "image.bmp");

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 b77976a

Please sign in to comment.