pidgin/pidginapplication.c

changeset 41457
f0e7534a555d
parent 41454
7cc69bde919d
child 41479
3d2e114380f6
equal deleted inserted replaced
41456:26dc4a668ef1 41457:f0e7534a555d
119 purple_plugins_refresh(); 119 purple_plugins_refresh();
120 } 120 }
121 121
122 static void 122 static void
123 pidgin_application_populate_dynamic_menus(PidginApplication *application) { 123 pidgin_application_populate_dynamic_menus(PidginApplication *application) {
124 GMenu *source = NULL, *target = NULL; 124 GMenu *target = NULL;
125 GMenuModel *model = NULL; 125 GMenuModel *model = NULL;
126 126
127 /* Link the AccountsDisabledMenu into its proper location. */ 127 /* Link the AccountsDisabledMenu into its proper location. */
128 model = pidgin_accounts_disabled_menu_new(); 128 model = pidgin_accounts_disabled_menu_new();
129 target = gtk_application_get_menu_by_id(GTK_APPLICATION(application), 129 target = gtk_application_get_menu_by_id(GTK_APPLICATION(application),
130 "disabled-accounts"); 130 "disabled-accounts");
131 g_menu_append_section(target, NULL, model); 131 g_menu_append_section(target, NULL, model);
132 132
133 /* Link the AccountsEnabledMenu into its proper location. */ 133 /* Link the AccountsEnabledMenu into its proper location. */
134 source = pidgin_accounts_enabled_menu_new(); 134 model = pidgin_accounts_enabled_menu_new();
135 target = gtk_application_get_menu_by_id(GTK_APPLICATION(application), 135 target = gtk_application_get_menu_by_id(GTK_APPLICATION(application),
136 "enabled-accounts"); 136 "enabled-accounts");
137 g_menu_append_section(target, NULL, G_MENU_MODEL(source)); 137 g_menu_append_section(target, NULL, model);
138 138
139 /* Link the PluginsMenu into its proper location. */ 139 /* Link the PluginsMenu into its proper location. */
140 model = pidgin_plugins_menu_new(); 140 model = pidgin_plugins_menu_new();
141 target = gtk_application_get_menu_by_id(GTK_APPLICATION(application), 141 target = gtk_application_get_menu_by_id(GTK_APPLICATION(application),
142 "plugins-menu"); 142 "plugins-menu");

mercurial