blob: 7f23631a0684bda001b14a48518be86af2024b00 [file] [log] [blame]
Sébastien Blin05752142017-10-03 11:25:02 -04001/****************************************************************************
Guillaume Roguez77c579d2018-01-30 15:54:02 -05002 * Copyright (C) 2017-2018 Savoir-faire Linux *
Sébastien Blin05752142017-10-03 11:25:02 -04003 * Author: Nicolas Jäger <nicolas.jager@savoirfairelinux.com> *
4 * Author: Sébastien Blin <sebastien.blin@savoirfairelinux.com> *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Lesser General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2.1 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 ***************************************************************************/
19#pragma once
20
21// GTK+ related
22#include <gtk/gtk.h>
23
24// LRC
25#include "accountcontainer.h"
26
27G_BEGIN_DECLS
28
29#define CONVERSATION_POPUP_MENU_TYPE (conversation_popup_menu_get_type ())
30#define CONVERSATION_POPUP_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONVERSATION_POPUP_MENU_TYPE, ConversationPopupMenu))
31#define CONVERSATION_POPUP_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), CONVERSATION_POPUP_MENU_TYPE, ConversationPopupMenuClass))
32#define IS_CONVERSATION_POPUP_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CONVERSATION_POPUP_MENU_TYPE))
33#define IS_CONVERSATION_POPUP_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), CONVERSATION_POPUP_MENU_TYPE))
34
35typedef struct _ConversationPopupMenu ConversationPopupMenu;
36typedef struct _ConversationPopupMenuClass ConversationPopupMenuClass;
37
38GType conversation_popup_menu_get_type (void) G_GNUC_CONST;
39GtkWidget *conversation_popup_menu_new (GtkTreeView *treeview, AccountContainer* accountContainer);
40gboolean conversation_popup_menu_show (ConversationPopupMenu *self, GdkEventButton *event);
41
42G_END_DECLS