Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar GTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar GTK
Commits
f3499364
Commit
f3499364
authored
4 years ago
by
Nico
Browse files
Options
Downloads
Patches
Plain Diff
Remove room legacy names
parent
2c5d71f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
briar-gtk/briar_gtk/containers/main_window.py
+5
-5
5 additions, 5 deletions
briar-gtk/briar_gtk/containers/main_window.py
briar-gtk/data/ui/main_window.ui
+5
-8
5 additions, 8 deletions
briar-gtk/data/ui/main_window.ui
with
10 additions
and
13 deletions
briar-gtk/briar_gtk/containers/main_window.py
+
5
−
5
View file @
f3499364
...
@@ -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
"
)
...
...
This diff is collapsed.
Click to expand it.
briar-gtk/data/ui/main_window.ui
+
5
−
8
View file @
f3499364
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment