small fixes
This commit is contained in:
parent
9840774a87
commit
a807ded65c
|
@ -5,14 +5,14 @@
|
|||
<property name="expand">True</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkSearchBar" id="search_bar">
|
||||
<object class="GtkRevealer" id="search_revealer">
|
||||
<property name="hexpand">True</property>
|
||||
<property name="show_close_button">True</property>
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkSearchEntry" id="search_entry">
|
||||
<property name="primary_icon_name">edit-find-symbolic</property>
|
||||
<property name="placeholder_text" translatable="yes">Search</property>
|
||||
<property name="margin">10px</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="visible">True</property>
|
||||
</object>
|
||||
|
|
|
@ -9,4 +9,5 @@ StartupNotify=false
|
|||
Terminal=false
|
||||
Type=Application
|
||||
Categories=GTK;Network;Chat;InstantMessaging;
|
||||
X-GNOME-UsesNotifications=true
|
||||
X-GNOME-UsesNotifications=true
|
||||
MimeType=x-scheme-handler/xmpp;
|
||||
|
|
|
@ -11,7 +11,7 @@ public class View : Box {
|
|||
public List conversation_list;
|
||||
|
||||
[GtkChild] public SearchEntry search_entry;
|
||||
[GtkChild] public SearchBar search_bar;
|
||||
[GtkChild] public Revealer search_revealer;
|
||||
[GtkChild] private ScrolledWindow scrolled;
|
||||
|
||||
public View(StreamInteractor stream_interactor) {
|
||||
|
|
|
@ -67,7 +67,7 @@ public class View : Box {
|
|||
ArrayList<Object> objects = new ArrayList<Object>();
|
||||
Gee.List<Entities.Message> messages = stream_interactor.get_module(MessageStorage.IDENTITY).get_messages(conversation);
|
||||
if (messages.size > 0) {
|
||||
earliest_message = messages[0];
|
||||
earliest_message = messages[messages.size -1];
|
||||
objects.add_all(messages);
|
||||
}
|
||||
HashMap<Jid, ArrayList<Show>>? shows = stream_interactor.get_module(PresenceManager.IDENTITY).get_shows(conversation.counterpart, conversation.account);
|
||||
|
|
|
@ -30,7 +30,7 @@ public class UnifiedWindow : Window {
|
|||
setup_unified();
|
||||
setup_stack();
|
||||
|
||||
conversation_list_titlebar.search_button.bind_property("active", filterable_conversation_list.search_bar, "search-mode-enabled",
|
||||
conversation_list_titlebar.search_button.bind_property("active", filterable_conversation_list.search_revealer, "reveal-child",
|
||||
BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL);
|
||||
paned.bind_property("position", headerbar_paned, "position", BindingFlags.SYNC_CREATE | BindingFlags.BIDIRECTIONAL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue