-
Notifications
You must be signed in to change notification settings - Fork 10
/
window_merge.h
62 lines (52 loc) · 2.43 KB
/
window_merge.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* @file window_merge.h
* Defines all the prototypes of functions shared across plugin source files
*
* @section LICENSE
* Copyright (C) 2012 David Michael <fedora.dm0@gmail.com>
*
* This file is part of Window Merge.
*
* Window Merge 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 3 of the License, or (at your option)
* any later version.
*
* Window Merge 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
* Window Merge. If not, see <http://www.gnu.org/licenses/>.
**/
#ifndef __WINDOW_MERGE_H__
#define __WINDOW_MERGE_H__
/* Functions for Merged Windows */
void pwm_merge_conversation(PidginBuddyList *);
void pwm_split_conversation(PidginBuddyList *);
void pwm_create_paned_layout(PidginBuddyList *, const char *);
void pwm_set_conv_menus_visible(PidginBuddyList *, gboolean);
/* Dummy Conversation Functions */
void pwm_init_dummy_conversation(PidginBuddyList *);
void pwm_show_dummy_conversation(PidginBuddyList *);
void pwm_hide_dummy_conversation(PidginBuddyList *);
void pwm_free_dummy_conversation(PidginBuddyList *);
/* Utility Functions */
PidginWindow *pwm_blist_get_convs(PidginBuddyList *);
PidginBuddyList *pwm_convs_get_blist(PidginWindow *);
void pwm_widget_replace(GtkWidget *, GtkWidget *, GtkWidget *);
#define pwm_store(pidgin_window, name, value) \
g_object_set_data(G_OBJECT((pidgin_window)->window), "pwm_" name, value)
#define pwm_fetch(pidgin_window, name) \
g_object_get_data(G_OBJECT((pidgin_window)->window), "pwm_" name)
#define pwm_clear(pidgin_window, name) \
g_object_steal_data(G_OBJECT((pidgin_window)->window), "pwm_" name)
/* TRANSLATORS: This is the user-visible name of the plugin. The name was
intended to give a brief sense of what the plugin does, so feel free to be
liberal in adjusting it to make sense for a given locale. */
#define PWM_STR_NAME N_("Window Merge")
/* TRANSLATORS: This is the name of the conversation placement option that is
added to the list to attach conversations to the Buddy List by default. */
#define PWM_STR_CP_BLIST N_("Buddy List window")
#endif /* ifndef __WINDOW_MERGE_H__ */