comparison src/protocols/msn/msn.c @ 10487:659edfcac14e

[gaim-migrate @ 11777] Removed protocol preferences. MSN will display closed conversation messages but not timeouts. Jabber will not display your OS. I left the preferences for OSCAR, but removed them from the UI. OSCAR is complicated because it stores prefs on the server. I'll let Mark figure out a smarter way to handle that. As with all slashed prefs, feel free to voice objections. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 08 Jan 2005 20:30:41 +0000
parents bcfea6c3d5c9
children 1a97d5e88d12
comparison
equal deleted inserted replaced
10486:84bc372a621e 10487:659edfcac14e
1772 msn_switchboard_end(); 1772 msn_switchboard_end();
1773 msn_sync_end(); 1773 msn_sync_end();
1774 1774
1775 return TRUE; 1775 return TRUE;
1776 } 1776 }
1777
1778 static GaimPluginPrefFrame *
1779 get_plugin_pref_frame(GaimPlugin *plugin)
1780 {
1781 GaimPluginPrefFrame *frame;
1782 GaimPluginPref *ppref;
1783
1784 frame = gaim_plugin_pref_frame_new();
1785
1786 ppref = gaim_plugin_pref_new_with_label(_("Conversations"));
1787 gaim_plugin_pref_frame_add(frame, ppref);
1788
1789 ppref = gaim_plugin_pref_new_with_name_and_label(
1790 "/plugins/prpl/msn/conv_close_notice",
1791 _("Display conversation closed notices"));
1792 gaim_plugin_pref_frame_add(frame, ppref);
1793
1794 ppref = gaim_plugin_pref_new_with_name_and_label(
1795 "/plugins/prpl/msn/conv_timeout_notice",
1796 _("Display timeout notices"));
1797 gaim_plugin_pref_frame_add(frame, ppref);
1798
1799 return frame;
1800 }
1801
1802 static GaimPluginUiInfo prefs_info = {
1803 get_plugin_pref_frame
1804 };
1805 1777
1806 static GaimPluginProtocolInfo prpl_info = 1778 static GaimPluginProtocolInfo prpl_info =
1807 { 1779 {
1808 OPT_PROTO_MAIL_CHECK, 1780 OPT_PROTO_MAIL_CHECK,
1809 NULL, /* user_splits */ 1781 NULL, /* user_splits */
1890 msn_unload, /**< unload */ 1862 msn_unload, /**< unload */
1891 NULL, /**< destroy */ 1863 NULL, /**< destroy */
1892 1864
1893 NULL, /**< ui_info */ 1865 NULL, /**< ui_info */
1894 &prpl_info, /**< extra_info */ 1866 &prpl_info, /**< extra_info */
1895 &prefs_info, /**< prefs_info */ 1867 NULL, /**< prefs_info */
1896 msn_actions 1868 msn_actions
1897 }; 1869 };
1898 1870
1899 static void 1871 static void
1900 init_plugin(GaimPlugin *plugin) 1872 init_plugin(GaimPlugin *plugin)
1913 option = gaim_account_option_bool_new(_("Use HTTP Method"), 1885 option = gaim_account_option_bool_new(_("Use HTTP Method"),
1914 "http_method", FALSE); 1886 "http_method", FALSE);
1915 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, 1887 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
1916 option); 1888 option);
1917 1889
1918 gaim_prefs_add_none("/plugins/prpl/msn"); 1890 gaim_prefs_remove("/plugins/prpl/msn");
1919 gaim_prefs_add_bool("/plugins/prpl/msn/conv_close_notice", TRUE);
1920 gaim_prefs_add_bool("/plugins/prpl/msn/conv_timeout_notice", TRUE);
1921 } 1891 }
1922 1892
1923 GAIM_INIT_PLUGIN(msn, init_plugin, info); 1893 GAIM_INIT_PLUGIN(msn, init_plugin, info);