`gnt_bindable_register_binding` takes a variadic set of arguments, but
when rebinding, we only have the condensed `GList`. Instead, use the
internal `register_binding` function that *does* take a `GList`.
Fortunately, no previous calls to `gnt_bindable_register_binding` were
ever passed parameters, so this would always copy an empty list anyway.
/*
* GNT - The GLib Ncurses Toolkit
*
* GNT is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* 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 program 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 program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include"gntinternal.h"
#undef GNT_LOG_DOMAIN
#define GNT_LOG_DOMAIN "TextView"
#include"gntstyle.h"
#include"gnttextview.h"
#include"gntutils.h"
#include"gntwidgetprivate.h"
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
struct_GntTextView
{
GntWidgetparent;
GString*string;
GList*list;/* List of GntTextLine */
GList*tags;/* A list of tags */
GntTextViewFlagflags;
};
typedefstruct
{
GntTextFormatFlagstvflag;
chtypeflags;
intstart;
intend;/* This is the next byte of the last character of this segment */
}GntTextSegment;
typedefstruct
{
GList*segments;/* A list of GntTextSegments */
intlength;/* The current length of the line so far (ie. onscreen width) */
gbooleansoft;/* TRUE if it's an overflow from prev. line */