Philipp Hörist pushed to branch master at gajim / gajim
Commits:
71586e01 by Philipp Hörist at 2018-08-11T22:06:22Z
Escape groupchat name in tab label
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -1037,6 +1037,7 @@ class GroupchatControl(ChatControlBase):
label_str = self.get_continued_conversation_name()
else:
label_str = self.name
+ label_str = GLib.markup_escape_text(label_str)
# count waiting highlighted messages
unread = ''
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/71586e01d227bf7ea70714fdef3fa96fd4…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/71586e01d227bf7ea70714fdef3fa96fd4…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
f438a27a by Philipp Hörist at 2018-08-08T19:51:23Z
Handle new MUC status code 333
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -1830,7 +1830,14 @@ class GroupchatControl(ChatControlBase):
if obj.show in ('offline', 'error'):
if obj.status_code:
- if '307' in obj.status_code:
+ if '333' in obj.status_code:
+ # Handle 333 before 307, some MUCs add both
+ if obj.nick == self.nick:
+ s = _('%s kicked us due to an error' % self.room_jid)
+ else:
+ s = _('%s has left due to an error' % nick)
+ self.print_conversation(s, 'info', graphics=False)
+ elif '307' in obj.status_code:
if obj.actor is None: # do not print 'kicked by None'
s = _('%(nick)s has been kicked: %(reason)s') % {
'nick': nick, 'reason': obj.reason}
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/f438a27ab81b9fefbf698210084dea92c5…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/f438a27ab81b9fefbf698210084dea92c5…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c332ad6a by Philipp Hörist at 2018-08-06T18:24:09Z
Fix string
- - - - -
1 changed file:
- gajim/gtk/service_registration.py
Changes:
=====================================
gajim/gtk/service_registration.py
=====================================
--- a/gajim/gtk/service_registration.py
+++ b/gajim/gtk/service_registration.py
@@ -166,7 +166,7 @@ class FormPage(Gtk.Box):
class SuccessfulPage(Gtk.Box):
type_ = Gtk.AssistantPageType.SUMMARY
- title = _('Successful registered')
+ title = _('Registration successful')
complete = True
def __init__(self):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c332ad6a679782fad676f97fc69c347194…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/c332ad6a679782fad676f97fc69c347194…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
835bffd8 by Sophie Herold at 2018-08-06T17:07:42Z
Fix broken history search
- - - - -
1 changed file:
- gajim/gtk/history.py
Changes:
=====================================
gajim/gtk/history.py
=====================================
--- a/gajim/gtk/history.py
+++ b/gajim/gtk/history.py
@@ -709,8 +709,8 @@ class HistoryWindow:
# make it a tuple (Y, M, D, 0, 0, 0...)
tim = time.strptime(model[path][Column.UNIXTIME], '%Y-%m-%d')
year = tim[0]
- gtk_month = tim[1]
- month = gtk_month(gtk_month)
+ gtk_m = tim[1]
+ month = gtk_month(gtk_m)
day = tim[2]
# switch to belonging logfile if necessary
@@ -719,10 +719,10 @@ class HistoryWindow:
self._load_history(log_jid, None)
# avoid reruning mark days algo if same month and year!
- if year != cur_year or gtk_month != cur_month:
+ if year != cur_year or gtk_m != cur_month:
self.calendar.select_month(month, year)
- if year != cur_year or gtk_month != cur_month or day != cur_day:
+ if year != cur_year or gtk_m != cur_month or day != cur_day:
self.calendar.select_day(day)
self._scroll_to_message_and_highlight(model[path][Column.LOG_LINE_ID])
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/835bffd8932aecd4a170c16ec164c708a7…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/835bffd8932aecd4a170c16ec164c708a7…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
94b2d1e5 by Philipp Hörist at 2018-08-06T16:25:52Z
Fix passing too many args
- - - - -
2 changed files:
- gajim/gtk/util.py
- gajim/gtkgui_helpers.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
--- a/gajim/gtk/util.py
+++ b/gajim/gtk/util.py
@@ -68,7 +68,7 @@ def get_builder(file_name, widget=None):
if widget is not None:
builder.add_objects_from_string(xml_text, [widget])
else:
- builder.add_from_string(xml_text, -1)
+ builder.add_from_string(xml_text)
else:
if widget is not None:
builder.add_objects_from_file(file_path, [widget])
=====================================
gajim/gtkgui_helpers.py
=====================================
--- a/gajim/gtkgui_helpers.py
+++ b/gajim/gtkgui_helpers.py
@@ -144,7 +144,7 @@ def get_gtk_builder(file_name, widget=None):
if widget is not None:
builder.add_objects_from_string(xml_text, [widget])
else:
- builder.add_from_string(xml_text, -1)
+ builder.add_from_string(xml_text)
else:
if widget is not None:
builder.add_objects_from_file(file_path, [widget])
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/94b2d1e577721303495ac5ba180ffebb88…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/94b2d1e577721303495ac5ba180ffebb88…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
2e53f47d by Philipp Hörist at 2018-08-06T15:14:07Z
Fix GtkBuilder translation
Fixes #9277
- - - - -
2 changed files:
- gajim/gtk/util.py
- gajim/gtkgui_helpers.py
Changes:
=====================================
gajim/gtk/util.py
=====================================
--- a/gajim/gtk/util.py
+++ b/gajim/gtk/util.py
@@ -51,34 +51,30 @@ def load_icon(icon_name, widget, size=16, pixbuf=False,
def get_builder(file_name, widget=None):
file_path = os.path.join(configpaths.get('GUI'), file_name)
- builder = _translate(file_path, widget)
- builder.set_translation_domain(i18n.DOMAIN)
- return builder
+ builder = Gtk.Builder()
+ builder.set_translation_domain(i18n.DOMAIN)
-def _translate(gui_file, widget):
- """
- This is a workaround for non working translation on Windows
- """
if sys.platform == "win32":
- tree = ET.parse(gui_file)
+ # This is a workaround for non working translation on Windows
+ tree = ET.parse(file_path)
for node in tree.iter():
if 'translatable' in node.attrib:
node.text = _(node.text)
xml_text = ET.tostring(tree.getroot(),
encoding='unicode',
method='xml')
+
if widget is not None:
- builder = Gtk.Builder()
builder.add_objects_from_string(xml_text, [widget])
- return builder
- return Gtk.Builder.new_from_string(xml_text, -1)
+ else:
+ builder.add_from_string(xml_text, -1)
else:
if widget is not None:
- builder = Gtk.Builder()
- builder.add_objects_from_file(gui_file, [widget])
- return builder
- return Gtk.Builder.new_from_file(gui_file)
+ builder.add_objects_from_file(file_path, [widget])
+ else:
+ builder.add_from_file(file_path)
+ return builder
def get_iconset_name_for(name):
=====================================
gajim/gtkgui_helpers.py
=====================================
--- a/gajim/gtkgui_helpers.py
+++ b/gajim/gtkgui_helpers.py
@@ -127,33 +127,30 @@ def get_image_button(icon_name, tooltip, toggle=False):
def get_gtk_builder(file_name, widget=None):
file_path = os.path.join(configpaths.get('GUI'), file_name)
- builder = _translate(file_path, widget)
+
+ builder = Gtk.Builder()
builder.set_translation_domain(i18n.DOMAIN)
- return builder
-def _translate(gui_file, widget):
- """
- This is a workaround for non working translation on Windows
- """
if sys.platform == "win32":
- tree = ET.parse(gui_file)
+ # This is a workaround for non working translation on Windows
+ tree = ET.parse(file_path)
for node in tree.iter():
if 'translatable' in node.attrib:
node.text = _(node.text)
xml_text = ET.tostring(tree.getroot(),
encoding='unicode',
method='xml')
+
if widget is not None:
- builder = Gtk.Builder()
builder.add_objects_from_string(xml_text, [widget])
- return builder
- return Gtk.Builder.new_from_string(xml_text, -1)
+ else:
+ builder.add_from_string(xml_text, -1)
else:
if widget is not None:
- builder = Gtk.Builder()
- builder.add_objects_from_file(gui_file, [widget])
- return builder
- return Gtk.Builder.new_from_file(gui_file)
+ builder.add_objects_from_file(file_path, [widget])
+ else:
+ builder.add_from_file(file_path)
+ return builder
def get_completion_liststore(entry):
"""
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2e53f47da80e03dc5489609f3b294ec2bb…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/2e53f47da80e03dc5489609f3b294ec2bb…
You're receiving this email because of your account on dev.gajim.org.