--- a/pidgin/gtkconv.c Fri Jan 08 06:04:59 2021 -0600
+++ b/pidgin/gtkconv.c Fri Jan 08 06:05:16 2021 -0600
@@ -745,18 +745,6 @@
-menu_new_conv_cb(GtkAction *action, gpointer data)
-menu_join_chat_cb(GtkAction *action, gpointer data)
- pidgin_blist_joinchat_show();
savelog_writefile_cb(void *user_data, const char *filename)
PurpleConversation *conv = (PurpleConversation *)user_data;
@@ -886,15 +874,6 @@
purple_conversation_clear_message_history(conv);
-menu_find_cb(GtkAction *action, gpointer data)
- PidginConvWindow *gtkwin = data;
- PidginConversation *gtkconv = pidgin_conv_window_get_active_gtkconv(gtkwin);
- gtk_widget_show_all(gtkconv->quickfind_container);
- gtk_widget_grab_focus(gtkconv->quickfind_entry);
menu_initiate_media_call_cb(GtkAction *action, gpointer data)
@@ -2394,9 +2373,6 @@
{ "ConversationMenu", NULL, N_("_Conversation"), NULL, NULL, NULL },
- { "NewInstantMessage", PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW, N_("New Instant _Message..."), "<control>M", NULL, G_CALLBACK(menu_new_conv_cb) },
- { "JoinAChat", PIDGIN_STOCK_CHAT, N_("Join a _Chat..."), NULL, NULL, G_CALLBACK(menu_join_chat_cb) },
- { "Find", GTK_STOCK_FIND, N_("_Find..."), NULL, NULL, G_CALLBACK(menu_find_cb) },
{ "ViewLog", NULL, N_("View _Log"), NULL, NULL, G_CALLBACK(menu_view_log_cb) },
{ "SaveAs", GTK_STOCK_SAVE_AS, N_("_Save As..."), NULL, NULL, G_CALLBACK(menu_save_as_cb) },
{ "ClearScrollback", GTK_STOCK_CLEAR, N_("Clea_r Scrollback"), "<control>L", NULL, G_CALLBACK(menu_clear_cb) },
@@ -2436,10 +2412,6 @@
"<menubar name='Conversation'>"
"<menu action='ConversationMenu'>"
- "<menuitem action='NewInstantMessage'/>"
- "<menuitem action='JoinAChat'/>"
- "<menuitem action='Find'/>"
"<menuitem action='ViewLog'/>"
"<menuitem action='SaveAs'/>"
"<menuitem action='ClearScrollback'/>"
@@ -4016,14 +3988,10 @@
g_signal_connect(G_OBJECT(gtkconv->history), "key_release_event",
G_CALLBACK(refocus_entry_cb), gtkconv);
- gtkconv->lower_hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
- gtk_box_pack_start(GTK_BOX(vbox), gtkconv->lower_hbox, FALSE, FALSE, 0);
- gtk_widget_show(gtkconv->lower_hbox);
/* Setup the entry widget and all signals */
gtkconv->editor = talkatu_editor_new();
talkatu_editor_set_buffer(TALKATU_EDITOR(gtkconv->editor), talkatu_html_buffer_new());
- gtk_box_pack_start(GTK_BOX(gtkconv->lower_hbox), gtkconv->editor, TRUE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(vbox), gtkconv->editor, FALSE, FALSE, 0); input = talkatu_editor_get_input(TALKATU_EDITOR(gtkconv->editor));
gtk_widget_set_name(input, "pidgin_conv_entry");
@@ -6296,45 +6264,6 @@
purple_signals_unregister_by_instance(pidgin_conversations_get_handle());
-/**************************************************************************
- * PidginConversation GBoxed code
- **************************************************************************/
-static PidginConversation *
-pidgin_conversation_ref(PidginConversation *gtkconv)
- g_return_val_if_fail(gtkconv != NULL, NULL);
-pidgin_conversation_unref(PidginConversation *gtkconv)
- g_return_if_fail(gtkconv != NULL);
- g_return_if_fail(gtkconv->box_count >= 0);
- if (!gtkconv->box_count--)
- pidgin_conv_destroy(gtkconv->active_conv);
-pidgin_conversation_get_type(void)
- type = g_boxed_type_register_static("PidginConversation",
- (GBoxedCopyFunc)pidgin_conversation_ref,
- (GBoxedFreeFunc)pidgin_conversation_unref);
@@ -7995,40 +7924,3 @@
-/**************************************************************************
- * PidginConvWindow GBoxed code
- **************************************************************************/
-static PidginConvWindow *
-pidgin_conv_window_ref(PidginConvWindow *win)
- g_return_val_if_fail(win != NULL, NULL);
-pidgin_conv_window_unref(PidginConvWindow *win)
- g_return_if_fail(win != NULL);
- g_return_if_fail(win->box_count >= 0);
- pidgin_conv_window_destroy(win);
-pidgin_conv_window_get_type(void)
- type = g_boxed_type_register_static("PidginConvWindow",
- (GBoxedCopyFunc)pidgin_conv_window_ref,
- (GBoxedFreeFunc)pidgin_conv_window_unref);
--- a/pidgin/gtkconv.h Fri Jan 08 06:04:59 2021 -0600
+++ b/pidgin/gtkconv.h Fri Jan 08 06:05:16 2021 -0600
@@ -33,8 +33,6 @@
* @see_also: <link linkend="chapter-signals-gtkconv">Conversation signals</link>
-#define PIDGIN_TYPE_CONVERSATION (pidgin_conversation_get_type())
typedef struct _PidginImPane PidginImPane;
typedef struct _PidginChatPane PidginChatPane;
typedef struct _PidginConversation PidginConversation;
@@ -92,10 +90,7 @@
struct _PidginConversation
PurpleConversation *active_conv;
- PurpleConversation *last_conversed;
@@ -119,8 +114,6 @@
PidginUnseenState unseen_state;
@@ -141,12 +134,6 @@
* with message history */
- GtkWidget *quickfind_entry;
- GtkWidget *quickfind_container;
@@ -156,13 +143,6 @@
**************************************************************************/
- * pidgin_conversation_get_type:
- * Returns: The #GType for the #PidginConversation boxed structure.
-GType pidgin_conversation_get_type(void);
* pidgin_conversations_get_conv_ui_ops:
* Returns the UI operations structure for GTK+ conversations.
--- a/pidgin/gtkconvwin.h Fri Jan 08 06:04:59 2021 -0600
+++ b/pidgin/gtkconvwin.h Fri Jan 08 06:05:16 2021 -0600
@@ -91,9 +91,6 @@
@@ -121,13 +118,6 @@
**************************************************************************/
- * pidgin_conv_window_get_type:
- * Returns: The #GType for the #PidginConvWindow boxed structure.
-GType pidgin_conv_window_get_type(void);
* pidgin_conv_window_new:
* Returns: A new #PidginConvWindow.