Fix some issues in the conversation window. gtk4

Fri, 26 Aug 2022 01:07:29 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Fri, 26 Aug 2022 01:07:29 -0500
branch
gtk4
changeset 41603
999f937df903
parent 41602
7a52387e60ae
child 41604
ca2d6ea565a6

Fix some issues in the conversation window.

The infopane is vertically expanding for some reason, so disable that.

TalkatuScrolledWindow is not longer an option because GtkScrolledWindow is now
a final type.

Testing Done:
Opened the conversation window and verified stuff worked.

Reviewed at https://reviews.imfreedom.org/r/1657/

pidgin/gtkconv.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkconv.c	Fri Aug 26 00:57:06 2022 -0500
+++ b/pidgin/gtkconv.c	Fri Aug 26 01:07:29 2022 -0500
@@ -1572,10 +1572,11 @@
 
 	/* Setup the info pane */
 	gtkconv->infopane = pidgin_info_pane_new(conv);
+	gtk_widget_set_vexpand(gtkconv->infopane, FALSE);
 	gtk_box_append(GTK_BOX(vbox), gtkconv->infopane);
 
 	/* Setup the history widget */
-	gtkconv->history_sw = talkatu_scrolled_window_new();
+	gtkconv->history_sw = gtk_scrolled_window_new();
 	gtk_scrolled_window_set_policy(
 		GTK_SCROLLED_WINDOW(gtkconv->history_sw),
 		GTK_POLICY_NEVER,
@@ -1583,8 +1584,8 @@
 	);
 
 	gtkconv->history = talkatu_history_new();
-	talkatu_scrolled_window_set_child(TALKATU_SCROLLED_WINDOW(gtkconv->history_sw),
-	                                  gtkconv->history);
+	gtk_scrolled_window_set_child(GTK_SCROLLED_WINDOW(gtkconv->history_sw),
+	                              gtkconv->history);
 
 	/* Add the topic */
 	setup_chat_topic(gtkconv, vbox);

mercurial