Philipp Hörist pushed to branch master at gajim / gajim
Commits:
bdd243d0 by Philipp Hörist at 2018-09-29T22:22:22Z
Remove unused import
- - - - -
1 changed file:
- gajim/chat_control_base.py
Changes:
=====================================
gajim/chat_control_base.py
=====================================
@@ -27,7 +27,6 @@ import os
import re
import time
-import nbxmpp
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GLib
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/bdd243d04571b633d3bf66f0b3dcd97288…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/bdd243d04571b633d3bf66f0b3dcd97288…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
24e77126 by Philipp Hörist at 2018-09-29T19:55:29Z
Fix Windows build
- - - - -
3 changed files:
- appveyor.yml
- win/_base.sh
- win/build.sh
Changes:
=====================================
appveyor.yml
=====================================
@@ -18,8 +18,7 @@ clone_depth: 1
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
build_script:
- - C:\msys64\usr\bin\pacman -Syu --needed --noconfirm --ask=20
- - C:\msys64\usr\bin\pacman -Su --needed --noconfirm
+ - C:\msys64\usr\bin\pacman -Syuu --needed --noconfirm --noprogressbar --overwrite \\*
- ps: |
$env:TIME_STRING=(get-date -UFormat "%Y-%m-%d").ToString()
$env:BUILDROOT="C:\msys64\home\appveyor\gajim\win\_build_root"
=====================================
win/_base.sh
=====================================
@@ -168,7 +168,6 @@ function cleanup_install {
mingw-w64-"${ARCH}"-"${PYTHON_ID}"-pip mingw-w64-"${ARCH}"-ncurses || true
build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-tk || true
build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-tcl || true
- build_pacman --noconfirm -Rdd mingw-w64-"${ARCH}"-gsl || true
#delete translations we don't support
for d in "${MINGW_ROOT}"/share/locale/*/LC_MESSAGES; do
@@ -298,12 +297,17 @@ function cleanup_install {
}
+function download_ssl_libs {
+ # Python needs these ssl libs but msys does not provide them
+ curl -o "${BUILD_ROOT}"/ssl.zip https://gajim.org/downloads/snap/win/build/ssl.zip
+ 7z x -o"${MINGW_ROOT}"/bin "${BUILD_ROOT}"/ssl.zip
+}
+
function move_ssl_libs {
# Pythons ssl module searches in that path for these dlls, if they are not there
# C:/Windows/system32 is searcherd and potentially wrong versioned dlls are found there
cp "${MINGW_ROOT}"/bin/libeay32.dll "${MINGW_ROOT}"/lib/python3.7/lib-dynload/libeay32.dll
cp "${MINGW_ROOT}"/bin/ssleay32.dll "${MINGW_ROOT}"/lib/python3.7/lib-dynload/ssleay32.dll
-
}
function build_installer {
=====================================
win/build.sh
=====================================
@@ -17,6 +17,7 @@ function main {
install_deps
install_gajim
cleanup_install
+ download_ssl_libs
move_ssl_libs
build_installer
}
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/24e771266b804f266b82e011578b4d026e…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/24e771266b804f266b82e011578b4d026e…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
34e93bba by Marcin Mielniczuk at 2018-09-27T12:53:23Z
Add .vscode to .gitignore
This is where the workspace settings are stored.
- - - - -
1 changed file:
- .gitignore
Changes:
=====================================
.gitignore
=====================================
@@ -26,6 +26,7 @@ dist/
gajim.egg-info/
src/gtk/
win/_build_root
+.vscode
syntax: regexp
^config\.*
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/34e93bba1794724d0965d1d7c67af8c3fa…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/34e93bba1794724d0965d1d7c67af8c3fa…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
6bf94f15 by Philipp Hörist at 2018-09-26T22:03:50Z
Move AdvancedConfig to gtk module
- - - - -
e9e0b7fb by Philipp Hörist at 2018-09-26T22:12:55Z
Move AccountsWindow to gtk module
- - - - -
6 changed files:
- gajim/app_actions.py
- gajim/gtk/account_wizard.py
- gajim/accounts_window.py → gajim/gtk/accounts.py
- gajim/advanced_configuration_window.py → gajim/gtk/advanced_config.py
- gajim/gtk/preferences.py
- gajim/roster_window.py
Changes:
=====================================
gajim/app_actions.py
=====================================
@@ -23,10 +23,10 @@ from gajim.common.app import interface
from gajim.common.exceptions import GajimGeneralException
from gajim import config
from gajim import dialogs
-from gajim.accounts_window import AccountsWindow
-import gajim.plugins.gui
from gajim import disco
+import gajim.plugins.gui
+
from gajim.gtk.dialogs import ShortcutsWindow
from gajim.gtk.history_sync import HistorySyncAssistant
from gajim.gtk.server_info import ServerInfoDialog
@@ -43,6 +43,7 @@ from gajim.gtk.bookmarks import ManageBookmarksWindow
from gajim.gtk.features import FeaturesDialog
from gajim.gtk.account_wizard import AccountCreationWizard
from gajim.gtk.history import HistoryWindow
+from gajim.gtk.accounts import AccountsWindow
# General Actions
=====================================
gajim/gtk/account_wizard.py
=====================================
@@ -482,7 +482,7 @@ class AccountCreationWizard:
GLib.source_remove(self.update_progressbar_timeout_id)
def on_advanced_button_clicked(self, widget):
- from gajim.accounts_window import AccountsWindow
+ from gajim.gtk.accounts import AccountsWindow
window = app.get_app_window(AccountsWindow)
if window is None:
window = AccountsWindow()
=====================================
gajim/accounts_window.py → gajim/gtk/accounts.py
=====================================
@@ -1,18 +1,36 @@
+# 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/>.
+
from functools import partial
-from gi.repository import Gtk, GLib, Gdk
+from gi.repository import Gtk
+from gi.repository import Gdk
+from gi.repository import GLib
-from gajim.common import app
from gajim import gtkgui_helpers
from gajim import gui_menu_builder
-from gajim.common import passwords
from gajim import config
+from gajim.options_dialog import OptionsDialog, OptionsBox
+
+from gajim.common import app
+from gajim.common import passwords
from gajim.common import helpers
from gajim.common import ged
from gajim.common.connection import Connection
from gajim.common.zeroconf.connection_zeroconf import ConnectionZeroconf
-from gajim.options_dialog import OptionsDialog, OptionsBox
from gajim.common.const import Option, OptionKind, OptionType
+
from gajim.gtk.dialogs import ConfirmationDialog
from gajim.gtk.dialogs import YesNoDialog
=====================================
gajim/advanced_configuration_window.py → gajim/gtk/advanced_config.py
=====================================
@@ -22,15 +22,17 @@
from enum import IntEnum, unique
from gi.repository import Gtk
-from gajim import gtkgui_helpers
from gi.repository import GLib
from gi.repository import Pango
from gajim.common import app
+from gajim.gtk.util import get_builder
+
+
@unique
class Column(IntEnum):
- PREFERENCE_NAME = 0
+ NAME = 0
VALUE = 1
TYPE = 2
@@ -64,9 +66,9 @@ def tree_model_pre_order(model, treeiter):
yield it
-class AdvancedConfigurationWindow:
+class AdvancedConfig:
def __init__(self, transient):
- self.xml = gtkgui_helpers.get_gtk_builder('advanced_configuration_window.ui')
+ self.xml = get_builder('advanced_configuration_window.ui')
self.window = self.xml.get_object('advanced_configuration_window')
self.window.set_transient_for(transient)
self.entry = self.xml.get_object('advanced_entry')
@@ -132,7 +134,7 @@ class AdvancedConfigurationWindow:
Check if it's boolean or holds password stuff and if yes make the
cellrenderertext not editable, else - it's editable
"""
- optname = model[iter_][Column.PREFERENCE_NAME]
+ optname = model[iter_][Column.NAME]
opttype = model[iter_][Column.TYPE]
if opttype == self.types['boolean'] or optname == 'password':
cell.set_property('editable', False)
@@ -319,7 +321,7 @@ class AdvancedConfigurationWindow:
desc = app.config.get_desc_per(opt_path[2], opt_path[0])
elif len(opt_path) == 1:
desc = app.config.get_desc(opt_path[0])
- if search_string in model[it][Column.PREFERENCE_NAME] or (desc and \
+ if search_string in model[it][Column.NAME] or (desc and \
search_string in desc.lower()):
return True
return False
=====================================
gajim/gtk/preferences.py
=====================================
@@ -25,7 +25,6 @@ from gajim.common import configpaths
from gajim.common import config as c_config
from gajim.common import idle
-from gajim.advanced_configuration_window import AdvancedConfigurationWindow
from gajim.chat_control_base import ChatControlBase
from gajim.config import ManageProxiesWindow, ManageSoundsWindow
from gajim import message_control
@@ -35,6 +34,7 @@ from gajim import gtkgui_helpers
from gajim.gtk.util import get_builder
from gajim.gtk.dialogs import AspellDictError
from gajim.gtk.themes import Themes
+from gajim.gtk.advanced_config import AdvancedConfig
try:
from gajim.common.multimedia_helpers import AudioInputManager, AudioOutputManager
@@ -1011,8 +1011,7 @@ class Preferences(Gtk.ApplicationWindow):
if 'advanced_config' in app.interface.instances:
app.interface.instances['advanced_config'].window.present()
else:
- app.interface.instances['advanced_config'] = \
- AdvancedConfigurationWindow(self)
+ app.interface.instances['advanced_config'] = AdvancedConfig(self)
def on_enable_logging_toggled(self, widget):
app.set_win_debug_mode(widget.get_active())
=====================================
gajim/roster_window.py
=====================================
@@ -53,7 +53,6 @@ from gajim import cell_renderer_image
from gajim import tooltips
from gajim import message_control
from gajim import adhoc_commands
-from gajim.accounts_window import AccountsWindow
from gajim.common import app
from gajim.common import helpers
@@ -81,6 +80,7 @@ from gajim.gtk.bookmarks import ManageBookmarksWindow
from gajim.gtk.account_wizard import AccountCreationWizard
from gajim.gtk.service_registration import ServiceRegistration
from gajim.gtk.history import HistoryWindow
+from gajim.gtk.accounts import AccountsWindow
log = logging.getLogger('gajim.roster')
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/075069d37a5eab9ed4988d4f5463ad7c5…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/075069d37a5eab9ed4988d4f5463ad7c5…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
f8934751 by Philipp Hörist at 2018-09-26T17:06:47Z
Only use absolute imports from gtk module
- This reduces import cycles
- - - - -
075069d3 by Philipp Hörist at 2018-09-26T18:17:13Z
Fix Dark Theme switch
- Move css_config to gtk module
- Add Combobox for overriding the current session setting
- Move theme methods to css_config
- - - - -
30 changed files:
- gajim/accounts_window.py
- gajim/adhoc_commands.py
- gajim/app_actions.py
- gajim/chat_control.py
- gajim/chat_control_base.py
- gajim/common/app.py
- gajim/common/config.py
- gajim/common/connection_handlers_events.py
- gajim/config.py
- gajim/data/gui/preferences_window.ui
- gajim/dialog_messages.py
- gajim/dialogs.py
- gajim/disco.py
- gajim/filetransfers_window.py
- gajim/groupchat_control.py
- gajim/gtk/__init__.py
- gajim/gtk/account_wizard.py
- gajim/gtk/add_contact.py
- gajim/gtk/bookmarks.py
- gajim/gtk/const.py
- gajim/common/css_config.py → gajim/gtk/css_config.py
- gajim/gtk/dialogs.py
- gajim/gtk/history.py
- gajim/gtk/join_groupchat.py
- gajim/gtk/mam_preferences.py
- gajim/gtk/pep_config.py
- gajim/gtk/preferences.py
- gajim/gtk/privacy_list.py
- gajim/gtk/profile.py
- − gajim/gtk/shortcuts_window.py
The diff was not included because it is too large.
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/b2a7c9495d1a637d34ab9c93bbe3e130c…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/b2a7c9495d1a637d34ab9c93bbe3e130c…
You're receiving this email because of your account on dev.gajim.org.