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
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor 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
mesonium
gajim
Commits
d982f6b8
Commit
d982f6b8
authored
2 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
refactor: Change layout of chat page
Add new Chat Stack to aid in the upcoming refactor
parent
b56ee020
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gajim/gtk/chat_page.py
+5
-2
5 additions, 2 deletions
gajim/gtk/chat_page.py
gajim/gtk/chat_stack.py
+43
-0
43 additions, 0 deletions
gajim/gtk/chat_stack.py
pyrightconfig.json
+1
-0
1 addition, 0 deletions
pyrightconfig.json
with
49 additions
and
2 deletions
gajim/gtk/chat_page.py
+
5
−
2
View file @
d982f6b8
...
...
@@ -34,6 +34,7 @@
from
.chat_filter
import
ChatFilter
from
.chat_list
import
ChatList
from
.chat_list_stack
import
ChatListStack
from
.chat_stack
import
ChatStack
from
.control_stack
import
ControlStack
from
.search_view
import
SearchView
from
.types
import
ControlT
...
...
@@ -57,8 +58,10 @@ def __init__(self):
self
.
add
(
self
.
_ui
.
paned
)
self
.
_ui
.
connect_signals
(
self
)
self
.
_control_stack
=
ControlStack
()
self
.
_ui
.
right_grid_overlay
.
add
(
self
.
_control_stack
)
self
.
_chat_stack
=
ChatStack
()
self
.
_ui
.
right_grid_overlay
.
add
(
self
.
_chat_stack
)
self
.
_control_stack
=
self
.
_chat_stack
.
get_control_stack
()
self
.
_search_view
=
SearchView
()
self
.
_search_view
.
connect
(
'
hide-search
'
,
self
.
_on_search_hide
)
...
...
This diff is collapsed.
Click to expand it.
gajim/gtk/chat_stack.py
0 → 100644
+
43
−
0
View file @
d982f6b8
# This file is part of Gajim.
#
# Gajim is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; version 3 only.
#
# Gajim is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
import
logging
from
gi.repository
import
Gtk
from
.control_stack
import
ControlStack
from
.util
import
EventHelper
log
=
logging
.
getLogger
(
'
gajim.gui.chatstack
'
)
class
ChatStack
(
Gtk
.
Stack
,
EventHelper
):
def
__init__
(
self
):
Gtk
.
Stack
.
__init__
(
self
)
EventHelper
.
__init__
(
self
)
self
.
set_vexpand
(
True
)
self
.
set_hexpand
(
True
)
self
.
_control_stack
=
ControlStack
()
box
=
Gtk
.
Box
()
box
.
add
(
self
.
_control_stack
)
self
.
add_named
(
box
,
'
controls
'
)
self
.
show_all
()
def
get_control_stack
(
self
)
->
ControlStack
:
return
self
.
_control_stack
This diff is collapsed.
Click to expand it.
pyrightconfig.json
+
1
−
0
View file @
d982f6b8
...
...
@@ -61,6 +61,7 @@
"gajim/gtk/chat_list_stack.py"
,
"gajim/gtk/chat_list.py"
,
"gajim/gtk/chat_page.py"
,
"gajim/gtk/chat_stack.py"
,
"gajim/gtk/control_stack.py"
,
"gajim/gtk/const.py"
,
"gajim/gtk/contact_info.py"
,
...
...
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