Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#594: Save Image #595

Merged
merged 13 commits into from
May 25, 2024
Merged

#594: Save Image #595

merged 13 commits into from
May 25, 2024

Conversation

lidaobing
Copy link
Member

No description provided.

@lidaobing lidaobing linked an issue May 24, 2024 that may be closed by this pull request
@lidaobing lidaobing marked this pull request as draft May 24, 2024 02:27
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @lidaobing - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 5 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

GtkTextBuffer* buffer;
GtkTextTagTable* table;
GtkTextIter start, end;
GSList *taglist, *tlist;

widget = GTK_WIDGET(g_datalist_get_data(&widset, "history-textview-widget"));
buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(widget));
buffer = gtk_text_view_get_buffer(chat_history_widget);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): Potential null pointer dereference

Ensure that chat_history_widget is not null before calling gtk_text_view_get_buffer to avoid potential null pointer dereference.

Copy link

codecov bot commented May 24, 2024

Codecov Report

Attention: Patch coverage is 92.30769% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 50.28%. Comparing base (d6ce292) to head (b94bda2).

Current head b94bda2 differs from pull request most recent head 371acec

Please upload reports for the commit 371acec to get more accurate results.

Files Patch % Lines
src/iptux/DialogBase.cpp 92.30% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #595   +/-   ##
=======================================
  Coverage   50.28%   50.28%           
=======================================
  Files          64       64           
  Lines        8257     8255    -2     
=======================================
- Hits         4152     4151    -1     
+ Misses       4105     4104    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codecov-commenter
Copy link

codecov-commenter commented May 24, 2024

Codecov Report

Attention: Patch coverage is 51.78571% with 54 lines in your changes are missing coverage. Please review.

Project coverage is 51.42%. Comparing base (d6ce292) to head (32ab514).

Files Patch % Lines
src/iptux/DialogBase.cpp 38.23% 42 Missing ⚠️
src/iptux/DialogPeer.cpp 0.00% 7 Missing ⚠️
src/iptux/UiHelper.cpp 71.42% 2 Missing ⚠️
src/iptux/UiModels.cpp 89.47% 2 Missing ⚠️
src/iptux-utils/utils.cpp 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #595      +/-   ##
==========================================
+ Coverage   50.28%   51.42%   +1.13%     
==========================================
  Files          64       64              
  Lines        8257     8333      +76     
==========================================
+ Hits         4152     4285     +133     
+ Misses       4105     4048      -57     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iptux-src iptux-src deleted a comment from sourcery-ai bot May 24, 2024
@lidaobing lidaobing changed the title add chat_history_widget #594: Save Image May 24, 2024
@iptux-src iptux-src deleted a comment from sourcery-ai bot May 24, 2024
@lidaobing lidaobing marked this pull request as ready for review May 24, 2024 06:31
sourcery-ai[bot]

This comment was marked as off-topic.

@iptux-src iptux-src deleted a comment from sourcery-ai bot May 24, 2024
@iptux-src iptux-src deleted a comment from sourcery-ai bot May 24, 2024
@lidaobing lidaobing merged commit 906cb83 into master May 25, 2024
14 of 15 checks passed
@lidaobing lidaobing deleted the 594-save-image branch May 25, 2024 02:17
@lidaobing lidaobing added this to the 0.9.2 milestone Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support save image in the chat history
2 participants