[gnome-music/wip/jfelder/fix-critical-widget-realized: 13/13] 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: 13/13] playlistsview: Do not emit row-activated signal on launch
- Date: Thu, 9 Jan 2020 17:20:41 +0000 (UTC)
commit 8b1a6e51c590c8bd883f83c967bc95f82c72213e
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 a1e2dce9..85571fc6 100644
--- a/gnomemusic/views/playlistsview.py
+++ b/gnomemusic/views/playlistsview.py
@@ -136,7 +136,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]