mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-05-16 21:50:20 +00:00
Compare commits
4 Commits
d3d5ac905c
...
c123e93704
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c123e93704 | ||
| 7210f16dfc | |||
|
|
2825e992df | ||
| 8e8f534c21 |
@@ -21,7 +21,7 @@
|
|||||||
<url type="help">https://docs.zoitechat.org/en/latest/</url>
|
<url type="help">https://docs.zoitechat.org/en/latest/</url>
|
||||||
<screenshots>
|
<screenshots>
|
||||||
<screenshot type="default">
|
<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>
|
<caption>Main Chat Window</caption>
|
||||||
</screenshot>
|
</screenshot>
|
||||||
</screenshots>
|
</screenshots>
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ cv_tree_sel_cb (GtkTreeSelection *sel, chanview *cv)
|
|||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
GtkTreeIter prev_iter;
|
GtkTreeIter prev_iter;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
|
GtkTreePath *path;
|
||||||
|
GtkTreeView *view;
|
||||||
chan *ch;
|
chan *ch;
|
||||||
chan *prev_ch;
|
chan *prev_ch;
|
||||||
gboolean has_prev;
|
gboolean has_prev;
|
||||||
@@ -60,6 +62,20 @@ cv_tree_sel_cb (GtkTreeSelection *sel, chanview *cv)
|
|||||||
if (has_prev)
|
if (has_prev)
|
||||||
{
|
{
|
||||||
gtk_tree_model_get (model, &prev_iter, COL_CHAN, &prev_ch, -1);
|
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)
|
if (prev_ch != ch)
|
||||||
gtk_tree_store_set (cv->store, &prev_iter, COL_UNDERLINE, PANGO_UNDERLINE_NONE, -1);
|
gtk_tree_store_set (cv->store, &prev_iter, COL_UNDERLINE, PANGO_UNDERLINE_NONE, -1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ notification_backend_show (const char *title, const char *text)
|
|||||||
g_variant_builder_init (¶ms, G_VARIANT_TYPE ("(susssasa{sv}i)"));
|
g_variant_builder_init (¶ms, G_VARIANT_TYPE ("(susssasa{sv}i)"));
|
||||||
g_variant_builder_add (¶ms, "s", "zoitechat"); /* App name */
|
g_variant_builder_add (¶ms, "s", "zoitechat"); /* App name */
|
||||||
g_variant_builder_add (¶ms, "u", 0); /* ID, 0 means don't replace */
|
g_variant_builder_add (¶ms, "u", 0); /* ID, 0 means don't replace */
|
||||||
g_variant_builder_add (¶ms, "s", "io.github.Hexchat"); /* App icon */
|
g_variant_builder_add (¶ms, "s", "net.zoite.Zoitechat"); /* App icon */
|
||||||
g_variant_builder_add (¶ms, "s", title);
|
g_variant_builder_add (¶ms, "s", title);
|
||||||
g_variant_builder_add (¶ms, "s", text);
|
g_variant_builder_add (¶ms, "s", text);
|
||||||
g_variant_builder_add (¶ms, "as", NULL); /* Actions */
|
g_variant_builder_add (¶ms, "as", NULL); /* Actions */
|
||||||
@@ -65,7 +65,7 @@ notification_backend_show (const char *title, const char *text)
|
|||||||
g_variant_builder_open (¶ms, G_VARIANT_TYPE ("a{sv}"));
|
g_variant_builder_open (¶ms, G_VARIANT_TYPE ("a{sv}"));
|
||||||
g_variant_builder_open (¶ms, G_VARIANT_TYPE ("{sv}"));
|
g_variant_builder_open (¶ms, G_VARIANT_TYPE ("{sv}"));
|
||||||
g_variant_builder_add (¶ms, "s", "desktop-entry");
|
g_variant_builder_add (¶ms, "s", "desktop-entry");
|
||||||
g_variant_builder_add (¶ms, "v", g_variant_new_string ("io.github.Hexchat"));
|
g_variant_builder_add (¶ms, "v", g_variant_new_string ("net.zoite.Zoitechat"));
|
||||||
g_variant_builder_close (¶ms);
|
g_variant_builder_close (¶ms);
|
||||||
g_variant_builder_close (¶ms);
|
g_variant_builder_close (¶ms);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user