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.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
8e0a6091 by Yann Leboulanger at 2018-09-24T07:37:06Z
fix displaying HTML content. Fixes #9210
- - - - -
1 changed file:
- gajim/conversation_textview.py
Changes:
=====================================
gajim/conversation_textview.py
=====================================
@@ -1275,7 +1275,7 @@ class ConversationTextview(GObject.GObject):
if name and (text.startswith('/me ') or text.startswith('/me\n')):
xhtml = xhtml.replace('/me', '<i>* %s</i>' % (name,), 1)
self.tv.display_html(xhtml, self.tv, self, iter_=iter_)
- return
+ return iter_
except Exception as error:
log.debug('Error processing xhtml: %s', error)
log.debug('with |%s|', xhtml)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8e0a60911ad2d732faa7de4bcf4a2b85e9…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/8e0a60911ad2d732faa7de4bcf4a2b85e9…
You're receiving this email because of your account on dev.gajim.org.