pidgin/pidgin

Parents 702bafe15ee3
Children 34907838c401
Show conversations by default in the conversation window and set the select mode to browse

Testing Done:
Ran and made sure conversations was selected by default and that I couldn't deselect anything in the view.

Reviewed at https://reviews.imfreedom.org/r/1562/
--- a/pidgin/pidginconversationwindow.c Sun Jul 31 15:18:37 2022 -0500
+++ b/pidgin/pidginconversationwindow.c Sun Jul 31 23:17:22 2022 -0500
@@ -45,6 +45,7 @@
GtkWidget *vbox;
GtkWidget *view;
+ GtkTreeSelection *selection;
GtkTreeStore *model;
GtkWidget *stack;
@@ -200,6 +201,7 @@
PIDGIN_CONVERSATION_WINDOW_COLUMN_MARKUP, _("Conversations"),
PIDGIN_CONVERSATION_WINDOW_COLUMN_NAME, "__conversations__",
-1);
+ gtk_tree_selection_select_iter(window->selection, &iter);
window->conversation_path = gtk_tree_model_get_path(GTK_TREE_MODEL(window->model),
&iter);
}
@@ -236,6 +238,8 @@
model);
gtk_widget_class_bind_template_child(widget_class, PidginConversationWindow,
view);
+ gtk_widget_class_bind_template_child(widget_class, PidginConversationWindow,
+ selection);
gtk_widget_class_bind_template_child(widget_class, PidginConversationWindow,
stack);
--- a/pidgin/resources/Conversations/window.ui Sun Jul 31 15:18:37 2022 -0500
+++ b/pidgin/resources/Conversations/window.ui Sun Jul 31 23:17:22 2022 -0500
@@ -84,7 +84,8 @@
<property name="headers-visible">False</property>
<property name="search-column">3</property>
<child internal-child="selection">
- <object class="GtkTreeSelection">
+ <object class="GtkTreeSelection" id="selection">
+ <property name="mode">browse</property>
<signal name="changed" handler="pidgin_conversation_window_selection_changed" object="PidginConversationWindow" swapped="no"/>
</object>
</child>