pidgin/pidgin

413cde086275
Parents cc8bddbd1b82
Children 7d551859bd94
Add a placeholder to PidginDisplayWindow for the ContactList

Testing Done:
Ran and verified that the new page worked.

Reviewed at https://reviews.imfreedom.org/r/1983/
--- a/pidgin/pidgindisplaywindow.c Fri Oct 28 01:49:25 2022 -0500
+++ b/pidgin/pidgindisplaywindow.c Fri Oct 28 01:52:28 2022 -0500
@@ -55,6 +55,7 @@
GtkWidget *stack;
+ GtkWidget *contact_list;
GtkWidget *notification_list;
GtkTreePath *conversation_path;
@@ -449,6 +450,13 @@
/* Add our toplevels to the tree store. */
gtk_tree_store_append(window->model, &iter, NULL);
gtk_tree_store_set(window->model, &iter,
+ PIDGIN_DISPLAY_WINDOW_COLUMN_OBJECT, window->contact_list,
+ PIDGIN_DISPLAY_WINDOW_COLUMN_NAME, "__contacts__",
+ PIDGIN_DISPLAY_WINDOW_COLUMN_MARKUP, _("Contacts"),
+ -1);
+
+ gtk_tree_store_append(window->model, &iter, NULL);
+ gtk_tree_store_set(window->model, &iter,
PIDGIN_DISPLAY_WINDOW_COLUMN_OBJECT, window->notification_list,
PIDGIN_DISPLAY_WINDOW_COLUMN_NAME, "__notifications__",
PIDGIN_DISPLAY_WINDOW_COLUMN_MARKUP, _("Notifications"),
@@ -509,6 +517,8 @@
gtk_widget_class_bind_template_child(widget_class, PidginDisplayWindow,
stack);
gtk_widget_class_bind_template_child(widget_class, PidginDisplayWindow,
+ contact_list);
+ gtk_widget_class_bind_template_child(widget_class, PidginDisplayWindow,
notification_list);
gtk_widget_class_bind_template_callback(widget_class,
--- a/pidgin/resources/Display/window.ui Fri Oct 28 01:49:25 2022 -0500
+++ b/pidgin/resources/Display/window.ui Fri Oct 28 01:52:28 2022 -0500
@@ -108,6 +108,19 @@
<object class="AdwViewStack" id="stack">
<child>
<object class="AdwViewStackPage">
+ <property name="name">__contacts__</property>
+ <property name="child">
+ <object class="AdwStatusPage" id="contact_list">
+ <property name="icon-name">system-users-symbolic</property>
+ <property name="title" translatable="1">Contacts</property>
+ <property name="description" translatable="1">This is just a placeholder until we build the new ContactList widget.</property>
+ </object>
+ </property>
+ </object>
+ </child>
+
+ <child>
+ <object class="AdwViewStackPage">
<property name="name">__notifications__</property>
<property name="child">
<object class="GtkScrolledWindow">