1 /* Copyright (C) 2016-2018 Shengyu Zhang <i@silverrainz.me> 2 * 3 * This file is part of Srain. 4 * 5 * Srain is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef __SUI_SEND_MESSAGE_H 20 #define __SUI_SEND_MESSAGE_H 21 22 #include <gtk/gtk.h> 23 24 #include "sui_message.h" 25 26 #define SUI_TYPE_SEND_MESSAGE (sui_send_message_get_type()) 27 #define SUI_SEND_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SUI_TYPE_SEND_MESSAGE, SuiSendMessage)) 28 #define SUI_IS_SEND_MESSAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SUI_TYPE_SEND_MESSAGE)) 29 30 typedef struct _SuiSendMessage SuiSendMessage; 31 typedef struct _SuiSendMessageClass SuiSendMessageClass; 32 33 struct _SuiSendMessage { 34 SuiMessage parent; 35 GtkLabel *time_label; 36 }; 37 38 struct _SuiSendMessageClass { 39 SuiMessageClass parent_class; 40 }; 41 42 GType sui_send_message_get_type(void); 43 SuiSendMessage *sui_send_message_new(void *ctx); 44 45 #endif /* __SUI_SEND_MESSAGE_H */ 46