diff options
author | Gary Kramlich <grim@reaperworld.com> | 2021-12-06 23:11:42 -0600 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2021-12-06 23:11:42 -0600 |
commit | 46e5139d12ef5497b496b6cfe4dcfa45f9bf2ca8 (patch) | |
tree | 2a2afdcff3ab8525fd88448d4d64d5bd2163921a /pidgin/gtkconv.h | |
parent | 4c609502e88c1234daed2c46e7762612e7f1c553 (diff) | |
download | pidgin-46e5139d12ef5497b496b6cfe4dcfa45f9bf2ca8.tar.gz |
Move conversation management from gtkconv.c to PidginConversationWindow.
This replaces the conversation window's notebook with a treeview and is the
first steps in keeping conversations alive even when they're closed in the
Pidgin ui.
Testing Done:
Opened an im, closed the window, opened the same im again. Opened multiple ims and a chat, verified all functioned as expected.
Reviewed at https://reviews.imfreedom.org/r/1108/
Diffstat (limited to 'pidgin/gtkconv.h')
-rw-r--r-- | pidgin/gtkconv.h | 48 |
1 files changed, 2 insertions, 46 deletions
diff --git a/pidgin/gtkconv.h b/pidgin/gtkconv.h index ffd64b9c91..a8183dfb8c 100644 --- a/pidgin/gtkconv.h +++ b/pidgin/gtkconv.h @@ -70,8 +70,6 @@ enum { #include <purple.h> -#include "gtkconvwin.h" - /************************************************************************** * Structures **************************************************************************/ @@ -87,11 +85,7 @@ struct _PidginConversation GList *convs; GList *send_history; - PidginConvWindow *win; - GtkWidget *tab_cont; - GtkWidget *tabby; - GtkWidget *menu_tabby; PurpleMessageFlags last_flags; GtkWidget *history_sw; @@ -100,12 +94,6 @@ struct _PidginConversation GtkWidget *editor; GtkWidget *entry; - GtkWidget *close; /* "x" on the tab */ - GtkWidget *icon; - GtkWidget *tab_label; - GtkWidget *menu_icon; - GtkWidget *menu_label; - PidginUnseenState unseen_state; guint unseen_count; @@ -175,19 +163,6 @@ GList * pidgin_conversations_get_unseen_all(PidginUnseenState min_state, guint max_count); /** - * pidgin_conversations_fill_menu: - * @menu: Menu widget to add items to. - * @convs: (element-type PurpleConversation): List of PurpleConversation to add to menu. - * - * Fill a menu with a list of conversations. Clicking the conversation - * menu item will present that conversation to the user. - * - * Returns: Number of conversations added to menu. - */ -guint -pidgin_conversations_fill_menu(GtkWidget *menu, GList *convs); - -/** * pidgin_conv_present_conversation: * @conv: The conversation. * @@ -206,14 +181,6 @@ void pidgin_conv_present_conversation(PurpleConversation *conv); gboolean pidgin_conv_attach_to_conversation(PurpleConversation *conv); /** - * pidgin_conv_get_window: - * @gtkconv: The GTK conversation. - * - * Returns: The window the conversation belongs to. - */ -PidginConvWindow *pidgin_conv_get_window(PidginConversation *gtkconv); - -/** * pidgin_conv_new: * @conv: The conversation. * @@ -221,19 +188,6 @@ PidginConvWindow *pidgin_conv_get_window(PidginConversation *gtkconv); */ void pidgin_conv_new(PurpleConversation *conv); -/** - * pidgin_conv_get_tab_at_xy: - * @win: The conversation window. - * @x: X-coordinate to look up. - * @y: Y-coordinate to look up. - * @to_right: (out): Return address for a boolean which will be %TRUE if the - * coordinates are on the right side of the tab (or bottom in case of - * a vertical notebook), %FALSE otherwise. - * - * Returns: The tab index of a conversation in @win at (@x, @y). - */ -int pidgin_conv_get_tab_at_xy(PidginConvWindow *win, int x, int y, gboolean *to_right); - /**************************************************************************/ /* GTK Conversations Subsystem */ /**************************************************************************/ @@ -261,6 +215,8 @@ void pidgin_conversations_init(void); */ void pidgin_conversations_uninit(void); +void pidgin_conversation_detach(PurpleConversation *conv); + G_END_DECLS #endif /* _PIDGIN_CONVERSATION_H_ */ |