Tue, 05 Jul 2022 01:59:42 -0500
Use a HdyStatusPage as a place holder for conversations
Testing Done:
Ran locally.
Reviewed at https://reviews.imfreedom.org/r/1519/
| pidgin/pidginconversationwindow.c | file | annotate | diff | comparison | revisions | |
| pidgin/resources/Conversations/window.ui | file | annotate | diff | comparison | revisions |
--- a/pidgin/pidginconversationwindow.c Tue Jul 05 00:06:54 2022 -0500 +++ b/pidgin/pidginconversationwindow.c Tue Jul 05 01:59:42 2022 -0500 @@ -85,7 +85,7 @@ } if(!changed) { - gtk_stack_set_visible_child_name(GTK_STACK(window->stack), "__empty__"); + gtk_stack_set_visible_child_name(GTK_STACK(window->stack), "__conversations__"); } } @@ -198,6 +198,7 @@ gtk_tree_store_append(window->model, &iter, NULL); gtk_tree_store_set(window->model, &iter, PIDGIN_CONVERSATION_WINDOW_COLUMN_MARKUP, _("Conversations"), + PIDGIN_CONVERSATION_WINDOW_COLUMN_NAME, "__conversations__", -1); window->conversation_path = gtk_tree_model_get_path(GTK_TREE_MODEL(window->model), &iter);
--- a/pidgin/resources/Conversations/window.ui Tue Jul 05 00:06:54 2022 -0500 +++ b/pidgin/resources/Conversations/window.ui Tue Jul 05 01:59:42 2022 -0500 @@ -21,6 +21,7 @@ --> <interface> <requires lib="gtk+" version="3.24"/> + <requires lib="libhandy" version="1.2"/> <requires lib="pidgin" version="3.0"/> <!-- interface-license-type gplv2 --> <!-- interface-name Pidgin --> @@ -123,17 +124,6 @@ <property name="visible">True</property> <property name="can-focus">False</property> <child> - <object class="GtkLabel"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="label" translatable="yes">Select a conversation to chat!</property> - </object> - <packing> - <property name="name">__empty__</property> - <property name="title" translatable="yes">__empty__</property> - </packing> - </child> - <child> <object class="PidginNotificationList" id="notification_list"> <property name="visible">True</property> <property name="can-focus">False</property> @@ -144,7 +134,21 @@ </object> <packing> <property name="name">__notifications__</property> - <property name="title" translatable="yes">notifications</property> + </packing> + </child> + <child> + <object class="HdyStatusPage"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="icon-name">mail-send-symbolic</property> + <property name="title" translatable="yes">Conversations</property> + <property name="description" translatable="yes">When you send a message to a friend or join a chat it will show up here!</property> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="name">__conversations__</property> <property name="position">1</property> </packing> </child>