pidgin/libpidgin.c

changeset 39573
0101626ff6f9
parent 39411
b1272e3a1c55
child 39574
ce391a974108
equal deleted inserted replaced
39567:34043d9fcdf9 39573:0101626ff6f9
709 } 709 }
710 710
711 int pidgin_start(int argc, char *argv[]) 711 int pidgin_start(int argc, char *argv[])
712 { 712 {
713 GApplication *app; 713 GApplication *app;
714 gchar *summary;
715 int ret; 714 int ret;
716 715
717 #ifdef DEBUG 716 #ifdef DEBUG
718 purple_debug_set_enabled(TRUE); 717 purple_debug_set_enabled(TRUE);
719 #endif 718 #endif
733 #if GLIB_CHECK_VERSION(2, 48, 0) 732 #if GLIB_CHECK_VERSION(2, 48, 0)
734 G_APPLICATION_CAN_OVERRIDE_APP_ID | 733 G_APPLICATION_CAN_OVERRIDE_APP_ID |
735 #endif 734 #endif
736 G_APPLICATION_HANDLES_COMMAND_LINE)); 735 G_APPLICATION_HANDLES_COMMAND_LINE));
737 736
738 summary = g_strdup_printf("%s %s", PIDGIN_NAME, DISPLAY_VERSION); 737 #if GLIB_CHECK_VERSION(2, 56, 0)
739 g_application_set_option_context_summary(app, summary); 738 {
740 g_free(summary); 739 gchar *summary = g_strdup_printf("%s %s", PIDGIN_NAME, DISPLAY_VERSION);
740 g_application_set_option_context_summary(app, summary);
741 g_free(summary);
742 }
743 #endif
741 744
742 g_application_add_main_option_entries(app, option_entries); 745 g_application_add_main_option_entries(app, option_entries);
743 g_application_add_option_group(app, purple_get_option_group()); 746 g_application_add_option_group(app, purple_get_option_group());
744 g_application_add_option_group(app, gplugin_get_option_group()); 747 g_application_add_option_group(app, gplugin_get_option_group());
745 748

mercurial