Blame src/tepl-info-bar.h

Packit 116408
/* Code copied from Tepl:
Packit 116408
 * https://wiki.gnome.org/Projects/Tepl
Packit 116408
 * Do not modify, modify upstream and then copy it back here.
Packit 116408
 */
Packit 116408
Packit 116408
/*
Packit 116408
 * This file is part of Tepl, a text editor library.
Packit 116408
 *
Packit 116408
 * Copyright 2016, 2017 - Sébastien Wilmet <swilmet@gnome.org>
Packit 116408
 *
Packit 116408
 * Tepl is free software; you can redistribute it and/or modify it under
Packit 116408
 * the terms of the GNU Lesser General Public License as published by the
Packit 116408
 * Free Software Foundation; either version 2.1 of the License, or (at your
Packit 116408
 * option) any later version.
Packit 116408
 *
Packit 116408
 * Tepl is distributed in the hope that it will be useful, but WITHOUT ANY
Packit 116408
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
Packit 116408
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
Packit 116408
 * License for more details.
Packit 116408
 *
Packit 116408
 * You should have received a copy of the GNU Lesser General Public License
Packit 116408
 * along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit 116408
 */
Packit 116408
Packit 116408
#ifndef TEPL_INFO_BAR_H
Packit 116408
#define TEPL_INFO_BAR_H
Packit 116408
Packit 116408
#include <gtk/gtk.h>
Packit 116408
Packit 116408
G_BEGIN_DECLS
Packit 116408
Packit 116408
#define TEPL_TYPE_INFO_BAR (tepl_info_bar_get_type ())
Packit 116408
G_DECLARE_DERIVABLE_TYPE (TeplInfoBar, tepl_info_bar,
Packit 116408
			  TEPL, INFO_BAR,
Packit 116408
			  GtkInfoBar)
Packit 116408
Packit 116408
struct _TeplInfoBarClass
Packit 116408
{
Packit 116408
	GtkInfoBarClass parent_class;
Packit 116408
Packit 116408
	gpointer padding[12];
Packit 116408
};
Packit 116408
Packit 116408
TeplInfoBar *		tepl_info_bar_new				(void);
Packit 116408
Packit 116408
TeplInfoBar *		tepl_info_bar_new_simple			(GtkMessageType  msg_type,
Packit 116408
									 const gchar    *primary_msg,
Packit 116408
									 const gchar    *secondary_msg);
Packit 116408
Packit 116408
void			tepl_info_bar_add_icon				(TeplInfoBar *info_bar);
Packit 116408
Packit 116408
void			tepl_info_bar_add_primary_message		(TeplInfoBar *info_bar,
Packit 116408
									 const gchar *primary_msg);
Packit 116408
Packit 116408
void			tepl_info_bar_add_secondary_message		(TeplInfoBar *info_bar,
Packit 116408
									 const gchar *secondary_msg);
Packit 116408
Packit 116408
void			tepl_info_bar_add_content_widget		(TeplInfoBar *info_bar,
Packit 116408
									 GtkWidget   *content);
Packit 116408
Packit 116408
void			tepl_info_bar_add_close_button			(TeplInfoBar *info_bar);
Packit 116408
Packit 116408
GtkLabel *		tepl_info_bar_create_label			(void);
Packit 116408
Packit 116408
G_GNUC_INTERNAL
Packit 116408
void			_tepl_info_bar_set_size_request			(GtkInfoBar *info_bar);
Packit 116408
Packit 116408
G_END_DECLS
Packit 116408
Packit 116408
#endif /* TEPL_INFO_BAR_H */