4 Commits

Author SHA1 Message Date
deepend-tildeclub
c123e93704 Merge pull request #203 from ZoiteChat/fix-network-tree-collapse-channel-focus
Ignore collapsed parent selects in chanview tree
2026-04-12 23:50:59 -06:00
7210f16dfc Ignore collapsed parent selects in chanview tree 2026-04-12 23:09:52 -06:00
deepend-tildeclub
2825e992df Merge pull request #201 from ZoiteChat/fix-notification-icon
fix notification icon + fix flatpak screenshot
2026-04-12 21:00:37 -06:00
8e8f534c21 fix notification icon + fix flatpak screenshot 2026-04-12 20:46:47 -06:00
3 changed files with 19 additions and 3 deletions

View File

@@ -21,7 +21,7 @@
<url type="help">https://docs.zoitechat.org/en/latest/</url>
<screenshots>
<screenshot type="default">
<image>https://zoitechat.org/assets/ZoiteChat.png</image>
<image>https://zoitechat.org/assets/img/zoitechat-screenshot.png</image>
<caption>Main Chat Window</caption>
</screenshot>
</screenshots>

View File

@@ -45,6 +45,8 @@ cv_tree_sel_cb (GtkTreeSelection *sel, chanview *cv)
GtkTreeModel *model;
GtkTreeIter prev_iter;
GtkTreeIter iter;
GtkTreePath *path;
GtkTreeView *view;
chan *ch;
chan *prev_ch;
gboolean has_prev;
@@ -60,6 +62,20 @@ cv_tree_sel_cb (GtkTreeSelection *sel, chanview *cv)
if (has_prev)
{
gtk_tree_model_get (model, &prev_iter, COL_CHAN, &prev_ch, -1);
if (prev_ch != ch && gtk_tree_store_is_ancestor (cv->store, &iter, &prev_iter))
{
view = gtk_tree_selection_get_tree_view (sel);
path = gtk_tree_model_get_path (model, &iter);
if (path)
{
if (!gtk_tree_view_row_expanded (view, path))
{
gtk_tree_path_free (path);
return;
}
gtk_tree_path_free (path);
}
}
if (prev_ch != ch)
gtk_tree_store_set (cv->store, &prev_iter, COL_UNDERLINE, PANGO_UNDERLINE_NONE, -1);
}

View File

@@ -56,7 +56,7 @@ notification_backend_show (const char *title, const char *text)
g_variant_builder_init (&params, G_VARIANT_TYPE ("(susssasa{sv}i)"));
g_variant_builder_add (&params, "s", "zoitechat"); /* App name */
g_variant_builder_add (&params, "u", 0); /* ID, 0 means don't replace */
g_variant_builder_add (&params, "s", "io.github.Hexchat"); /* App icon */
g_variant_builder_add (&params, "s", "net.zoite.Zoitechat"); /* App icon */
g_variant_builder_add (&params, "s", title);
g_variant_builder_add (&params, "s", text);
g_variant_builder_add (&params, "as", NULL); /* Actions */
@@ -65,7 +65,7 @@ notification_backend_show (const char *title, const char *text)
g_variant_builder_open (&params, G_VARIANT_TYPE ("a{sv}"));
g_variant_builder_open (&params, G_VARIANT_TYPE ("{sv}"));
g_variant_builder_add (&params, "s", "desktop-entry");
g_variant_builder_add (&params, "v", g_variant_new_string ("io.github.Hexchat"));
g_variant_builder_add (&params, "v", g_variant_new_string ("net.zoite.Zoitechat"));
g_variant_builder_close (&params);
g_variant_builder_close (&params);