talkatu/talkatu

Fix a few things found in review

2020-06-29, Gary Kramlich
a831357ccddd
Fix a few things found in review
/*
* talkatu
* Copyright (C) 2017-2019 Gary Kramlich <grim@reaperworld.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#if !defined(TALKATU_GLOBAL_HEADER_INSIDE) && !defined(TALKATU_COMPILATION)
#error "only <talkatu.h> may be included directly"
#endif
#ifndef TALKATU_HISTORY_BUFFER_H
#define TALKATU_HISTORY_BUFFER_H
#include <gtk/gtk.h>
#include <talkatu/talkatubuffer.h>
#include <talkatu/talkatumessage.h>
G_BEGIN_DECLS
#define TALKATU_TYPE_HISTORY_BUFFER (talkatu_history_buffer_get_type())
G_DECLARE_DERIVABLE_TYPE(TalkatuHistoryBuffer, talkatu_history_buffer, TALKATU, HISTORY_BUFFER, GtkTextBuffer)
struct _TalkatuHistoryBufferClass {
/*< private >*/
GtkTextBufferClass parent;
/*< public >*/
void (*write_message)(TalkatuHistoryBuffer *buffer, TalkatuMessage *message);
/*< private >*/
gpointer reserved[4];
};
GtkTextBuffer *talkatu_history_buffer_new(void);
void talkatu_history_buffer_write_message(TalkatuHistoryBuffer *buffer, TalkatuMessage *message);
G_END_DECLS
#endif /* TALKATU_HISTORY_BUFFER_H */