pidgin/pidginapplication.c

changeset 42886
d9d26508be61
parent 42873
429a2aeb803f
child 42913
3da85f0c0ee6
equal deleted inserted replaced
42885:9b0cae94f406 42886:d9d26508be61
194 /* Link the PluginsMenu into its proper location. */ 194 /* Link the PluginsMenu into its proper location. */
195 model = pidgin_plugins_menu_new(); 195 model = pidgin_plugins_menu_new();
196 target = gtk_application_get_menu_by_id(GTK_APPLICATION(application), 196 target = gtk_application_get_menu_by_id(GTK_APPLICATION(application),
197 "plugins-menu"); 197 "plugins-menu");
198 g_menu_append_section(target, NULL, model); 198 g_menu_append_section(target, NULL, model);
199 }
200
201 static void
202 pidgin_application_setup_debug(G_GNUC_UNUSED PidginApplication *application) {
203 pidgin_debug_init_handler();
204
205 if(purple_strequal(PURPLE_BUILD_BUILDTYPE, "debug") ||
206 purple_strequal(PURPLE_BUILD_BUILDTYPE, "debugoptimized"))
207 {
208 pidgin_debug_set_print_enabled(TRUE);
209 } else {
210 pidgin_debug_set_print_enabled(opt_debug);
211 }
199 } 212 }
200 213
201 /****************************************************************************** 214 /******************************************************************************
202 * Actions 215 * Actions
203 *****************************************************************************/ 216 *****************************************************************************/
706 g_free(cwd); 719 g_free(cwd);
707 g_free(path); 720 g_free(path);
708 } 721 }
709 } 722 }
710 723
711 pidgin_debug_init_handler(); 724 pidgin_application_setup_debug(PIDGIN_APPLICATION(application));
712 #ifdef DEBUG
713 pidgin_debug_set_print_enabled(TRUE);
714 #else
715 pidgin_debug_set_print_enabled(opt_debug);
716 #endif
717 725
718 #ifdef _WIN32 726 #ifdef _WIN32
719 winpidgin_init(); 727 winpidgin_init();
720 #endif 728 #endif
721 729

mercurial