Many modern protocols are using uuids as id's and forcing that into a uint64 is
going to lead to collisions. So instead just use a string which should work for
everything.
Testing Done:
Ran the demo and unit tests.
Reviewed at https://reviews.imfreedom.org/r/879/
/*
* Talkatu - GTK widgets for chat applications
* Copyright (C) 2017-2020 Gary Kramlich <grim@reaperworld.com>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library; if not, see <https://www.gnu.org/licenses/>.
*/
#include<glib/gi18n-lib.h>
#include<gtk/gtk.h>
#include<gdk/gdkkeysyms.h>
#include<gumbo.h>
#include<stdio.h>
#include"talkatu/talkatuactiongroup.h"
#include"talkatu/talkatuattachment.h"
#include"talkatu/talkatuattachmentdialog.h"
#include"talkatu/talkatubuffer.h"
#include"talkatu/talkatumarkup.h"
#include"talkatu/talkatutag.h"
#include"talkatu/talkatuview.h"
/**
* SECTION:talkatuview
* @Title: Text View
* @Short_description: Widget that displays a TalkatuBuffer
*
* #TalkatuView handles the display of a #TalkatuBuffer, the keybindings for
* applying formats, as well as displaying links.
*/
/**
* TALKATU_TYPE_VIEW:
*
* The standard _get_type macro for #TalkatuView.
*/
/**
* TalkatuViewClass:
* @format_activate: The class handler for the #TalkatuView::format_activate
* signal.
* @open_url: The class handler for the #TalkatuView::open_url signal.
*
* The backing class to #TalkatuView instances.
*/
/**
* TalkatuView:
*
* A #GtkTextView subclass that's preconfigured with a #TalkatuBuffer.
*/
typedefstruct{
GSimpleActionGroup*action_group;
/* we cache the cursor that's displayed while hovering over a link as well
* the tag for links/anchors to avoid extra lookups.