pidgin/pidgin

Set settings backend on the plugin view

15 months ago, Elliott Sales de Andrade
8929e5854422
Parents 0832e6467b58
Children 2707c81648a0
Set settings backend on the plugin view

Testing Done:
Compiled and ran with /r/2128, opened Plugins dialog and nothing crashed.

Reviewed at https://reviews.imfreedom.org/r/2130/
--- a/pidgin/pidginpluginsdialog.c Fri Feb 24 00:59:18 2023 -0600
+++ b/pidgin/pidginpluginsdialog.c Fri Feb 24 01:06:20 2023 -0600
@@ -24,6 +24,8 @@
#include "pidginpluginsdialog.h"
#include <glib/gi18n.h>
+#define G_SETTINGS_ENABLE_BACKEND
+#include <gio/gsettingsbackend.h>
#include <gplugin.h>
#include <gplugin-gtk.h>
@@ -77,11 +79,16 @@
static void
pidgin_plugins_dialog_init(PidginPluginsDialog *dialog) {
GPluginManager *manager = NULL;
+ GSettingsBackend *backend = NULL;
gtk_widget_init_template(GTK_WIDGET(dialog));
manager = gplugin_manager_get_default();
gplugin_gtk_view_set_manager(GPLUGIN_GTK_VIEW(dialog->view), manager);
+
+ backend = purple_core_get_settings_backend();
+ gplugin_gtk_view_set_settings_backend(GPLUGIN_GTK_VIEW(dialog->view),
+ backend);
}
/******************************************************************************