Philipp Hörist
f89347516f
Only use absolute imports from gtk module
...
- This reduces import cycles
2018-09-26 19:06:47 +02:00
Philipp Hörist
7cacb4c09e
Add annotations
2018-09-23 15:33:31 +02:00
Philipp Hörist
6b2aa24d6e
Fix rest of mypy errors
...
- This allows us to run mypy on the full gajim folder
2018-09-21 23:55:57 +02:00
Philipp Hörist
6b54863157
Dont move window between virtual desktops
...
Its the job of the window manager to restore a window to the correct
location
2018-09-18 16:28:33 +02:00
Philipp Hörist
df88cc5e15
Fix redefined-builtin pylint errors
2018-09-18 13:54:25 +02:00
Philipp Hörist
ccc06a04ab
Fix bad-whitespace pylint errors
2018-09-18 12:06:01 +02:00
Philipp Hörist
ff6ca57033
Fix no-else-return pylint errors
2018-09-18 10:16:54 +02:00
Philipp Hörist
01694c6a06
Fix simplifiable-if-statement pylint errors
2018-09-17 23:25:55 +02:00
Philipp Hörist
e8ac644440
Fix unused-variable pylint errors
2018-09-17 21:16:19 +02:00
Philipp Hörist
d638087c26
Fix logging-not-lazy pylint errors
2018-09-17 18:57:00 +02:00
Philipp Hörist
7bb6f8b22e
Fix bare-except pylint errors
2018-09-16 23:45:01 +02:00
Philipp Hörist
d53b95218a
Fix redefined-outer-name pylint errors
2018-09-16 18:04:15 +02:00
Philipp Hörist
c6547b6d30
Fix superfluous-parens pylint errors
2018-09-16 14:42:18 +02:00
Philipp Hörist
b99632ab03
Fix pylint errors
2018-09-12 00:01:54 +02:00
Philipp Hörist
52e09cf526
Windows: Fix translation
...
Fixes #9324
2018-09-08 08:40:42 +02:00
Philipp Hörist
a4a136566f
Fix license comment format
...
every linter flags this as an error
2018-09-05 02:59:34 +02:00
Philipp Hörist
1c69b92d85
Move filechoosers into gtk module
2018-08-19 17:47:17 +02:00
Philipp Hörist
9d5131b8b4
Rework Gajim Theming
...
- Save all Theme settings to .css instead of the config file
- Add a gajim-dark.css
- Refactor the ThemesWindow
2018-08-16 22:53:33 +02:00
Philipp Hörist
94b2d1e577
Fix passing too many args
2018-08-06 18:25:52 +02:00
Philipp Hörist
2e53f47da8
Fix GtkBuilder translation
...
Fixes #9277
2018-08-06 17:14:07 +02:00
Philipp Hörist
3a3b5aff20
Move some dialogs into gtk module
2018-07-18 00:15:46 +02:00
Philipp Hörist
c225ae70e4
Add debug logging for saving roster position
2018-07-12 23:19:22 +02:00
Philipp Hörist
bbf3a544e8
Refactor UserLocation into own module
2018-07-05 19:38:03 +02:00
Philipp Hörist
14f088c2d9
Refactor UserMood into own module
2018-07-05 19:37:51 +02:00
Philipp Hörist
a4350a812b
Refactor UserTune into own module
2018-07-05 00:16:42 +02:00
Philipp Hörist
b7775afd0c
Refactor UserActivity and PEP into own modules
2018-07-03 20:00:31 +02:00
Philipp Hörist
9b07cf8d41
Add loading single builder objects on Windows
...
This was still missing from the Windows translation fix
2018-06-23 20:35:16 +02:00
Philipp Hörist
23c302ca70
Fix translation on Windows
...
Fixes #8658
2018-06-23 17:07:43 +02:00
Philipp Hörist
4bed8ace95
Refactor Notifications
...
- Use icon names instead of path
- Move PopupNotificationWindow into notify.py
- Make popup class method instead of module method
- Dont use sessions to get control on notification action Fixes #9140
- Add has_focus() method to ChatControlBase
2018-06-01 17:48:05 +02:00
Philipp Hörist
2636e3449f
Refactor avatar publishing
...
- Publish avatars with a size of 200x200
- Add AvatarSize.PUBLISH so we can easily change it in the future
- Dont upscale small avatars on publish
- Use surfaces for displaying the avatar in ProfileWindow and VcardWindow
because this scales correctly on HiDPI screens
2018-05-20 01:28:12 +02:00
Philipp Hörist
c38db84e04
Refactor FileChooserDialogs
...
Use GtkFileChooserDialog only when we need previews, default to
NativeFileChooser otherwise.
GtkFileChooserDialogs have a long list of issues, so lets only use it
if we gain something from it.
Flatpak should only run NativeFileChoosers because its sandboxed and
this is needed for security purposes. As a result of that, Flatpak Users
dont have image previews in the FileOpenDialogs
Refactor all FileChoosers for a more simple approach when we use them
Add a new SendFileDialog, so we dont have to put widgets into the FileChooser
which forces non-native Dialogs.
2018-05-05 09:22:08 +02:00
Philipp Hörist
81952f6a7c
Convert font weight from pango to css values
...
Fixes #9106
2018-04-30 17:43:32 +02:00
Philipp Hörist
105427b8fd
Use consistent way to get paths
...
This lets us now import the app module without setting paths
2018-04-25 20:49:37 +02:00
Philipp Hörist
e2383fd7a4
Refactor i18n module
...
- Move everything translation related from gajim.py to i18n.py
2018-04-24 23:03:19 +02:00
Yann Leboulanger
7562acbe5b
correctly generate css for font that have a space. Fixes #9012
2018-03-27 12:25:20 +02:00
Philipp Hörist
6f55cf3dd4
Fix some problematic imports
2018-03-26 00:19:59 +02:00
Andrey Gursky
c6172c86ad
Fix window position restore on multi-head setups
...
Gajim stopped to properly restore roster and dialogs windows positions
after restart with more than one monitor attached.
Gajim saves the absolute window positions, i.e. based on the total screen size
of all monitors attached. Despite Gtk deprecated Gdk.Screen.width() and height(),
we cannot just use width() and height() for one monitor, as recommended.
We still need the total screen size, which was the base for saving the positions.
[1] https://stackoverflow.com/questions/30207586/gdk-screen-vs-monitor-vs-display
2018-03-21 19:40:54 +01:00
Philipp Hörist
cbab10bedd
Fix showing `not in roster` status icon
2018-03-18 00:04:49 +01:00
Philipp Hörist
f1aceae214
Fix avatar ratio
...
Fixes #8907
2018-02-19 22:02:31 +01:00
Philipp Hörist
4f73b03d36
Remove unused method
2018-01-29 20:08:37 +01:00
Philipp Hörist
762617e0be
Use icons from IconTheme for Groupchat Roster
2018-01-29 00:06:46 +01:00
Philipp Hörist
2c2e946a88
Use icons from IconTheme in HistoryWindow
2018-01-29 00:06:46 +01:00
Philipp Hörist
adb326a5f2
Refactor StatusComboBox
...
- Move as much code as possible into Glade file
- Pull icons from the IconsTheme (because of HiDPI scaling)
2018-01-29 00:06:31 +01:00
Yann Leboulanger
b3a805c58a
Merge branch 'more-translations' into 'master'
...
Make more strings translatable
See merge request gajim/gajim!186
2018-01-15 11:16:26 +01:00
Daniel
792be24540
Make more strings translatable
2018-01-15 10:51:04 +01:00
André Apitzsch
6f025a1d4a
Remove some unused imports
2018-01-12 00:21:11 +01:00
Philipp Hörist
c18ef648e6
Replace deprecated get_background_color()
2017-12-18 00:25:19 +01:00
Philipp Hörist
bdf16c5182
Replace deprecated override_background_color()
2017-12-18 00:11:39 +01:00
Philipp Hörist
f4a6b0299a
Remove deprecated Gdk.Screen methods
...
height() and weidth() is not supported any more
2017-12-17 22:30:16 +01:00
Philipp Hörist
e3effdcb6c
Refactor SubscriptionWindow
2017-12-17 22:30:16 +01:00