ensure that the CC_TYPE_AVATAR_CHOOSER private type is used by the template

so that symbols can be resolved in the user panel
This commit is contained in:
robert 2022-11-11 12:17:48 +00:00
parent 9973875f11
commit 5d515091e4
2 changed files with 13 additions and 2 deletions

View File

@ -5,7 +5,7 @@ COMMENT= GNOME settings
GNOME_PROJECT= gnome-control-center
GNOME_VERSION= 43.1
REVISION= 0
REVISION= 1
CATEGORIES= x11
@ -73,7 +73,6 @@ MODGNOME_TOOLS += desktop-file-utils docbook
MODGNOME_TOOLS += gtk-update-icon-cache yelp
MODGNOME_LDFLAGS= -L${X11BASE}/lib
MODGNOME_LDFLAGS+= -rdynamic
CONFIGURE_ARGS= -Dwayland=false

View File

@ -0,0 +1,12 @@
Index: panels/user-accounts/cc-user-panel.c
--- panels/user-accounts/cc-user-panel.c.orig
+++ panels/user-accounts/cc-user-panel.c
@@ -1466,6 +1466,8 @@ cc_user_panel_init (CcUserPanel *self)
/* register types that the builder might need */
type = cc_permission_infobar_get_type ();
+ g_type_ensure(CC_TYPE_AVATAR_CHOOSER);
+
gtk_widget_init_template (GTK_WIDGET (self));
self->um = act_user_manager_get_default ();