Skip to content
Snippets Groups Projects
Commit f3499364 authored by Nico's avatar Nico
Browse files

Remove room legacy names

parent 2c5d71f0
No related branches found
No related tags found
No related merge requests found
...@@ -31,8 +31,8 @@ class MainWindowContainer(Container): ...@@ -31,8 +31,8 @@ class MainWindowContainer(Container):
return self.builder.get_object("main_window_leaflet") return self.builder.get_object("main_window_leaflet")
@property @property
def room_name_label(self): def contact_name_label(self):
return self.builder.get_object("room_name") return self.builder.get_object("contact_name")
@property @property
def contacts_list_box(self): def contacts_list_box(self):
...@@ -79,7 +79,7 @@ class MainWindowContainer(Container): ...@@ -79,7 +79,7 @@ class MainWindowContainer(Container):
self.chat_placeholder.show() self.chat_placeholder.show()
self._clear_history_container() self._clear_history_container()
self.contacts_list_box.unselect_all() self.contacts_list_box.unselect_all()
self.room_name_label.set_text("") self.contact_name_label.set_text("")
def _prepare_chat_view(self, contact_name): def _prepare_chat_view(self, contact_name):
if self._no_chat_opened(): if self._no_chat_opened():
...@@ -90,7 +90,7 @@ class MainWindowContainer(Container): ...@@ -90,7 +90,7 @@ class MainWindowContainer(Container):
self.chat_view.show() self.chat_view.show()
self.main_window_leaflet.set_visible_child( self.main_window_leaflet.set_visible_child(
self.main_content_container) self.main_content_container)
self.room_name_label.set_text(contact_name) self.contact_name_label.set_text(contact_name)
def _setup_private_chat_widget(self, contact_name, contact_id): def _setup_private_chat_widget(self, contact_name, contact_id):
private_chat_widget = PrivateChatContainer(contact_name, contact_id) private_chat_widget = PrivateChatContainer(contact_name, contact_id)
...@@ -123,7 +123,7 @@ class MainWindowContainer(Container): ...@@ -123,7 +123,7 @@ class MainWindowContainer(Container):
self._setup_main_window_stack() self._setup_main_window_stack()
self._setup_headerbar_stack_holder() self._setup_headerbar_stack_holder()
self.room_name_label.set_text("") self.contact_name_label.set_text("")
def _setup_main_window_stack(self): def _setup_main_window_stack(self):
main_window_stack = self.builder.get_object("main_window_stack") main_window_stack = self.builder.get_object("main_window_stack")
......
...@@ -92,7 +92,6 @@ ...@@ -92,7 +92,6 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="name">room</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
...@@ -297,7 +296,7 @@ ...@@ -297,7 +296,7 @@
</object> </object>
</child> </child>
<child> <child>
<object class="GtkHeaderBar" id="room_header_bar"> <!--right titlebar--> <object class="GtkHeaderBar" id="chat_header_bar"> <!--right titlebar-->
<property name="show-close-button">True</property> <property name="show-close-button">True</property>
<property name="has-subtitle">False</property> <property name="has-subtitle">False</property>
<property name="hexpand">true</property> <property name="hexpand">true</property>
...@@ -343,15 +342,13 @@ ...@@ -343,15 +342,13 @@
<property name="propagate_natural_height">True</property> <property name="propagate_natural_height">True</property>
<property name="propagate_natural_width">False</property> <property name="propagate_natural_width">False</property>
<child> <child>
<object class="GtkBox" id="room_info"> <object class="GtkBox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkLabel" id="room_name"> <object class="GtkLabel" id="contact_name">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<!-- Translators: This string is replaced not user-visible -->
<property name="label">Room name</property>
<property name="ellipsize">end</property> <property name="ellipsize">end</property>
<style> <style>
<class name="title"/> <class name="title"/>
...@@ -459,7 +456,7 @@ ...@@ -459,7 +456,7 @@
<property name="mode">horizontal</property> <property name="mode">horizontal</property>
<widgets> <widgets>
<widget name="main_content_container"/> <widget name="main_content_container"/>
<widget name="room_header_bar"/> <widget name="chat_header_bar"/>
</widgets> </widgets>
</object> </object>
<object class="GtkSizeGroup"> <object class="GtkSizeGroup">
...@@ -472,7 +469,7 @@ ...@@ -472,7 +469,7 @@
<object class="HdyHeaderGroup"> <object class="HdyHeaderGroup">
<headerbars> <headerbars>
<headerbar name="left-header"/> <headerbar name="left-header"/>
<headerbar name="room_header_bar"/> <headerbar name="chat_header_bar"/>
</headerbars> </headerbars>
</object> </object>
</interface> </interface>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment