claws-mail/src/noticeview.h
Colin Leroy fd1b114a5a 2005-10-13 [colin] 1.9.15cvs44
* src/mimeview.c
	* src/noticeview.c
	* src/noticeview.h
		Add a tooltip on the icon (optional)
		Get rid of the signature buttons and only
		use the icon+tooltip
2005-10-13 19:56:17 +00:00

78 lines
2.5 KiB
C

/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
* Copyright (C) 2002 Hiroyuki Yamamoto & The Sylpheed Claws Team
*
* This program 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.
*/
#ifndef NOTICEVIEW_H__
#define NOTICEVIEW_H__
typedef struct _NoticeView NoticeView;
#include "stock_pixmap.h"
struct _NoticeView
{
GtkWidget *vbox;
GtkWidget *hsep;
GtkWidget *hbox;
GtkWidget *icon;
GtkWidget *text;
GtkWidget *button;
GtkWidget *button2;
GtkWidget *window;
gboolean visible;
gpointer user_data;
gpointer user_data2;
void (*press) (NoticeView *, gpointer user_data);
void (*press2) (NoticeView *, gpointer user_data);
gboolean icon_clickable;
GtkWidget *evtbox;
GtkTooltips *tooltips;
};
NoticeView *noticeview_create (MainWindow *mainwin);
void noticeview_destroy (NoticeView *noticeview);
void noticeview_init (NoticeView *noticeview);
void noticeview_set_icon (NoticeView *noticeview,
StockPixmap icon);
void noticeview_set_text (NoticeView *noticeview,
const gchar *text);
void noticeview_set_button_text
(NoticeView *noticeview,
const gchar *text);
void noticeview_set_2ndbutton_text
(NoticeView *noticeview,
const gchar *text);
gboolean noticeview_is_visible (NoticeView *noticeview);
void noticeview_show (NoticeView *noticeview);
void noticeview_hide (NoticeView *noticeview);
void noticeview_set_button_press_callback
(NoticeView *noticeview,
GtkSignalFunc callback,
gpointer *user_data);
void noticeview_set_2ndbutton_press_callback
(NoticeView *noticeview,
GtkSignalFunc callback,
gpointer *user_data);
void noticeview_set_icon_clickable
(NoticeView *noticeview,
gboolean setting);
void noticeview_set_tooltip
(NoticeView *noticeview,
const gchar *text);
#endif /* NOTICEVIEW_H__ */