Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
eta
gajim
Commits
c7fa39ca
Commit
c7fa39ca
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
resize the history window on expander expanded and reset it to original size when if we dis-expand
parent
ae50c294
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/history_window.py
+8
-1
8 additions, 1 deletion
src/history_window.py
with
8 additions
and
1 deletion
src/history_window.py
+
8
−
1
View file @
c7fa39ca
...
...
@@ -275,7 +275,14 @@ class HistoryWindow:
the True/False thingy depending if it
'
s expanded or not
this function is called in a timeout just after expanded state changes
'''
parent
=
widget
.
get_parent
()
# vbox
parent
.
child_set_property
(
widget
,
'
expand
'
,
widget
.
get_expanded
())
expanded
=
widget
.
get_expanded
()
w
,
h
=
self
.
window
.
get_size
()
if
expanded
:
# resize to larger in height the window
self
.
window
.
resize
(
w
,
int
(
h
*
1.3
))
else
:
# resize to smaller in height the window
self
.
window
.
resize
(
w
,
int
(
h
/
1.3
))
# now set expand so if manually resizing scrolledwindow resizes too
parent
.
child_set_property
(
widget
,
'
expand
'
,
expanded
)
def
on_search_expander_activate
(
self
,
widget
):
if
widget
.
get_expanded
():
# it's the OPPOSITE!, it's not expanded
...
...
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