Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ba321d49 by lovetox at 2020-09-16T11:27:22+02:00
Settings: Fix app setting migration
- - - - -
1 changed file:
- gajim/common/settings.py
Changes:
=====================================
gajim/common/settings.py
=====================================
@@ -284,12 +284,12 @@ class _Settings:
# Migrate deprecated settings
value = app_settings.pop('send_chatstate_muc_default', None)
if value is not None:
- for account in self._account_settings['account']:
+ for account in self._account_settings:
self._account_settings[account]['account']['gc_send_chatstate_default'] = value
value = app_settings.pop('send_chatstate_default', None)
if value is not None:
- for account in self._account_settings['account']:
+ for account in self._account_settings:
self._account_settings[account]['account']['send_chatstate_default'] = value
value = app_settings.pop('print_join_left_default', None)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ba321d4938db2ab1d1909360abb30c77…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/ba321d4938db2ab1d1909360abb30c77…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
637ae4b8 by lovetox at 2020-09-15T17:19:02+02:00
Settings: Allow more than one css class
- - - - -
1 changed file:
- gajim/gtk/settings.py
Changes:
=====================================
gajim/gtk/settings.py
=====================================
@@ -291,7 +291,8 @@ class GenericSetting(Gtk.ListBoxRow):
return
if style is not None:
- button.get_style_context().add_class(style)
+ for css_class in style.split(' '):
+ button.get_style_context().add_class(css_class)
button.connect('clicked', kwargs['button-callback'])
button.set_tooltip_text(tooltip_text)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/637ae4b8cc786c6428b292820a0d7388…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/637ae4b8cc786c6428b292820a0d7388…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
53d6c8c2 by wurstsalat at 2020-09-13T10:58:43+02:00
MessageInputTextView: Fix GTK warning when closing chat control
Fixes #10146
- - - - -
1 changed file:
- gajim/gtk/message_input.py
Changes:
=====================================
gajim/gtk/message_input.py
=====================================
@@ -18,6 +18,7 @@
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
from gi.repository import Gtk
+from gi.repository import Gdk
from gi.repository import GLib
from gi.repository import GObject
from gi.repository import Pango
@@ -108,6 +109,18 @@ class MessageInputTextView(Gtk.TextView):
self.connect('focus-in-event', self._on_grab_focus)
self.connect('grab-focus', self._on_grab_focus)
self.connect('focus-out-event', self._on_focus_out)
+ self.connect('destroy', self._on_destroy)
+
+ def _on_destroy(self, *args):
+ # We restore the TextView’s drag destination to avoid a GTK warning
+ # when closing the control. ChatControlBase.shutdown() calls destroy()
+ # on the control’s main box, causing GTK to recursively destroy the
+ # child widgets. GTK then tries to set a target list on the TextView,
+ # resulting in a warning because the Widget has no drag destination.
+ self.drag_dest_set(
+ Gtk.DestDefaults.ALL,
+ None,
+ Gdk.DragAction.DEFAULT)
def _on_buffer_changed(self, *args):
text = self.get_text()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/53d6c8c2a61457b3352a038eace4b110…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/53d6c8c2a61457b3352a038eace4b110…
You're receiving this email because of your account on dev.gajim.org.