[gnome-music/wip/jfelder/fix-critical-widget-realized: 3/3] playlistsview: Do not emit row-activated signal on launch
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/fix-critical-widget-realized: 3/3] playlistsview: Do not emit row-activated signal on launch
- Date: Wed, 8 Jan 2020 17:02:23 +0000 (UTC)
commit 03b83caf79ed8395e39c2fe6c9472ba4258c5d2f
Author: Jean Felder <jfelder src gnome org>
Date: Wed Jan 8 18:00:29 2020 +0100
playlistsview: Do not emit row-activated signal on launch
Emitting this signal before the PlaylistsView is visible triggers some
Gtk errors: `Gtk-CRITICAL gtk_widget_event: assertion
'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed`
Directly calling the associated callback fixes the issue.
gnomemusic/views/playlistsview.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/playlistsview.py b/gnomemusic/views/playlistsview.py
index e7c60755..910c1a4d 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -153,7 +153,7 @@ class PlaylistsView(BaseView):
first_row = self._sidebar.get_row_at_index(0)
self._sidebar.select_row(first_row)
- first_row.emit("activate")
+ self._on_playlist_activated(self._sidebar, first_row)
def _on_playlists_model_changed(self, model, position, removed, added):
if removed == 0:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]