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
06646784
Commit
06646784
authored
4 years ago
by
Nico
Browse files
Options
Downloads
Patches
Plain Diff
Limit input width just like message texts width
Fixes
#70
parent
febea230
No related branches found
No related tags found
1 merge request
!91
Limit input width just like message texts width
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
briar-gtk/briar_gtk/views/private_chat.py
+1
-1
1 addition, 1 deletion
briar-gtk/briar_gtk/views/private_chat.py
briar-gtk/data/ui/main_window.ui
+12
-8
12 additions, 8 deletions
briar-gtk/data/ui/main_window.ui
with
13 additions
and
9 deletions
briar-gtk/briar_gtk/views/private_chat.py
+
1
−
1
View file @
06646784
...
...
@@ -89,7 +89,7 @@ class PrivateChatView(Gtk.Overlay):
def
_setup_clamp
(
self
):
clamp
=
Handy
.
Clamp
.
new
()
clamp
.
set_maximum_size
(
800
)
clamp
.
set_maximum_size
(
800
)
# same as in main_window.ui
clamp
.
set_tightening_threshold
(
600
)
clamp
.
set_hexpand
(
True
)
clamp
.
set_vexpand
(
True
)
...
...
This diff is collapsed.
Click to expand it.
briar-gtk/data/ui/main_window.ui
+
12
−
8
View file @
06646784
...
...
@@ -114,16 +114,20 @@
<object
class=
"GtkBox"
>
<property
name=
"visible"
>
True
</property>
<child>
<object
class=
"
GtkEntry"
id=
"chat_entry
"
>
<object
class=
"
HdyClamp
"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"placeholder_text"
translatable=
"yes"
context=
"Used in input field in main window"
>
Type Message
</property>
<property
name=
"show_emoji_icon"
>
True
</property>
<property
name=
"maximum_size"
>
800
</property>
<!-- Same as in PrivateChatView -->
<property
name=
"tightening_threshold"
>
600
</property>
<property
name=
"hexpand"
>
True
</property>
<child>
<object
class=
"GtkEntry"
id=
"chat_entry"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"placeholder_text"
translatable=
"yes"
context=
"Used in input field in main window"
>
Type Message
</property>
<property
name=
"show_emoji_icon"
>
True
</property>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
</packing>
</child>
<style>
<class
name=
"message-input-area"
/>
...
...
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