Skip to content

Commit

Permalink
Merge pull request #522 from iptux-src/issue_520
Browse files Browse the repository at this point in the history
fix issue520: when resize the group chat window, user icon will be hi…
  • Loading branch information
lidaobing authored Sep 20, 2023
2 parents c9cdbdf + e82dd22 commit 47605fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/iptux/DialogGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void DialogGroup::UpdatePalData(PalInfo* pal) {
/* 查询项所在的位置,若没有则添加 */
widget = GTK_WIDGET(g_datalist_get_data(&widset, "member-treeview-widget"));
model = gtk_tree_view_get_model(GTK_TREE_VIEW(widget));
data = NULL; //防止可能出现的(data == pal)
data = NULL; // 防止可能出现的(data == pal)
if (gtk_tree_model_get_iter_first(model, &iter)) {
do {
gtk_tree_model_get(model, &iter, 3, &data, -1);
Expand Down Expand Up @@ -247,7 +247,7 @@ GtkWidget* DialogGroup::CreateAllArea() {
gtk_paned_set_position(
GTK_PANED(memberEnclosurePaned),
config->GetInt("group_memberenclosure_paned_divide", 100));
gtk_paned_pack1(GTK_PANED(mainPaned), memberEnclosurePaned, FALSE, TRUE);
gtk_paned_pack1(GTK_PANED(mainPaned), memberEnclosurePaned, FALSE, FALSE);
g_signal_connect_swapped(memberEnclosurePaned, "notify::position",
G_CALLBACK(onUIChanged), this);

Expand Down Expand Up @@ -604,7 +604,7 @@ bool DialogGroup::SendTextMsg() {

/* 考察缓冲区内是否存在数据 */
textview = GTK_WIDGET(g_datalist_get_data(&widset, "input-textview-widget"));
gtk_widget_grab_focus(textview); //为下一次任务做准备
gtk_widget_grab_focus(textview); // 为下一次任务做准备
buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview));
gtk_text_buffer_get_bounds(buffer, &start, &end);
if (gtk_text_iter_equal(&start, &end))
Expand Down

0 comments on commit 47605fc

Please sign in to comment.