Compare commits

..
Author SHA1 Message Date
deepend 2922c9982a fix build warnings 2026-09-16 01:17:45 -06:00
deepend 062c105bc1 fix application crash + other fixes 2026-09-16 01:17:45 -06:00
deepend 18d77b7279 enable storage information 2026-09-16 01:17:45 -06:00
deepend a1cd9897ea fix Win32 IP Helper includes for sysinfo 2026-09-16 01:17:45 -06:00
deepend dad6abee58 bring sysinfo into 2026 2026-09-16 01:17:45 -06:00
deepend 2672f9b087 Start acknowleding 2.20 development 2026-09-16 01:16:35 -06:00
deepend 4315a75a12 add 2.19.1 release notes 2026-09-16 00:10:49 -06:00
deepend-tildeclub fc4a7454ad Merge pull request #391 from ZoiteChat/fix-away-tracking
Fix away tracking
2026-09-15 11:45:16 -07:00
deepend 87410aea50 Fix away tracking 2026-09-15 12:30:04 -06:00
deepend-tildeclub de98d00a1c Merge pull request #390 from ZoiteChat/fix-issue-369
defer channel tree scrolling until realized
2026-09-14 05:36:00 -07:00
deepend e94ffd9d79 defer channel tree scrolling until realized 2026-09-14 04:11:23 -06:00
deepend-tildeclub d7aebb784d Merge pull request #387 from ZoiteChat/tab-font-custom
add custom tab fonts and reduce close button size
2026-09-14 02:56:19 -07:00
deepend-tildeclub 20b8cb939d Merge pull request #389 from ZoiteChat/fix-issue-386
fix theme service tests
2026-09-14 02:47:50 -07:00
deepend ff4217c3d1 fix theme service tests 2026-09-13 15:34:56 -06:00
deepend 4fb72d30d8 add custom tab fonts and reduce close button size 2026-09-12 06:43:08 -06:00
10 changed files with 93 additions and 24 deletions
+1 -1
View File
@@ -1 +1 @@
2.19.0 2.20.0-dev
@@ -29,6 +29,22 @@
<id>zoitechat.desktop</id> <id>zoitechat.desktop</id>
</provides> </provides>
<releases> <releases>
<release date="2026-09-15" version="2.19.1">
<description>
<ul>
<li>Fixed /msg messages showing twice on servers using IRCv3 <code>echo-message</code>.</li>
<li>Fixed escaping a leading command slash so <code>//text</code> sends <code>/text</code> as normal chat.</li>
<li>Fixed automatic away clearing when sending messages on servers using <code>echo-message</code>.</li>
<li>Fixed other users' away status not updating until rejoining a channel when <code>away-notify</code> updates are missed.</li>
<li>Fixed private messages and <code>/me</code> actions being routed to the wrong window when using WeeChat's IRC relay, while preserving channel ACTION routing.</li>
<li>Fixed a Flatpak startup error caused by the D-Bus service still using the old HexChat app ID.</li>
<li>Fixed optional Windows 10 theme downloads in the Windows installer.</li>
<li>Fixed the GTK warning when switching from channel tabs to the channel tree.</li>
<li>Fixed GTK3 theme archive root detection so themes with an <code>index.theme</code> file are preferred correctly.</li>
<li>Fixed source-build configuration when plugin AppStream metadata installation is disabled, and corrected the minimum Meson version to 0.59.</li>
</ul>
</description>
</release>
<release date="2026-07-28" version="2.19.0"> <release date="2026-07-28" version="2.19.0">
<description> <description>
<ul> <ul>
+14
View File
@@ -1,6 +1,20 @@
ZoiteChat ChangeLog ZoiteChat ChangeLog
================= =================
2.19.1 (2026-09-15)
-------------------
- Fixed ``/msg`` messages showing twice on servers using IRCv3 ``echo-message``.
- Fixed escaping a leading command slash so ``//text`` sends ``/text`` as normal chat.
- Fixed automatic away clearing when sending messages on servers using ``echo-message``.
- Fixed other users' away status not updating until rejoining a channel when ``away-notify`` updates are missed.
- Fixed private messages and ``/me`` actions being routed to the wrong window when using WeeChat's IRC relay, while preserving channel ACTION routing.
- Fixed a Flatpak startup error caused by the D-Bus service still using the old HexChat app ID.
- Fixed optional Windows 10 theme downloads in the Windows installer.
- Fixed the GTK warning when switching from channel tabs to the channel tree.
- Fixed GTK3 theme archive root detection so themes with an ``index.theme`` file are preferred correctly.
- Fixed source-build configuration when plugin AppStream metadata installation is disabled, and corrected the minimum Meson version to 0.59.
2.19.0 (2026-07-28) 2.19.0 (2026-07-28)
------------------- -------------------
+1
View File
@@ -443,6 +443,7 @@ const struct prefs vars[] =
{"gui_tab_chans", P_OFFINT (hex_gui_tab_chans), TYPE_BOOL}, {"gui_tab_chans", P_OFFINT (hex_gui_tab_chans), TYPE_BOOL},
{"gui_tab_dialogs", P_OFFINT (hex_gui_tab_dialogs), TYPE_BOOL}, {"gui_tab_dialogs", P_OFFINT (hex_gui_tab_dialogs), TYPE_BOOL},
{"gui_tab_dots", P_OFFINT (hex_gui_tab_dots), TYPE_BOOL}, {"gui_tab_dots", P_OFFINT (hex_gui_tab_dots), TYPE_BOOL},
{"gui_tab_font", P_OFFSET (hex_gui_tab_font), TYPE_STR},
{"gui_tab_icons", P_OFFINT (hex_gui_tab_icons), TYPE_BOOL}, {"gui_tab_icons", P_OFFINT (hex_gui_tab_icons), TYPE_BOOL},
{"gui_dark_mode", P_OFFINT (hex_gui_dark_mode), TYPE_INT}, {"gui_dark_mode", P_OFFINT (hex_gui_dark_mode), TYPE_INT},
{"gui_gtk3_variant", P_OFFINT (hex_gui_gtk3_variant), TYPE_INT}, {"gui_gtk3_variant", P_OFFINT (hex_gui_gtk3_variant), TYPE_INT},
+4 -2
View File
@@ -858,8 +858,10 @@ path_depth_from_root (const char *base, const char *path)
static gint static gint
theme_root_candidate_compare (gconstpointer a, gconstpointer b) theme_root_candidate_compare (gconstpointer a, gconstpointer b)
{ {
const ThemeRootCandidate *ca = a; /* g_ptr_array_sort() passes pointers to the array slots, not the values
const ThemeRootCandidate *cb = b; * stored in those slots. Dereference once before comparing candidates. */
const ThemeRootCandidate *ca = *(ThemeRootCandidate * const *) a;
const ThemeRootCandidate *cb = *(ThemeRootCandidate * const *) b;
if (ca->has_index_theme != cb->has_index_theme) if (ca->has_index_theme != cb->has_index_theme)
return ca->has_index_theme ? -1 : 1; return ca->has_index_theme ? -1 : 1;
if (ca->depth != cb->depth) if (ca->depth != cb->depth)
+1 -2
View File
@@ -463,8 +463,7 @@ doover:
while (list) while (list)
{ {
sess = list->data; sess = list->data;
if (!sess->server->have_awaynotify) sess->done_away_check = FALSE;
sess->done_away_check = FALSE;
list = list->next; list = list->next;
} }
loop++; loop++;
+1
View File
@@ -315,6 +315,7 @@ struct zoitechatprefs
char hex_dcc_completed_dir[PATHLEN + 1]; char hex_dcc_completed_dir[PATHLEN + 1];
char hex_dcc_dir[PATHLEN + 1]; char hex_dcc_dir[PATHLEN + 1];
char hex_dcc_ip[DOMAINLEN + 1]; char hex_dcc_ip[DOMAINLEN + 1];
char hex_gui_tab_font[FONTNAMELEN + 1];
char hex_gui_ulist_doubleclick[256]; char hex_gui_ulist_doubleclick[256];
char hex_input_command_char[4]; char hex_input_command_char[4];
char hex_irc_extra_hilight[300]; char hex_irc_extra_hilight[300];
+21
View File
@@ -19,6 +19,8 @@
/* file included in chanview.c */ /* file included in chanview.c */
#include "theme/theme-css.h"
typedef struct typedef struct
{ {
GtkWidget *outer; /* outer box */ GtkWidget *outer; /* outer box */
@@ -690,6 +692,7 @@ cv_tabs_add (chanview *cv, chan *ch, char *name, GtkTreeIter *parent)
GtkWidget *label; GtkWidget *label;
GtkWidget *close_button; GtkWidget *close_button;
GtkWidget *close_icon; GtkWidget *close_icon;
GtkCssProvider *close_css;
but = gtk_toggle_button_new (); but = gtk_toggle_button_new ();
gtk_widget_set_name (but, "zoitechat-tab"); gtk_widget_set_name (but, "zoitechat-tab");
@@ -698,9 +701,27 @@ cv_tabs_add (chanview *cv, chan *ch, char *name, GtkTreeIter *parent)
cv_add_scroll_events (but); cv_add_scroll_events (but);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
label = gtk_label_new (name); label = gtk_label_new (name);
if (prefs.hex_gui_tab_font[0])
{
PangoFontDescription *font_desc;
/* Keep activity colours and the Smaller text scale in the label attributes. */
font_desc = pango_font_description_from_string (prefs.hex_gui_tab_font);
gtkutil_apply_palette (label, NULL, NULL, font_desc);
pango_font_description_free (font_desc);
}
close_button = gtk_button_new (); close_button = gtk_button_new ();
cv_add_scroll_events (close_button); cv_add_scroll_events (close_button);
gtk_style_context_add_class (gtk_widget_get_style_context (close_button), "flat"); gtk_style_context_add_class (gtk_widget_get_style_context (close_button), "flat");
gtk_style_context_add_class (gtk_widget_get_style_context (close_button), "zoitechat-tab-close");
/* Theme button minimums and padding must not determine the tab height. */
close_css = gtk_css_provider_new ();
gtk_css_provider_load_from_data (close_css,
".zoitechat-tab-close { min-width: 0; min-height: 0; padding: 1px; margin: 0; }",
-1, NULL);
theme_css_apply_widget_provider (close_button, GTK_STYLE_PROVIDER (close_css));
g_object_unref (close_css);
gtk_widget_set_valign (close_button, GTK_ALIGN_CENTER);
close_icon = gtk_image_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_MENU); close_icon = gtk_image_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_MENU);
gtk_image_set_pixel_size (GTK_IMAGE (close_icon), 8); gtk_image_set_pixel_size (GTK_IMAGE (close_icon), 8);
gtk_button_set_always_show_image (GTK_BUTTON (close_button), TRUE); gtk_button_set_always_show_image (GTK_BUTTON (close_button), TRUE);
+28 -19
View File
@@ -301,26 +301,35 @@ cv_tree_focus (chan *ch)
path = gtk_tree_model_get_path (model, &ch->iter); path = gtk_tree_model_get_path (model, &ch->iter);
if (path) if (path)
{ {
/* This full section does what if (!gtk_widget_get_realized (GTK_WIDGET (tree)))
* gtk_tree_view_scroll_to_cell (tree, path, NULL, TRUE, 0.5, 0.5);
* does, except it only scrolls the window if the provided cell is
* not visible. Basic algorithm taken from gtktreeview.c */
/* obtain information to see if the cell is visible */
gtk_tree_view_get_background_area (tree, path, NULL, &cell_rect);
gtk_tree_view_get_visible_rect (tree, &vis_rect);
/* The cordinates aren't offset correctly */
gtk_tree_view_convert_widget_to_bin_window_coords ( tree, cell_rect.x, cell_rect.y, NULL, &cell_rect.y );
/* only need to scroll if out of bounds */
if (cell_rect.y < vis_rect.y ||
cell_rect.y + cell_rect.height > vis_rect.y + vis_rect.height)
{ {
dest_y = cell_rect.y - ((vis_rect.height - cell_rect.height) * 0.5); /* Layout changes can restore focus before the new tree is realized.
if (dest_y < 0) * Let GTK track the row and scroll once its geometry is available. */
dest_y = 0; gtk_tree_view_scroll_to_cell (tree, path, NULL, TRUE, 0.5, 0.5);
gtk_tree_view_scroll_to_point (tree, -1, dest_y); }
else
{
/* This full section does what
* gtk_tree_view_scroll_to_cell (tree, path, NULL, TRUE, 0.5, 0.5);
* does, except it only scrolls the window if the provided cell is
* not visible. Basic algorithm taken from gtktreeview.c */
/* obtain information to see if the cell is visible */
gtk_tree_view_get_background_area (tree, path, NULL, &cell_rect);
gtk_tree_view_get_visible_rect (tree, &vis_rect);
/* The cordinates aren't offset correctly */
gtk_tree_view_convert_widget_to_bin_window_coords ( tree, cell_rect.x, cell_rect.y, NULL, &cell_rect.y );
/* only need to scroll if out of bounds */
if (cell_rect.y < vis_rect.y ||
cell_rect.y + cell_rect.height > vis_rect.y + vis_rect.height)
{
dest_y = cell_rect.y - ((vis_rect.height - cell_rect.height) * 0.5);
if (dest_y < 0)
dest_y = 0;
gtk_tree_view_scroll_to_point (tree, -1, dest_y);
}
} }
/* theft done, now make it focused like */ /* theft done, now make it focused like */
gtk_tree_view_set_cursor (tree, path, NULL, FALSE); gtk_tree_view_set_cursor (tree, path, NULL, FALSE);
+6
View File
@@ -340,6 +340,9 @@ static const setting tabs_settings[] =
{ST_TOGGLE, N_("Show close button on tabs"), P_OFFINTNL(hex_gui_tab_closebuttons), 0, 0, 0}, {ST_TOGGLE, N_("Show close button on tabs"), P_OFFINTNL(hex_gui_tab_closebuttons), 0, 0, 0},
{ST_TOGGLE, N_("Middle click to close tab"), P_OFFINTNL(hex_gui_tab_middleclose), 0, 0, 0}, {ST_TOGGLE, N_("Middle click to close tab"), P_OFFINTNL(hex_gui_tab_middleclose), 0, 0, 0},
{ST_TOGGLE, N_("Smaller text"), P_OFFINTNL(hex_gui_tab_small), 0, 0, 0}, {ST_TOGGLE, N_("Smaller text"), P_OFFINTNL(hex_gui_tab_small), 0, 0, 0},
{ST_EFONT, N_("Tab font:"), P_OFFSETNL(hex_gui_tab_font),
N_("Font for server and channel tabs in the Tabs layout. Leave blank to use the theme font. Smaller text still applies."),
0, sizeof prefs.hex_gui_tab_font},
{ST_MENU, N_("Focus new tabs:"), P_OFFINTNL(hex_gui_tab_newtofront), 0, focusnewtabsmenu, 0}, {ST_MENU, N_("Focus new tabs:"), P_OFFINTNL(hex_gui_tab_newtofront), 0, focusnewtabsmenu, 0},
{ST_MENU, N_("Placement of notices:"), P_OFFINTNL(hex_irc_notice_pos), 0, noticeposmenu, 0}, {ST_MENU, N_("Placement of notices:"), P_OFFINTNL(hex_irc_notice_pos), 0, noticeposmenu, 0},
{ST_MENU, N_("Show channel switcher at:"), P_OFFINTNL(hex_gui_tab_pos), 0, cspos, 1}, {ST_MENU, N_("Show channel switcher at:"), P_OFFINTNL(hex_gui_tab_pos), 0, cspos, 1},
@@ -2335,6 +2338,9 @@ setup_apply (struct zoitechatprefs *pr)
if (DIFF (hex_gui_tab_icons) || DIFF (hex_gui_tab_closebuttons) || if (DIFF (hex_gui_tab_icons) || DIFF (hex_gui_tab_closebuttons) ||
DIFF (hex_gui_tab_small)) DIFF (hex_gui_tab_small))
live_changes.chanview = TRUE; live_changes.chanview = TRUE;
if (pr->hex_gui_tab_layout == 0 &&
strcmp (pr->hex_gui_tab_font, prefs.hex_gui_tab_font) != 0)
live_changes.chanview = TRUE;
if (DIFF (hex_gui_tab_sort)) if (DIFF (hex_gui_tab_sort))
live_changes.tab_resort = TRUE; live_changes.tab_resort = TRUE;
if (DIFF (hex_gui_tab_trunc)) if (DIFF (hex_gui_tab_trunc))