messenger-gtk

Gtk+3 graphical user interfaces for GNUnet Messenger
Log | Files | Refs | Submodules | README | LICENSE

commit 7c6e78f6eb92194d8f36085a43cdf24a2ed75f9d
parent 03f9d1d46592248c3091221587a5706adee5087b
Author: Jacki <jacki@thejackimonster.de>
Date:   Fri, 19 Jan 2024 05:38:43 +0100

Change camera nick with description

Signed-off-by: Jacki <jacki@thejackimonster.de>

Diffstat:
Mresources/ui/new_contact.ui | 2+-
Msrc/ui/new_contact.c | 10+++++-----
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/resources/ui/new_contact.ui b/resources/ui/new_contact.ui @@ -26,7 +26,7 @@ Author: Tobias Frisch <columns> <!-- column-name name --> <column type="gchararray"/> - <!-- column-name nick --> + <!-- column-name description --> <column type="gchararray"/> </columns> </object> diff --git a/src/ui/new_contact.c b/src/ui/new_contact.c @@ -306,7 +306,7 @@ iterate_global(void *obj, gboolean is_camera = FALSE; const char *name = NULL; - const char *nick = NULL; + const char *description = NULL; const struct spa_dict_item *item; spa_dict_for_each(item, props) @@ -314,8 +314,8 @@ iterate_global(void *obj, if (0 == g_strcmp0(item->key, "node.name")) name = item->value; - if (0 == g_strcmp0(item->key, "node.nick")) - nick = item->value; + if (0 == g_strcmp0(item->key, "node.description")) + description = item->value; if (0 != g_strcmp0(item->key, "media.role")) continue; @@ -326,7 +326,7 @@ iterate_global(void *obj, is_camera = TRUE; } - if ((!is_camera) || (!name) || (!nick)) + if ((!is_camera) || (!name) || (!description)) return 0; GtkTreeIter iter; @@ -335,7 +335,7 @@ iterate_global(void *obj, handle->camera_list_store, &iter, 0, name, - 1, nick, + 1, description, -1 );