pidgin/pidgin

Fix a type warning in new dynamic menu

2022-03-17, Elliott Sales de Andrade
c4c79576ef12
Parents d7d40a5d9533
Children 25830cad9bfc
Fix a type warning in new dynamic menu

Testing Done:
Compiled with one less warning.

Reviewed at https://reviews.imfreedom.org/r/1355/
--- a/pidgin/pidginapplication.c Thu Mar 17 23:25:33 2022 -0500
+++ b/pidgin/pidginapplication.c Thu Mar 17 23:27:18 2022 -0500
@@ -129,13 +129,13 @@
static void
pidgin_application_populate_dynamic_menus(PidginApplication *application) {
GMenu *target = NULL;
- GMenuModel *source = NULL;
+ GMenu *source = NULL;
/* Link the AccountsDisabledMenu into its proper location. */
target = gtk_application_get_menu_by_id(GTK_APPLICATION(application),
"disabled-accounts");
source = pidgin_accounts_disabled_menu_new();
- g_menu_append_section(target, NULL, source);
+ g_menu_append_section(target, NULL, G_MENU_MODEL(source));
}
/******************************************************************************