diff options
| author | Victor Kareh <[email protected]> | 2025-09-26 10:12:41 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2025-09-29 13:25:16 +0000 |
| commit | 323da86cf1678af8c487b9289945dd4be17a3494 (patch) | |
| tree | 051520fe09ce0b6975d278ec11005be254707523 | |
| parent | af0168b6dd83c57bf9f831b2fe2c04e1216bd916 (diff) | |
| download | pluma-323da86cf1678af8c487b9289945dd4be17a3494.tar.bz2 pluma-323da86cf1678af8c487b9289945dd4be17a3494.tar.xz | |
The PlumaApp was not being registered with GtkApplication, leading to
segfaults when restoring state through the sesion manager.
| -rw-r--r-- | pluma/pluma-app.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pluma/pluma-app.c b/pluma/pluma-app.c index 5fc6da4b..cfc91b04 100644 --- a/pluma/pluma-app.c +++ b/pluma/pluma-app.c @@ -535,6 +535,12 @@ pluma_app_create_window_real (PlumaApp *app, app->priv->windows = g_list_prepend (app->priv->windows, window); + GApplication *gtk_app = g_application_get_default (); + if (GTK_IS_APPLICATION (gtk_app)) + { + gtk_application_add_window (GTK_APPLICATION (gtk_app), GTK_WINDOW (window)); + } + pluma_debug_message (DEBUG_APP, "Window created"); if (role != NULL) |
